FLOSS

Free Libre Open Source Software

Extracting values from your apache log.

Body

Don't try to understand this, It'll lead to brain cancer ;-)

Just use it to extract things from your apache web server access log.

perl -n -e '/(.[^ ]*) -(.[^-]*)- \[(\d*)\/(\w*)\/(\d*):(\d*):(\d*):(\d*) (.[^\]]*)\] "(\w*) (.[^ ]*) .[^"]*" (\d*) (.[^ ]*) "(.[^"]*)" "(.[^"]*)"/; print "$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 \n"' access.log