Online conversion to CSV using Perl
Posted
by Octopus
on Stack Overflow
See other posts from Stack Overflow
or by Octopus
Published on 2010-05-14T05:49:49Z
Indexed on
2010/05/14
5:54 UTC
Read the original article
Hit count: 277
perl
I have a application generating logs in every 5 sec. The logs are in below format.
11:13:49.250,interface,0,RX,0
11:13:49.250,interface,0,TX,0
11:13:49.250,interface,1,close,0
11:13:49.250,interface,4,error,593
11:13:49.250,interface,4,idle,2994215
and so on for other interfaces...
I am working to convert these into below CSV format
Time,interface.RX,interface.TX,interface.close....
11:13:49,0,0,0,....
Simple as of now but the problem is, I have to get the data in csv format online, i.e as soon the log file updated the CSV should also be updated.
Is there any way to do this using perl.
© Stack Overflow or respective owner