Hi Team,
digressing from my earlier post --> ( How to Separate raw text file (syslog) separated by spaces into fields), it seemed that when I did this, I could not link another database into the formula fields...it seems that Crystal wants a "real" (as opposed to derived) database field in order to link files.
I would therefore need a way to convert my syslog file into CSV format or access database file that I can import into Crystal Reports.
As you know, the Syslog records are variable length and based from two entries like this:
May 19 04:05:13 10.9.26.233 local/AC2-ADC info logger: [ssl_acc] 10.5.235.12 - admin [19/May/2010:04:05:13 +1000] "POST /iControl/iControlPortal.cgi HTTP/1.1" 200 437
May 19 04:05:15 10.1.27.1 534391: May 19 04:05:14.995 AEST: %SNASW-3-SM_LOG_12: PROBLEM - 882131 - LU-mode session limit exceeded
I can't used fixed column lengths or space delimited (there are spaces everywhere on the line) to segregate them into fields.
I just need a file with the fields MONTH, DAY, TIME, HOSTNAME, MESSAGE.
Does anyone show me an elegant way, e.g.MS-access query or small PERL snippet or something that can achieve my goal above?
Thanks and regards.
digressing from my earlier post --> ( How to Separate raw text file (syslog) separated by spaces into fields), it seemed that when I did this, I could not link another database into the formula fields...it seems that Crystal wants a "real" (as opposed to derived) database field in order to link files.
I would therefore need a way to convert my syslog file into CSV format or access database file that I can import into Crystal Reports.
As you know, the Syslog records are variable length and based from two entries like this:
May 19 04:05:13 10.9.26.233 local/AC2-ADC info logger: [ssl_acc] 10.5.235.12 - admin [19/May/2010:04:05:13 +1000] "POST /iControl/iControlPortal.cgi HTTP/1.1" 200 437
May 19 04:05:15 10.1.27.1 534391: May 19 04:05:14.995 AEST: %SNASW-3-SM_LOG_12: PROBLEM - 882131 - LU-mode session limit exceeded
I can't used fixed column lengths or space delimited (there are spaces everywhere on the line) to segregate them into fields.
I just need a file with the fields MONTH, DAY, TIME, HOSTNAME, MESSAGE.
Does anyone show me an elegant way, e.g.MS-access query or small PERL snippet or something that can achieve my goal above?
Thanks and regards.