AS201281 Wiki

Your check engine light is on!

User Tools

Site Tools


sysadmin:logs

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
sysadmin:logs [2013/09/18 23:40] Guillaume Mazoyersysadmin:logs [2021/01/04 20:41] (current) – external edit 127.0.0.1
Line 21: Line 21:
 $InputTCPServerRun 514</code> $InputTCPServerRun 514</code>
  
-Add a file in the ''/etc/rsyslogd'' directory for each remote logging host in with the following content:+Add a file in the ''/etc/rsyslog.d'' directory for each remote logging host in with the following content:
 <code>$template myhostname, "/var/log/%HOSTNAME%/%PROGRAMNAME%.log" <code>$template myhostname, "/var/log/%HOSTNAME%/%PROGRAMNAME%.log"
 if $fromhost-ip == 'HOST_IP_ADDRESS' then ?myhostname</code> if $fromhost-ip == 'HOST_IP_ADDRESS' then ?myhostname</code>
  
 This will store log files of remote hosts in different folders following the **hostname**, with filenames corresponding to the name of the program that emitted logs. This will store log files of remote hosts in different folders following the **hostname**, with filenames corresponding to the name of the program that emitted logs.
sysadmin/logs.1379547633.txt.gz · Last modified: 2021/01/04 20:41 (external edit)