awstat support

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

awstat support

Leos Literak
Hi,

I upgraded to jetty 6 from jetty 4 and awstat stopped working.
My admin told me that dateformat is the issue:

66.249.72.226 -  -  [Fri, 24 Aug 2007 11:03:30 GMT] "GET
/software/hry/strategicke/glest HTTP/1.1" 200 11683 "-"
"Mediapartners-Google"

He offered me several formats:

#   %time1            Date and time with format: [dd/mon/yyyy:hh:mm:ss
+0000] or [dd/mon/yyyy:hh:mm:ss]
#   %time2            Date and time with format: yyyy-mm-dd hh:mm:ss
#   %time3            Date and time with format: Mon dd hh:mm:ss or Mon dd
hh:mm:ss yyyy
#   %time4            Date and time with unix timestamp format: dddddddddd

So I chose the second one, but jetty adds [] around it, though
it shall do it only for the first format:

208.36.144.8 -  -  [2007-08-30 20:53:56] "GET /blog/show/113139
HTTP/1.0" 200 27090 "-" "Mozilla/5.0

Is it bug in awstat or jetty? (the first format does not work for me
well, because it prints roman letters instead of month VIII and I worry
to touch locale).

Thanks

Leos


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support
Reply | Threaded
Open this post in threaded view
|

Re: awstat support

jan_bartel
Leos,

The request logger is using the NCSA common log format, which
always surrounds the date field with [ ]:

http://httpd.apache.org/docs/2.2/logs.html

regards
Jan

Leos Literak wrote:

> Hi,
>
> I upgraded to jetty 6 from jetty 4 and awstat stopped working.
> My admin told me that dateformat is the issue:
>
> 66.249.72.226 -  -  [Fri, 24 Aug 2007 11:03:30 GMT] "GET
> /software/hry/strategicke/glest HTTP/1.1" 200 11683 "-"
> "Mediapartners-Google"
>
> He offered me several formats:
>
> #   %time1            Date and time with format: [dd/mon/yyyy:hh:mm:ss
> +0000] or [dd/mon/yyyy:hh:mm:ss]
> #   %time2            Date and time with format: yyyy-mm-dd hh:mm:ss
> #   %time3            Date and time with format: Mon dd hh:mm:ss or Mon dd
> hh:mm:ss yyyy
> #   %time4            Date and time with unix timestamp format: dddddddddd
>
> So I chose the second one, but jetty adds [] around it, though
> it shall do it only for the first format:
>
> 208.36.144.8 -  -  [2007-08-30 20:53:56] "GET /blog/show/113139
> HTTP/1.0" 200 27090 "-" "Mozilla/5.0
>
> Is it bug in awstat or jetty? (the first format does not work for me
> well, because it prints roman letters instead of month VIII and I worry
> to touch locale).
>
> Thanks
>
> Leos
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Jetty-support mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/jetty-support
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support
Reply | Threaded
Open this post in threaded view
|

Re: awstat support

Jan Bartel
In reply to this post by Leos Literak
Leos,

The request logger is using the NCSA common log format, which
always surrounds the date field with [ ]:

http://httpd.apache.org/docs/2.2/logs.html

regards
Jan

Leos Literak wrote:

> Hi,
>
> I upgraded to jetty 6 from jetty 4 and awstat stopped working.
> My admin told me that dateformat is the issue:
>
> 66.249.72.226 -  -  [Fri, 24 Aug 2007 11:03:30 GMT] "GET
> /software/hry/strategicke/glest HTTP/1.1" 200 11683 "-"
> "Mediapartners-Google"
>
> He offered me several formats:
>
> #   %time1            Date and time with format: [dd/mon/yyyy:hh:mm:ss
> +0000] or [dd/mon/yyyy:hh:mm:ss]
> #   %time2            Date and time with format: yyyy-mm-dd hh:mm:ss
> #   %time3            Date and time with format: Mon dd hh:mm:ss or Mon dd
> hh:mm:ss yyyy
> #   %time4            Date and time with unix timestamp format: dddddddddd
>
> So I chose the second one, but jetty adds [] around it, though
> it shall do it only for the first format:
>
> 208.36.144.8 -  -  [2007-08-30 20:53:56] "GET /blog/show/113139
> HTTP/1.0" 200 27090 "-" "Mozilla/5.0
>
> Is it bug in awstat or jetty? (the first format does not work for me
> well, because it prints roman letters instead of month VIII and I worry
> to touch locale).
>
> Thanks
>
> Leos
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Jetty-support mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/jetty-support
>


--
Jan Bartel, Webtide LLC | [hidden email] | http://www.webtide.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support
Reply | Threaded
Open this post in threaded view
|

Re: awstat support

Leos Literak
Jan Bartel wrote:
> Leos,
>
> The request logger is using the NCSA common log format, which
> always surrounds the date field with [ ]:
>
> http://httpd.apache.org/docs/2.2/logs.html

