Problem finding the right LogFormat

wdamn
2013-02-04
2013-02-04
  • wdamn

    wdamn - 2013-02-04

    Hi,

    I cannot find the right LogFormat for my logs.

    Here is the LogFormat:
    LogFormat = "%host %other %time1 %methodurl %code %bytesd %referer %otherquot %uaquot %otherquot"
    and here a line of my logs:
    84.143.197.98 - - [01/Feb/2013:00:02:08 +0100] "GET /cdn/blog/wp-content/uploads//2013/01/pic.jpg HTTP/1.1" 200 22143 www.url.biz "http://www.url.de/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:18.0) Gecko/20100101 Firefox/18.0" "84.143.197.98"

    what's the problem?

    thanks

     
    • Shalom Carmel

      Shalom Carmel - 2013-02-04

      Notice the pair of hyphens?
      84.143.197.98 - -

      Try adding another %other like this:
      LogFormat = "%host %other %other %time1 %methodurl %code %bytesd %referer
      %otherquot %uaquot %otherquot"

      Better yet, see if you can find out the actual log format from the server
      configuration file.

      On 4 February 2013 12:46, wdamn wdamn@users.sf.net wrote:

      Hi,

      I cannot find the right LogFormat for my logs.

      Here is the LogFormat:
      LogFormat = "%host %other %time1 %methodurl %code %bytesd %referer
      %otherquot %uaquot %otherquot"
      and here a line of my logs:
      84.143.197.98 - - [01/Feb/2013:00:02:08 +0100] "GET
      /cdn/blog/wp-content/uploads//2013/01/pic.jpg HTTP/1.1" 200 22143
      www.url.biz "http://www.url.de/" "Mozilla/5.0 (Macintosh; Intel Mac OS X
      10.6; rv:18.0) Gecko/20100101 Firefox/18.0" "84.143.197.98"

      what's the problem?
      thanks

      Problem finding the right LogFormathttps://sourceforge.net/p/awstats/discussion/43428/thread/5ba669af/?limit=25#9bf7

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/awstats/discussion/43428/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/prefs/

       
      • wdamn

        wdamn - 2013-02-04

        yeah, thanks! that was the problem!

        Unfortunately I don't have access to the configuration of the server, just to the logs...

         

Log in to post a comment.