Need help making rsyslog message look like syslog message.

This is the place for you, if you got rsyslog up and running but wonder how to make it do what you want.

Moderator: rgerhards

Need help making rsyslog message look like syslog message.

Postby mrc668 on Mon Mar 10, 2008 10:37 pm

Hi,

I'm using rsyslog 2.0.2.
My rsyslog.conf

$ModLoad MySQL
$EscapeControlCharactersOnReceive off

$template TraditionalFormat,"%timegenerated% %FROMHOST% %syslogtag%%msg:::drop-last-lf%\n"
*.* /var/log/trad.log; TraditionalFormat

Sample log from rsyslog:
Mar 10 15:22:25 192.168.200.1 wimax_watchdog: 00:10:54 up 10 min, load average: 0.43, 0.34, 0.16
Mar 10 15:22:31 192.168.200.1 : : send_pdu of type 4, on cid 0x0000, with length 13


Sample log from syslog:
Mar 10 15:16:12 172.16.18.1 mac_ss: DEBUG: : send_pdu of type 12, on cid 0x0148, with length 64
Mar 10 15:17:01 172.16.18.1 wimax_watchdog: 00:42:38 up 42 min, load average: 0.53, 0.39, 0.36


I believe that mac_ss and wimax_watchdog are the tags or program names and DEBUG would be the priority.

Both samples are inputs from remote units.
mrc668
New
 
Posts: 9
Joined: Thu Mar 06, 2008 10:17 pm

RE: Need help making rsyslog message look like syslog messag

Postby mrc668 on Mon Mar 10, 2008 11:01 pm

Thank-you for reading, but it seems the problem is at the remote host.
And seems to be solved now.
mrc668
New
 
Posts: 9
Joined: Thu Mar 06, 2008 10:17 pm


Return to Configuration

Who is online

Users browsing this forum: No registered users and 0 guests

cron