Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Scalable Perl Webalizer Alternative(s)

by lihao (Monk)
on Jul 02, 2008 at 14:12 UTC ( #695136=note: print w/replies, xml ) Need Help??


in reply to Re^2: Scalable Perl Webalizer Alternative(s)
in thread Scalable Perl Webalizer Alternative(s)

Hi, Steve:

your tool is very cool! it can be even better if you can add a '-e' command-line switch like MySQL's, then we can easily automate sending the output data to generate graphs or tables without the need of 'expect' script to handle the interactive things. i.e.

asql -e 'select source, sum(size) from logs group by source' > ip_tr +affic.dat

thanks

lihao

Replies are listed 'Best First'.
Re^4: Scalable Perl Webalizer Alternative(s)
by skx (Parson) on Jul 03, 2008 at 06:00 UTC

    The way I do that is via the --file=xxx option, that lets me load data and run reports.

    But the idea of -e/--execute is good, I guess that would suggest a --load=/var/log/apache/access.log* flag to go along with it, because otherwise you'd need to edit the startup file to load the data first!

    I'll add both flags, and send you a PM when they're present. Sometime today I'm sure :)

    Steve
    --

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://695136]
help
Chatterbox?
[Tanktalus]: What's so happy about it? :P
[Tanktalus]: ww: your parens don't line up. Sure, perl can look like line noise, but the parens still have to line up. ;)
[Tux]: 1nickt did you build 5.24.3, 5.26.1, and 5.27.4 yet?
Tux now has 284 working versions of perl
[1nickt]: Tux oh yes, have filed reports from them already :-)
1nickt has 44 for one version of one OS ...
[Tux]: good boy :)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-09-25 16:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (282 votes). Check out past polls.

    Notices?