Changes

From SME Server
Jump to navigationJump to search
559 bytes added ,  22:56, 12 June 2017
Line 90: Line 90:     
to view new entries being added to your messages log and see if the '''SYSLOG''' entries of your network device or appliance are showing up.
 
to view new entries being added to your messages log and see if the '''SYSLOG''' entries of your network device or appliance are showing up.
 +
 +
===SME 9.0 Server redirect to another syslog file===
 +
 +
mkdir -p /etc/e-smith/templates-custom/etc/sysconfig/rsyslog
 +
vim /etc/e-smith/templates-custom/etc/sysconfig/rsyslog/10perso
 +
 +
add this
 +
if $programname == 'grandstream' then                /var/log/grandstream/grandstream.log
 +
& stop
 +
 +
also rotate it
 +
vim /etc/logrotate.d/grandstream
 +
 +
/var/log/grandstream/*.log {
 +
    weekly
 +
    rotate 5
 +
    compress
 +
    notifempty
 +
    missingok
 +
    nocreate
 +
    sharedscripts
 +
    endscript
 +
}
 +
 +
 +
then
 +
 +
 +
expand-template /etc/sysconfig/rsyslog
 +
service rsyslog restart
 +
     
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,263

edits

Navigation menu