How to parse httpd (apache webserver) logs on CentOS 7

I have configured a static IP address on my server which is using CentOS 7. Here httpd is the web server. Now I have to analyze the following things.

  • Total number of requests per day (or toall)
  • Total requests sent and sent.
  • Unique visitor information
  • List of received requests. (status, etc.)
  • HOSTs / OS / Browsers making a request
  • Errors, etc.
  • Should be able to save it in CSV format etc. so that I can import it into excel.

Can anyone suggest me some kind of log analyzer that will fully meet the requirements?

+3


source to share


2 answers


I think goaccess will fulfill your requirements.



+4


source


Splunk has a tutorial in much about the same way as you are asking. The downside is that it is a commercial program (free up to 500MB of data per day).



Otherwise, look at the ELK stack , combining Elastic (to index the data), Logstash (to get it in Elastic) and Kibana (to display it) should match your list .

0


source







All Articles