Convert argus records to CSV
Carter Bullard
carter at qosient.com
Sun Jan 13 22:48:46 EST 2013
Hey Craig,
All the ra* programs can do this, its just an output format.
Just set the field separator to comma.
ra -S argus.data.source -c ,
or you can set it in your rarc file using the RA_FIELD_DELIMITER.
Here is the relevant text in the sample rarc file.
# Most ra* clients are designed to print argus records out in ASCII,
# with each client supporting its own output formats. For ra() like
# clients, this variable can overide the default field delimiter,
# which are variable spans of space (' '), to be any character.
# The most common are expected to be '\t' for tabs, and ',' for
# comma separated fields.
#
RA_FIELD_DELIMITER=''
Set that like this, in lets say /tmp/rarc if you don't want to do it in your ~/.rarc file.
RA_FIELD_DELIMITER=','
and then run ra like this:
ra -F /tmp/rarc -S argus.data.source
Carter
On Jan 13, 2013, at 10:38 PM, Craig Merchant <cmerchant at responsys.com> wrote:
> Has anyone in the community written a script or figured out a sed command that will output or convert argus data into a csv file format?
>
> Thanks!
>
> Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20130113/43837780/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4367 bytes
Desc: not available
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20130113/43837780/attachment.bin>
More information about the argus
mailing list