my @ipOctet = split (/\./, $ip);
my $urlListFilename = "/tmp/urllist.dat";
my $ipListFilename = "/tmp/iplist.dat";
my $tempFilename = "/tmp/temp.dat";
# prepare-for-gnuplot.pl: convert access log files to gnuplot input
Though the 3D plots present no hard numbers or trend lines, the scatter plot as described and illustrated above may give a more intuitive view of web server requests. Especially when diagnosing problems, this alternative way of presenting logfile data can be more useful than the charts and reports of a standard log analyzer tool.
With Gnuplot 4.2, which is still in beta, it is now possible to draw scatter plots in glorious color. Initial tests show that using color for the status code dimension makes the plots even more informative. Stay tuned.
Figure 5. A animated GIF of the scatter plot that hints at the 3D structure
Because a display of 3D plots is difficult to see in three dimensions without stereoscopic glasses, I used a few more manipulations to "jitter" the image such that the depth in the picture is visible. The plot in Figure 5 is an example of this. It was easy to generate with more Gnuplot commands followed by GIF animation with .
The Pièce de Résistance
Changing the viewing angle can give you a new point of view. Gnuplot lets you do it in one of two ways: with the command line set view or interactively with a click and drag of the mouse.
Because real people need sleep, it should be possible to make out the diurnal rhythms that rule our lives. This is evident in Figure 4. The requests are denser from 08:00 to about 17:00 and quite sparse in the early hours of the morning.
Figure 4. Reduced Y and Z ranges showing monitoring probes
Gnuplot makes it easy to focus on a part of the plot by setting the axes ranges. Figure 4 shows a small part of the Y- and Z-axes. The almost continuous lines that run parallel to the time axis are monitoring probes that regularly request the same page. Four of them should be clearly visible. In addition, I changed the eye position.
Figure 3. Thinned scatter plot
Figure 3 shows the corresponding scatter plot.
splot "gnuplot.input" using 1:2:3 every 10
If the plot is too dense--as was the case for me--thin it down by telling Gnuplot to only use every nth data point. For example, I thinned Figure 1 by plotting every tenth point with the Gnuplot splot command:
A New Visualization for Web Server Logs
A New Visualization for Web Server Logs - O'Reilly Media
Комментариев нет:
Отправить комментарий