It seems to me a manual code would be much more efficient.
As I get a rather complex output with all sort of inefficient forms if I use the Eventia Log parsing Editor.
Take for example a log entry like this:
Sep 15 13:36:04 kernel: DROP IN=eth0 OUT= MAC=e0:3f:49:ee:63:00:a2:de:48:00:01:03:08:00 SRC=4.3.2.1 DST=1.2.3.4 LEN=64 TOS=0x00 PREC=0x00 TTL=46 ID=34134 DF PROTO=TCP SPT=55170 DPT=63189 SEQ=1695161045 ACK=0 WINDOW=8192 RES=0x00 SYN URGP=0 OPT (02040548010303000101080A0D1E83CA0000000004020000) \012
In Italics the distinguished text. In Bold the fileds I want to extract.
I can think of a relative clean regex sample. But the nicest code would allow both inbound and outbound packets.
I might do the trick with looping the code over both options. As ther is either a string match after IN= or there is one after OUT=
Anyone got any additional documentation? I can reverse engineer this if neede and in fact have done it in part allready.
But any additional documentation will be appreciated.
<< We make miracles happen while you wait. The impossible jobs take just a wee bit longer. >>