How are logs written and rotated on an apache server?

Posted on 2004-11-16
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

    1. you can use piped logs. See 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 ( ) to analyze apache log files.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
    Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now