Re: 12M? or 12 000 000? (not 12000000)

Emanuel Berg <[email protected]> Mon, 27 Jun 2022 22:25:45 +0200
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <[email protected]>
Norwid Behrnd via gnuplot-info wrote:

>> It should start either at 2022-01-10 and then +7 days for
>> every xtick, or it can start with 148 also with +7 days
>> per step.
>
> From this I bet your interest is the automated analysis of
> time series with gnuplot [...]
> 
> Ben Hoey's example is one both to easy to decipher and
> suitable as point of departure about how to interact from
> bash with gnuplot.

It is automated, the way you put it it seems more advanced
than it is tho ...

What happens is a zsh script [1] is invoked from cron once
every day, the script goes on to call Emacs which uses an
Elisp program [2] to fetch data from the logs already present
in the system - files named

  /var/www/logs/access-${user}.log

where one line equals one HTTP request or one hit for
our purposes.

All in all the zsh script including the Elisp extracts and
appends data to the data file [3] and then the gnuplot
commands [4] execute on that.

The result I've shown you many times by now ... thanks for all
the help. I think it looks cool!

The only thing that isn't automated IINM are the user names,
those are known tho (from the log file names) so they just
need to be passed to gnuplot - maybe the columns in the data
files can be assigned names (a multi-column header)?

  https://dataswamp.org/~incal/hits/hits.png

[1] https://dataswamp.org/~incal/hits/piles-all
[2] https://dataswamp.org/~incal/emacs-init/piles.el
[3] https://dataswamp.org/~incal/hits/ooa/hits.dat
[4] https://dataswamp.org/~incal/hits/hits.gpi

-- 
underground experts united
https://dataswamp.org/~incal



_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info