Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Parsing IIS W3C Extended …

Add a New Topic Reply to Post
UserPost

5:01 pm
September 16, 2008


saurabh

Guest

You are Just amazing it works , please help me how should i go about it to build my own Log format parameters

12:01 am
September 17, 2008


Jean-Luc

Admin

posts 815

To build your own list of parameters, use How To's : Log Format and start from the beginning of the #Fields  line.

It usually starts with “date time”. Search for “date time (IIS format) ” in the How To's  page. You will find that it matches “%time2 ” in the list of AWStats parameters.

Repeat the same steps for each parameter. If you do not find the IIS parameter in the How To's  page, replace it by “%other ” which means “not used”.

Now you are ready to create your own list of LogFormat parameters for AWStats !

1:22 pm
September 17, 2008


saurabh

Guest

Can You tell me how to do this and get the custom log format for any Fields that we have

rgds

saurabh

2:57 pm
September 17, 2008


Jean-Luc

Admin

posts 815

Saurabh,

I tried to explain how to do it in my last post above. I reformulate my answer here.

Copy the #Fields  line and the LogFormat  line on a piece of paper. You will quickly see that there is an AWStats code for each IIS field name. Refer to the list in the page I mentioned (How To's : LogFormat) to find which AWStats code to use for each IIS code.

I hope this helps.

7:04 am
September 24, 2008


MD1032

New Member

posts 1

Greetings, can you help me create the parameters for the following fields:

#Fields: date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken

Thank you very much for your time!

8:19 am
September 24, 2008


Jean-Luc

Admin

posts 815

Try this :

LogFormat = “%time2 %other %other %other %method %url %query %other %logname %host %other %ua %other %referer %other %code %other %other %bytesd %other %other”

I am pleased to help with these conversions from IIS log format specs to AWStats log format specs, but I wonder why you do not use the information in our page about LogFormat.Surprised

If this other page is not clear enough, please let me know how we should improve it. Thanks.Wink

12:56 pm
March 30, 2009


Amy

Guest

Thanks for posting this – I was tearing my hair out trying to get awstats running. Your posts did the trick.

7:45 pm
February 17, 2010


Boda

Guest

Hello,

I've tried to make my own log format refering to this page http://www.internetofficer.com…..og-format/  but without luck.Confused

Here is my log format:

date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken

And this what I've done by refer to the mentioned page:

%time2 %method %url %query %host %ua %referer %virtualname %code %bytesd

Your help is really appreciated

Thank you,

12:16 pm
February 18, 2010


Jean-Luc

Admin

posts 815

Hi,

I would try this:

LogFormat = "%time2 %virtualname %other %other %method %url %query %other %logname %host %other %ua %other %referer %other %code %other %other %bytesd %other %other"

11:10 pm
February 19, 2010


Boda

Guest

Thank you for your time,

Unfortunately Embarassedthis did not work for me , shall I play with LogSeparator?

Also I've tried this but It did not get any new records:

%time2 %other %other %other %method %url %query %other %logname %host %other %ua %other %referer %other %code %other %other %bytesd %other %other

Thank you for your efforts

11:28 pm
February 19, 2010


Jean-Luc

Admin

posts 815

Please paste here the exact message you get when running the update.

5:22 pm
February 20, 2010


Boda

Guest

Hi Jean-Luc,

I'm sorry for wasting your timeEmbarassed. But the thing is, I was try to make the Awstats process old logs. I wasn't know that I must process my log files in chronological order.

The following log format key is working fine for me.

"%time2 %other %other %other %method %url %query %other %logname %host %other %ua %other %referer %other %code %other %other %bytesd %other %other"

Thank you for your help.Smile

Regards,

12:26 pm
June 1, 2010


marty

New Member

posts 2

Hello

My logs format is:

#Fields: date time cs-method cs-uri cs-version c-ip x-distributor-id x-ext-status sc-bytes time-taken sc-status cs(User-Agent) cs(Referer) cs(Cookie)

Which LogFormat do i have to specify in awstats conf?

Thanks

12:58 pm
June 1, 2010


Jean-Luc

Admin

posts 815

Hi,

Try this:

LogFormat="%time2 %method %url %other %host %other %other %bytesd %other %code %ua %referer %other"

2:02 pm
June 1, 2010


marty

New Member

posts 2

ok thank you it seems working buth when i builld HTML files i can see detail just for current month while my logs are from past month.

How to specify the month for HTML generation?

2:29 pm
June 1, 2010


Jean-Luc

Admin

posts 815

Say you want to build the HTML files of the AWstats report for April 2009, then add this at the end of the command line:

-month=04 -year=2009

Reply to Post

Reply to Topic:
Parsing IIS W3C Extended …

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 + 1
   


About the InternetOfficer.com Forum

Most Users Ever Online: 65

Currently Online:
12 Guests

Forum Stats:

Groups: 2
Forums: 8
Topics: 375
Posts: 1849

Membership:

There are 193 Members
There have been 197 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 48
albert_newton – 30
cosminpana – 20
DTNMike – 16
x-plicit2009 – 14
deepakgupta – 14

Recent New Members: stewiedv, kre8web, xlancealotx, Robert25, geemist

Administrators: Jean-Luc (815 Posts)

Moderators: Jean-Luc (815 Posts)