Hi Team,
I just need some advice on how to separate a line of text delimited by spaces into fields. In the example below, I excerpted two lines from my syslog. First line is on may 22 at 4:02:06 AM and the second line is log entry at 4:02:48 AM.
May 22 04:02:46 au01abcd syslogd 1.4.1: restart (remote reception).
May 22 04:02:48 102.2.109.6 info SSL 2010-05-22T04:02:48+10:00 10.2.109.6 <SSL>: HC:
I need to parse the line so that first field is the "Month", second is "day", then "time", then "hostname", and the rest is "Message"
Would appreciate advice on how to do this.
Thanks very much.
I just need some advice on how to separate a line of text delimited by spaces into fields. In the example below, I excerpted two lines from my syslog. First line is on may 22 at 4:02:06 AM and the second line is log entry at 4:02:48 AM.
May 22 04:02:46 au01abcd syslogd 1.4.1: restart (remote reception).
May 22 04:02:48 102.2.109.6 info SSL 2010-05-22T04:02:48+10:00 10.2.109.6 <SSL>: HC:
I need to parse the line so that first field is the "Month", second is "day", then "time", then "hostname", and the rest is "Message"
Would appreciate advice on how to do this.
Thanks very much.