I have tried a number of options, but I want to start with by leaving the question open.
1) I WinSyslog 7.2 listening as a server on port 514. Standard. Nothing new here. It listens for events coming in from about 300 Unix Servers.
2) In my Default Rule Set, I created a Syslog Forwarder that forwards these events to another Syslog Server (Y)
3) I want the messages to be received by Y in the expected RFC 3164 format. This is defined as:
- Code: Select all
<PRI>DATE HOSTNAME TAG CONTENT
or
<PRI>DATE IPADDRESS TAG CONTENT
Note that the <> brackets surrounding PRI above are part of the content.
When I configured my Syslog Forwarder, I selected "Process message while relaying" and initially configured my message format to be:
- Code: Select all
<%syslogpriority%>%timegenerated% %source% %syslogtag% %msg%
In the hopes that it would match the RFC standard listed above. By the way, a silly question, but where can I get a complete list of the valid macros I can specify in my message format?
On server Y, I took a look at the forwarded messages from the WinSysLog and here is what I saw:
Dec 11 08:45:01 [10.1.108.42] <6>2007-12-11 13:45:01 10.1.108.42 crond[3230]: (root) CMD (/usr/local/scripts/fs_check_space.sh > /dev/null 2>&1)
Dec 11 08:45:01 [10.1.108.42] <6>2007-12-11 13:45:01 10.1.108.42 crond(pam_unix)[3228]: session closed for user root
Dec 11 08:45:02 [10.1.108.42] <6>2007-12-11 13:45:01 10.1.108.42 crond(pam_unix)[3226]: session closed for user root
Note that the first two fields are NOT generated by WinSysLog. That is server Y's code doing that, so please ignore it.
The date format is wrong. It needs to be in RFC 3164 format, which means:
- Code: Select all
Month 1-31 HH:MM:SS where:
Month = Jan, Feb, mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, or Dec
How do I massage the message format time into that format?
Thanks,
-Pat


