I'm trying to analyze error frequency on a server cluster to find trends. I've parsed the logs to extract the relevant errors with timestamps. (My data is currently in the format %b.%d.%H:%M:%S $HOSTNAME
, but converting timestamps is not an issue.) I would like to plot these events on a graph. I've never used gnuplot, so if it is not a good solution, feel free to suggest something else.
All of the gnuplot examples I see (and other graphing solutions for that matter) seem to use data retrieved at regular intervals. CPU usage every 30 seconds, temperature every hour, etc. But for my situation, I might have 300 errors at 8:36 AM, then none for the rest of the day, or constant throughout the day, or... who knows? I'm just trying to get a better visualization.
What I envision as an end result is a graph with three line plots, one per cluster node, showing the frequency of errors (per minute maybe?).
I realize there are larger-scale solutions for this; I'm using Graylog, Logstash, and Kibana on other projects. But this is a one-off, and there have been other situations where I've needed something like this; I'd like to actually invest some time in learning gnuplot. But for now, I'm just trying to get over this hump.
Thanks.
grep -c
the file to get counts in 10-minute chunks, then saved the results to separate files per node. I was able to generate a graph in gnuplot using that data.