Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






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

Log format problem

Reply to Post Add a New Topic
UserPost

10:00 pm
July 9, 2009


Moedavis

Guest

Hi there,

I'm trying to parse a simple file that contains a list of ip addresses.

for example:

70.61.50.68
204.235.114.59
71.54.55.116
65.101.218.196
67.85.243.57
76.14.62.171

my config is  LogFormat=”%host”

When I run:

C:\\Inetpub\\wwwroot\\AWStats\\cgi-bin>awst
ats.pl -config=cs -update

Create/Update database for config “C:\\I
netpub\\wwwroot\\AWStats\\cgi-bin/awstats.
cs.conf” by AWStats version 6.9 (build
1.925)

From data in log file “C:/Logs/ips.log”

Error: Your personalized LogFormat does
 not include all fields required by AWS
tats (Add %time1 or %time2 in your LogF
ormat string).

Setup ('C:\\Inetpub\\wwwroot\\AWStats\\cgi-
bin/awstats.cs.conf' file, web server o
r permissions) may be wrong.

Check config file, permissions and AWSt
ats documentation (in 'docs' directory).

LogFormat=”%host”

I'm a newbie to awstats, so any help would be appreciated.

thanks,Cry

12:13 am
July 10, 2009


Jean-Luc

Admin

posts 1043

Hi,

The message you got is clear : "Error: Your personalized LogFormat does not include all fields required by AWStats ". A file with just IP addresses cannot be analyzed by AWStats.

10:42 am
July 10, 2009


Moedavis

Guest

Is there a list of fields that are required by awstats?

12:29 pm
July 10, 2009


Jean-Luc

Admin

posts 1043

Here is the list of required fields :

  • %host
  • %time1 or %time2 or %time3 or %time4
  • %methodurl or %methodurlnoprot or both %method and %url
  • %code
  • %bytesd

5:49 pm
July 13, 2009


Moedavis

Guest

Hello again,

I've modified my log file to the following:

LogFormat = “%time2 %method %url %host %code %bytesd”

example data:  7/13/09 9:20 GET /cgi-bin/awstats.pl 68.198.177.210 200 1046

C:\\Inetpub\\wwwroot\\AWStats\\cgi-bin>perl
 awstats.pl -config=cs update

Create/Update database for config “./aw
stats.cs.conf” by AWStats version 6.9 (
build 1.925)

From data in log file “C:/Logs/iisip-9.
txt”…

Phase 1 : First bypass old records, sea
rching new record…

Searching new records from beginning of
 log file…

Jumped lines in file: 0
Parsed lines in file: 23115
 Found 23113 dropped records,
 Found 2 corrupted records,
 Found 0 old records,
 Found 0 new qualified records.

C:\\Inetpub\\wwwroot\\AWStats\\cgi-bin>

Any clue what I'm missing here?

Yell

1:48 am
July 14, 2009


Jean-Luc

Admin

posts 1043

For %time2 , the date and time in your example should be:

2009-07-13 09:20:00

7:37 am
January 12, 2011


xo

Guest

HI,

 

would like to ask if we can define our own LogFormat for below:

06-Jan-2011 09:13:50.258 queries: client 11.22.22.44#55023: query: http://www.youtube.com IN A + (55.55.77.88)

 

Many Thx!

Reply to Post

Reply to Topic:
Log format 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:
4 + 10
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 201

Currently Online: Diggy
14 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 498
Posts: 2380

Membership:

There are 2068 Members
There have been 245 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

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

Recent New Members: Diggy, mopl91, henrique, ScottWigle, mgshirinda, andersondj

Administrators: Jean-Luc (1043 Posts)

Moderators: Jean-Luc (1043 Posts)