Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Syslog
(view source)
Revision as of 22:57, 12 June 2017
76 bytes added
,
22:57, 12 June 2017
→SME 9.0 Server redirect to another syslog file
Line 97:
Line 97:
add this
add this
−
if $programname == 'grandstream' then /var/log/grandstream/grandstream.log
+
if $programname == 'grandstream' then /var/log/grandstream/grandstream.log
−
& stop
+
& stop
+
then
+
+
mkdir /var/log/grandstream
+
touch /var/log/grandstream/grandstream.log
+
expand-template /etc/sysconfig/rsyslog
+
service rsyslog restart
+
+
also rotate it
also rotate it
vim /etc/logrotate.d/grandstream
vim /etc/logrotate.d/grandstream
−
/var/log/grandstream/*.log {
+
/var/log/grandstream/*.log {
weekly
weekly
rotate 5
rotate 5
Line 112:
Line 120:
sharedscripts
sharedscripts
endscript
endscript
−
}
+
}
−
−
−
then
−
−
expand-template /etc/sysconfig/rsyslog
−
service rsyslog restart
Unnilennium
Super Admin, Wiki & Docs Team,
Bureaucrats
,
Interface administrators
,
Administrators
3,263
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version
Search