I too am looking to strean the message tracking log to syslog. I am still working on the basic sript, then willl look at the syslog part. I am hoping someone can give me a hand and expedite the sollution.
Here is what I currently have:
logparser "SELECT TO_TIME( TO_LOCALTIME( TO_TIMESTAMP (REPLACE_STR(STRCAT(STRCAT(date,' '), time),' GMT',''),'yyyy-M-d h:m:s') ) ) as DateTime, [client-ip], [Client-hostname], [Partner-name], [Server-hostname], [server-IP], [Recipient-Address], [Event-ID], [MSGID], [Priority], [Recipient-Report-Status], [total-bytes], [Number-Recipients], TO_Timestamp(REPLACE_STR([Origination-time], ' GMT',''),'yyyy-M-d h:m:s') as [Origination Time], Encryption, [service-Version], [Linked-MSGID], [Message-Subject], [Sender-Address] from D:\MEX_LOG\TITAN.LOG\20060305.log" -i:w3c
This is only returning the time though. I am a newbie on this, but did pick up the Log Parser Toolkit book today. This actually work beautifully short of not returning the date.
Any help would be appreciated.
TIA
Mont