Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    How to interpret Apache Log

    • Product: Voyager
    • Product Version: 8

    Question

    What do entries in the Apache logs mean?

    Answer

    Check the logs as described below and reference the format chart.

    1. cd /m1/shared/apache2/conf/modules.conf/
    2. view mod_log_config.conf
    3. Look at LogFormat entries - examples:

    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent

     

    4. Interpret the format
     

    %h Remote host
    %l Remote logname (from identd, if supplied). This will return a dash unless mod_ident is present and IdentityCheck is set On.
    %u Remote user (from auth; may be bogus if return status (%s) is 401)
    %t Time the request was received (standard english format)
    "%r" First line of request
    %s Status. For requests that got internally redirected, this is the status of the *original* request --- %>s for the last.
    %b Size of response in bytes, excluding HTTP headers. In CLF format, i.e. a '-' rather than a 0 when no bytes are sent.
    %{Referer} Referer is the page that linked to this URL
    \"%{User-Agent}i" User-agent is the browser identification string.

     


    • Article last edited: 10-Jul-2014