reformat syslog firewall output

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
dasPaul
DD-WRT Novice


Joined: 28 Nov 2012
Posts: 17
Location: Dresden, Germany

PostPosted: Wed Nov 30, 2016 9:51    Post subject: reformat syslog firewall output Reply with quote
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
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum