User Post
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,
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?
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:/ /ww w.youtube.com IN A + (55.55.77.88)
Â
Many Thx!