Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Created 3/20/2012 aaron.enfield ยท Updated 9/27/2016 aaron.enfield

Change the following in /etc/rsyslog.conf under :

#### GLOBAL DIRECTIVES

...

 ####
# Use default timestamp format
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

to this:

#### GLOBAL DIRECTIVES ####
$template myFormat,"%fromhost-ip%

...

 %rawmsg%\n"
$ActionFileDefaultTemplate myFormat