dasPaul DD-WRT Novice
Joined: 28 Nov 2012 Posts: 17 Location: Dresden, Germany
|
Posted: Wed Nov 30, 2016 9:51 Post subject: reformat syslog firewall output |
|
Hi
I recieve the ddwrt syslog via udp 514.
Is there a simply way to reformat this syslog output from:
Code: | <4>Nov 29 16:16:35 kernel: [ 3637.150000] DROP IN=vlan2 OUT= MAC=aa:aa:aa:d4:24:63:aa:aa:aa:85:24:aa:08:00:aa:00:00:34 SRC=78.14.232.137 DST=14.52.9.209 LEN=52 TOS=0x00 PREC=0x00 TTL=118 ID=1104 DF PROTO=TCP SPT=6171 DPT=29320 SEQ=2166355922 ACK=0 W |
to
Code: | Nov 29 16:16:35,78.14.232.137,14.52.9.209,TCP,6171,29320 |
I want to write only the time,src,dst,proto,spt and dpt to a csv file. _________________ Riesige Gepanzerte Luftschiffe |
|