Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to parse access_log and error_log of multiple apache server. But I don't know the LogFormat while parsing the logs. So before that I want to know the LogFormat which has been configured in each Apache.

  • One way is I can parse first httpd.conf and Find LogFormat and CustomeLog" string and get the log format. Is there any other way to check in runtime logformat by any command or apache utility ?
  • Is LogFormat "common, combined etc" has been fix things ? If yes that Can I build different regEx for each type ?
share|improve this question

If you are using debian/ubuntu, LogFormat is defined in /etc/apache2/apache2.conf.

An easier way to do it is use logwatch, which by default come with apache log scanning. It can even email the report.

Post comment or update your question if you need more instruction.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.