How do I get rsyslog to log timestamps and IP addresses from remote machines?

Change the following in /etc/rsyslog.conf:

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

to this:

#### GLOBAL DIRECTIVES ####
$template myFormat,"%fromhost-ip% %rawmsg%\n"
$ActionFileDefaultTemplate myFormat


© DataCore Software Corporation. · https://www.datacore.com · All rights reserved.