how would I process an apache file (log) in common log format (CLF)?
I have some excerpts from a log file below, and it seems that its in the combined log format. is there a way to process it in linux (or a scripting language like bash) to CLF?
thanks
109.106.142.25 - - [16/Dec/2015:21:32:47 +0100] "GET /administrator/ HTTP/1.1" 200 4263 "-" "Mozilla/5.0 (Windows NT 6.0; rv:34.0) Gecko/20100101 Firefox/34.0" "-"
109.106.142.25 - - [16/Dec/2015:21:32:48 +0100] "POST /administrator/index.php HTTP/1.1" 200 4494 "http://almhuette-raith.at/administrator/" "Mozilla/5.0 (Windows NT 6.0; rv:34.0) Gecko/20100101 Firefox/34.0" "-"
151.77.62.101 - - [16/Dec/2015:21:33:03 +0100] "GET / HTTP/1.1" 200 10439 "http://buttons-for-website.com" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36" "-"
Aucun commentaire:
Enregistrer un commentaire