Jan,

thank you for your answear, but awstat is still not running
and my admin tries to convince me, that it is jetty's configuration
issue. I read above URL and there is nothing written about
[] around time.


Running '"/usr/lib/cgi-bin/awstats.pl"
So searching new records from beginning of log file...
AWStats did not find any valid log lines that match your LogFormat
parameter, in the 50th first non commented lines read of your log.
Your log file /data/abclinuxu_data/logs/testik.log must have a bad format
or LogFormat parameter setup does not match this format.
Your AWStats LogFormat parameter is:
%host %other %logname %time2 %methodurl %code %bytesd %refererquot
%uaquot
This means each line in your web server log file need to have the
following personalized log format:
%host %other %logname %time2 %methodurl %code %bytesd %refererquot
%uaquot
And this is an example of records AWStats found in your log file (the
record number 50 in your log):
81.27.200.198 -  -  [2007-09-01 00:00:16] "GET /auto/abc.rss HTTP/1.1" 200
8126 "-" "RSSPoint/2 (2b91;Windows XP)"


Example:

217.195.161.18 -  -  [2007-09-01 01:38:09] "GET / HTTP/1.1" 302 0 "-" "-"
217.195.161.18 -  -  [2007-09-01 01:38:09] "GET / HTTP/1.1" 200 16066 "-"
"-"
66.249.65.52 -  -  [2007-09-01 01:38:10] "GET /bazar?from=120&count=40
HTTP/1.1" 200 11716 "-" "Mozilla/5.0 (compatible; Googlebot/2.1;
+http://www.google.com/bot.html)"
66.249.65.52 -  -  [2007-09-01 01:38:11] "GET
/blog/show/103337?varianta=print HTTP/1.1" 200 4789 "-" "Mozilla/5.0
(compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

Any idea?

Thank you

Leos


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support
Reply | Threaded
Open this post in threaded view
|

Re: awstat support

Jan Bartel
Hi Leos,

Well, every example I can see has the time/date field surrounded
by [].

But, if your sys admin can point me to the part of the
specification that specifies exactly under which circumstances
the [] should be applied, then I'll sure modify jetty accordingly.
Sound fair?

BTW, thanks to your email, I've had a closer look at the NCSARequestLog
and I've realized that it's default date format doesn't match the
default date format for the common log format, so I've fixed it
(svn rev 2083).

best regards
Jan

Leos Literak wrote:

> Jan Bartel wrote:
>> Leos,
>>
>> The request logger is using the NCSA common log format, which
>> always surrounds the date field with [ ]:
>>
>> http://httpd.apache.org/docs/2.2/logs.html
>
> Jan,
>
> thank you for your answear, but awstat is still not running
> and my admin tries to convince me, that it is jetty's configuration
> issue. I read above URL and there is nothing written about
> [] around time.
>
>
> Running '"/usr/lib/cgi-bin/awstats.pl"
> So searching new records from beginning of log file...
> AWStats did not find any valid log lines that match your LogFormat
> parameter, in the 50th first non commented lines read of your log.
> Your log file /data/abclinuxu_data/logs/testik.log must have a bad format
> or LogFormat parameter setup does not match this format.
> Your AWStats LogFormat parameter is:
> %host %other %logname %time2 %methodurl %code %bytesd %refererquot
> %uaquot
> This means each line in your web server log file need to have the
> following personalized log format:
> %host %other %logname %time2 %methodurl %code %bytesd %refererquot
> %uaquot
> And this is an example of records AWStats found in your log file (the
> record number 50 in your log):
> 81.27.200.198 -  -  [2007-09-01 00:00:16] "GET /auto/abc.rss HTTP/1.1" 200
> 8126 "-" "RSSPoint/2 (2b91;Windows XP)"
>
>
> Example:
>
> 217.195.161.18 -  -  [2007-09-01 01:38:09] "GET / HTTP/1.1" 302 0 "-" "-"
> 217.195.161.18 -  -  [2007-09-01 01:38:09] "GET / HTTP/1.1" 200 16066 "-"
> "-"
> 66.249.65.52 -  -  [2007-09-01 01:38:10] "GET /bazar?from=120&count=40
> HTTP/1.1" 200 11716 "-" "Mozilla/5.0 (compatible; Googlebot/2.1;
> +http://www.google.com/bot.html)"
> 66.249.65.52 -  -  [2007-09-01 01:38:11] "GET
> /blog/show/103337?varianta=print HTTP/1.1" 200 4789 "-" "Mozilla/5.0
> (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
>
> Any idea?
>
> Thank you
>
> Leos
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Jetty-support mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/jetty-support
>


--
Jan Bartel, Webtide LLC | [hidden email] | http://www.webtide.com


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support