Apache Log Analytics

Shared by
Josh Cody

A simple recipe that parses incoming text for each line of an Apache web server access log and structures it into a graph. A useful introduction to standing queries, the powerful feature that makes Quine unique. A sample Apache web server access logs dataset downloaded from 'https://recipes.quine.io/sample_apache_logs' or using the command below. Make sure to pass in the name you give the local file via the `in_file=$PARAM1` recipe value .

To run this recipe:
$ curl -L https://recipes.quine.io/sample_apache_logs -o $PARAM1
$ java -jar quine-1.x.x.jar -r apache_log --recipe-value in_file=$PARAM1
Download quine
Recipe code: