racluster issue
Craig Merchant
cmerchant at responsys.com
Mon Mar 4 23:05:03 EST 2013
Carter,
Here's what I'm trying to do and I may not be going about it the smartest way... I would like racluster, rabins, or rastream to output a csv file containing five minutes of flow data, aggregated using proto, saddr, daddr, sport, and dport. That CSV file will be imported into Splunk for analysis every five minutes. I would prefer for the CSV file to be overwritten each time the argus client outputs five minutes of aggregated flows. I would also prefer to avoid writing to an argus binary file as an intermediary step.
The way I've been doing it is to set up an entry in the crontab file that looks like:
00,05,10,15,20,25,30,35,40,45,55 * * * * /usr/local/bin/racluster -S 10.10.10.10:561 -T 300 -p 3 -u -Z b -w - | /usr/local/bin/ralabel -r - -f /usr/local/argus/ralabel.conf -c "," -M dsrs=+metric,+agr,+psize,+cocode -n -p 3 -u -Z b -s "+0ltime,+1stime,+trans,+dur,+runtime,+mean,+stddev,+sum,+sco,+dco,+pkts,+spkts,+dpkts,+bytes,+sbytes,+dbytes,+load,+sload,+dload,+loss,+sloss,+dloss,+ploss,+sploss,+dploss,+rate,+srate,+drate,+appbytes,+sappbytes,+dappbytes,+label:200" > /ssd/argus/splunk/racluster.csv
The problem is that when I'm checking the timestamp on the racluster.csv file, it's always on the 01,06,11,... minute. So, it looks like even though racluster is set to connect to radium for 300 seconds, it's writing out the results after < 120 seconds. I also tried just running the racluster part of the above command on the command-line and it is also writing the results out before the full five minutes has elapsed.
Is there a smarter way to accomplish my goal? If not, how can I figure out why racluster isn't connecting for the full length of time specified in the -T flag?
Thanks.
Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20130305/14ebf6d0/attachment.html>
More information about the argus
mailing list