How are logs written and rotated on an apache server?

Posted on 2004-11-16
Medium Priority
Last Modified: 2010-03-04

Few questions...

1) How are logs written and rotated on an apache server? (just the idea)

2) How does a server know when to create a new log?

3) Are logs stored in a database or are they written over?

4) Where can I get information on how to analyze a log file? (valid pages views vs. hits)


<< Marco >>
Question by:Moonbathing
1 Comment
LVL 19

Accepted Solution

ramazanyich earned 2000 total points
ID: 12603808
1. you can use piped logs. See http://httpd.apache.org/docs/logs.html#piped for description
2. if you are using piped logs you provide a rotation period or rotation size in your httpd.conf
3. logs are stored in filesystem.
4. you can use awstat ( http://awstats.sourceforge.net ) to analyze apache log files.

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month16 days, 13 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question