Hello All,
I have been trying to get the JavaWebserver combined logs to be read correctly and keep running into problems. Here is a couple of sample logfile entries:
./logs/combined_log.2166:210.255.3.173 - foobar [10/Jun/2000:23:58:33 +0900] "GET /Fortune/data//money.gif HTTP/1.1" 200 266 "http://www.gabugabu.com/Fortune/data/entry.jsp" "Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)" www.gabugabu.com
./logs/combined_log.2166:210.255.3.173 - - [10/Jun/2000:23:58:33 +0900] "GET /Fortune/data//money.gif HTTP/1.1" 200 266 "http://www.gabugabu.com/Fortune/data/entry.jsp" "Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)" www.gabugabu.com
I have replaced the real name with foobar, but I am pretty sure it is supposed to be a user name, so .....
I have tried these two logformats:
LOGFORMAT (%S - - [%d/%M/%Y:%h:%n:%j %j] "%j %r %j" %c %b "%f" "%B" %j)
LOGFILE ./logs/combined*
with this LOGFORMAT I get tons of C: entries with debug on and several unwanted lines:
-------------snip------------------
C: 210.255.7.182 - cassandra [14/Jun/2000:23:46:19 +0900] "GET /Fortune/data//money.gif HTTP/1.1" 200 266 "http://www.gabugabu.com/Fortune/data/entry.jsp" "Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)" www.gabugabu.com
C: *
F: Closing logfile ./logs/combined_log166
S: Successful requests: 0
S: Redirected requests: 0
S: Failed requests: 0
S: Requests returning informational status code: 0
S: Status code not given: 0
S: Unwanted lines: 133304
S: Corrupt lines: 112
F: Opening ./logs/combined_log.1166 as logfile
^C./analog: Received interrupt signal: exiting
----------------snip---------------------------
LOGFORMAT (%S - %u [%d/%M/%Y:%h:%n:%j %j] "%j %r %j" %c %b "%f" "%B" %j)
LOGFILE ./logs/combined*
With this, all lines are unwanted:
-------------snip------------------
:!./analog
F: Closing configuration file /usr/local/analog4.03/analog.cfg
F: Opening /usr/local/analog4.03/lang/uk.lng as language file
F: Closing language file /usr/local/analog4.03/lang/uk.lng
F: Opening /usr/local/analog4.03/lang/ukdom.tab as domains file
F: Closing domains file /usr/local/analog4.03/lang/ukdom.tab
F: Opening ./logs/combined_log166 as logfile
F: Closing logfile ./logs/combined_log166
S: Successful requests: 0
S: Redirected requests: 0
S: Failed requests: 0
S: Requests returning informational status code: 0
S: Status code not given: 0
S: Unwanted lines: 133416
S: Corrupt lines: 0
F: Opening ./logs/combined_log.1166 as logfile
^C./analog: Received interrupt signal: exiting
-------------snip------------------
I hope this is an easy/obvious one.
Thanks in advance.
Buddy Lumpkin
Sr. Systems/Network Administrator
Ijapan.com Inc.
(425) 709-2900 Ext. 13
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Contrary to popular opinion, UNIX is user friendly...
It just happens to be highly selective about who it makes friends with
