Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

nginx log format

Reply to Post Add a New Topic
UserPost

8:22 pm
July 30, 2011


Ved

Guest

I keep on seeing this error:

 

Your log file /var/log/nginx/access_20110725.log must have a bad format or LogFormat parameter setup does not match this format.

Your AWStats LogFormat parameter is: %host %other %other %time1 %methodurl %code %bytesd %refererquot %uaquot %otherquot

This means each line in your web server log file need to have the following personalized log format:

%host %other %other %time1 %methodurl %code %bytesd %refererquot %uaquot %otherquot

And this is an example of records AWStats found in your log file (the record number 50 in your log):

14.99.80.168 – – [25/Jul/2011:01:06:58 +0530] GET /view?utf8=%E2%9C%93&q=lg+optimus+p500&search_type=mobiles&last_search_type=books HTTP/1.1 304 0 "http://cheapr.me/view?utf8=%E2%9C%93&q=lg+optimus+p500&search_type=mobiles&last_search_type=books" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)" "-"

 

Not sure where the format is mismatching

8:32 pm
July 30, 2011


Jean-Luc

Admin

posts 1125

Hello,

I would replace your %methodurl  by %method %url %other .

Try this:

LogFormat="%host %other %other %time1 %method %url %other %code %bytesd %refererquot %uaquot %otherquot"

Reply to Post

Reply to Topic:
nginx log format

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
1 + 9
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
15 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2710

Membership:

There are 257 Members
There have been 304 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)