Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.