2
I'm logging some data relative to clients NFS usage over a network. Now I want to plot it on a lines diagram, and I'm overwhelmed by the possibilities I'm finding out there. No one seems to be easy to understand for me.
Here's a simplified log:
1356112995 192.168.1.46 766
1356112995 192.168.1.12 14
1356112995 192.168.1.141 5
1356112995 192.168.1.11 38
1356114790 192.168.1.46 760
1356114790 192.168.1.12 10
1356114790 192.168.1.11 18
1356116586 192.168.1.46 758
1356116586 192.168.1.12 9
1356118387 192.168.1.46 783
1356120187 192.168.1.46 687
1356121987 192.168.1.46 699
1356123787 192.168.1.46 371
1356125587 192.168.1.46 717
1356127386 192.168.1.46 0
First column is a timestamp, it should be on the X axis. Second column is the client IP. Third column is the number of operations, it should be on the Y axis. The graph should be a line graph.
I want this to be automatic, so plotting from the command line is the way to go. No idea on how to do that, though.
It should generate a png file that will be subsequently uploaded to some webserver for visualization.
do you want to see the plot in the command line or do you want to create an image and post in on the website or something? – mnmnc – 2012-12-23T01:09:35.140
Create an image and upload it to a webserver. I'm going to clarify this on the original post. Thanks. – Jorge Suárez de Lis – 2012-12-23T01:11:51.847
I like pCharts -> http://pchart.sourceforge.net/. But this would generate a javascript chart not a picture like jpg or gif. If you want flexibility and nice look i would go with something like that. If you must have a jpg or some bitmap based picture - gnuplot will probably suit you best.
– mnmnc – 2012-12-23T01:25:50.797Thank you. I've tried to understand gnuplot but it won't make it easy. I'll take a look into pCharts some day, looks interesting. – Jorge Suárez de Lis – 2012-12-23T23:56:36.857