Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
linux:syslog [2014/01/02 12:09] tmadelinux:syslog [2017/12/09 01:19] – external edit 127.0.0.1
Line 3: Line 3:
 [[http://wiki.tmade.de|Home Wiki]] [[http://wiki.tmade.de|Home Wiki]]
  
-==== Syslog ====+===== Syslog =====
  
 Config file facility: Config file facility:
Line 11: Line 11:
  
  
-=== syslog-ng ===+==== syslog-ng ====
 Detailed logging example for FTP! Detailed logging example for FTP!
  
Line 39: Line 39:
 </code> </code>
  
-=== Update ===+==== Update ====
  
   /etc/syslog-ng/syslog-ng.conf with:   /etc/syslog-ng/syslog-ng.conf with:
Line 45: Line 45:
   SuSEconfig --module syslog-ng   SuSEconfig --module syslog-ng
  
-=== Usage and test ===+==== Usage and test ====
  
   logger -p local4.info "my message"   logger -p local4.info "my message"
Line 51: Line 51:
   logger -p local4 "my message"   logger -p local4 "my message"
  
-=== Logrotate ===+==== Logrotate ====
  
 See logrotate (/etc/logrotate.d/ and /etc/logrotate.conf) for more options/details. See logrotate (/etc/logrotate.d/ and /etc/logrotate.conf) for more options/details.
Line 87: Line 87:
         postrotate                                                                                                               #execute command after rotation         postrotate                                                                                                               #execute command after rotation
                 test ! -f /usr/local/nginx/sbin/nginx.pid || kill -USR1 `cat /usr/local/nginx/sbin/nginx.pid`                 test ! -f /usr/local/nginx/sbin/nginx.pid || kill -USR1 `cat /usr/local/nginx/sbin/nginx.pid`
 +                #killall -USR1 nginx
         endscript                                                                                                                #required after postrotate/ command         endscript                                                                                                                #required after postrotate/ command
         create 644 root root                                                                                                     #rotates files with 644 permission and owner/group as "root"         create 644 root root                                                                                                     #rotates files with 644 permission and owner/group as "root"
linux/syslog.txt · Last modified: 2018/03/20 18:11 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki