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

Logformat problem

Reply to Post Add a New Topic
UserPost

6:24 pm
September 11, 2008


Gregorybe

Guest

Hello, I'm having a strange problem, I checked everything but awstats keeps saying the records are corrupt. so there is a problem with my Logformat

(I'm trying to import a log created with an ftp client)

9-12-2008 00:59:00#testuser2#83.101.
46.117#384837#/Dark experiment.jpg#8
309#GET#2#False#200
9-12-2008:00:59:00#testuser2#83.101.
46.117#133#/index.php#64292#GET#1#Fa
lse#200

LogFormat=”%time2 %lognamequot %host %bytesd %url %other %method %other %other %code”
LogSeparator=”#”

What am I doing wrong?

Thanks in advance

2:18 am
September 12, 2008


Jean-Luc

Admin

posts 1125

Hi,

There are no quotes around the log name in your records.

I would try this:

LogFormat="%time2 %logname %host %bytesd %url %other %method %other %other %code"

LogSeparator="#"

3:45 am
September 12, 2008


Gregorybe

Guest

I changed it to:

LogFormat="%time2 %logname %host %bytesd %url %other %method %other %other %code"

Still no luck

10:59 am
September 12, 2008


Gregorybe

Guest

I solved the problem.

I created the log files radomly, the Time and  Date must be in the past. so setting a date and time in the past the log file was imported correctly

6:02 pm
October 6, 2008


Mallo

Guest

Hi,

I have a problem with log IIS 7.0 and Awstats 6.8.

This my logs :

82.246.177.177, -, 10/7/2008, 0:38:30, W3SVC2, SERVWEB01, 192.168.1.153, 234, 344, 646, 200, 0, GET, /images/p/input_hover.gif, -,

Can you help please.

4:01 am
October 7, 2008


Jean-Luc

Admin

posts 1125

Hi Mallo,

Your log format is not compatible with AWStats. It is very likely that you can make it compatible by preprocessing the log file before you pass it to AWStats. Please paste here the content of the line starting with “#Fields:” (at the top of your log files). It will help us help you.

To avoid this problem in the future, I suggest that you change your IIS log format into a more common IIS format.

5:30 am
October 7, 2008


Mallo

Guest

Hi Jean-Luc

It's the new log of IIS 7.0 with Windows Server 2008.

On IIS 7.0, this is the log :

line1: 82.246.177.177, -, 10/7/2008, 0:38:28, W3SVC2, SERVWEB01, 192.168.1.153, 46, 336, 0, 200, 64, GET, /images/p/top.jpg, -,
line2: 82.246.177.177, -, 10/7/2008, 0:38:30, W3SVC2, SERVWEB01, 192.168.1.153, 234, 344, 646, 200, 0, GET, /images/p/input_hover.gif, -,
line3: 82.246.177.177, -, 10/7/2008, 0:38:30, W3SVC2, SERVWEB01, 192.168.1.153, 187, 1748, 10102, 200, 0, POST, /, -,
line3: 82.246.177.177, -, 10/7/2008, 0:38:30, W3SVC2, SERVWEB01, 192.168.1.153, 31, 368, 352, 200, 0, GET, /captcha.php, pck=b1f1f6bf704daa5787d3a2438caa4eec,

The following list is a list of fileds that are logged when i use the IIS log file format : Client Ip Adress, Username, Date, Time, Service and instance, Server name, Server Ip adresse, Time taken, Client bytes sent, Server bytes sent, Services status code (a value of 200 indicates that the request was fulfilled successfully), Windows status code (a value of 0 indicates that the request was fulfilled successfully), Request type, Target of operation, Parameters.

However, i can choose the W3C log format and i get the following :

#Software: Microsoft Internet Information Services 7.0
#Version: 1.0
#Date: 2008-10-07 10:26:11
#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

line1: 2008-10-07 10:26:11 W3SVC2 SERVW
EB01 192.168.1.153 GET / – 80 – 82.246.
177.177 HTTP/1.1 Mozilla/4.0+(compatibl
e;+MSIE+7.0;+Windows+NT+6.0;+SLCC1;+.NE
T+CLR+2.0.50727;+Media+Center+PC+5.0;+.
NET+CLR+3.0.04506;+InfoPath.2) – - www.
websitedomaine.eu 200 0 0 9802 582 546

line2: 2008-10-07 10:26:11 W3SVC2 SERVW
EB01 192.168.1.153 GET /js/swfobject.js
 - 80 – 82.246.177.177 HTTP/1.1 Mozilla
/4.0+(compatible;+MSIE+7.0;+Windows+NT+
6.0;+SLCC1;+.NET+CLR+2.0.50727;+Media+C
enter+PC+5.0;+.NET+CLR+3.0.04506;+InfoP
ath.2) – www.websitedomaine.eu 200 0 0 7142 335 
78

line3: 2008-10-07 10:26:11 W3SVC2 SERVW
EB01 192.168.1.153 GET /css/style.css -
 80 – 82.246.177.177 HTTP/1.1 Mozilla/4
.0+(compatible;+MSIE+7.0;+Windows+NT+6.
0;+SLCC1;+.NET+CLR+2.0.50727;+Media+Cen
ter+PC+5.0;+.NET+CLR+3.0.04506;+InfoPat
h.2) – www.websitedomaine.eu 200 0 0 3471 333 15
6

Thx,

Mallo

5:52 am
October 7, 2008


Jean-Luc

Admin

posts 1125

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

This  should work with your W3C log format.

The format of the date field in the other IIS log format you have is not supported by AWStats. Prefer the W3C format if you want to use AWStats.

6:17 am
October 7, 2008


Mallo

Guest

Jean-Luc said:

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

This  should work with your W3C log format.

The format of the date field in the other IIS log format you have is not supported by AWStats. Prefer the W3C format if you want to use AWStats.


Very Thx

Mallo

Reply to Post

Reply to Topic:
Logformat problem

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:
7 + 6
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
10 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 638
Posts: 2712

Membership:

There are 257 Members
There have been 305 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)