[phpLogCon] Webserver Fields
Oláh Ambrus Sándor
aolah76 at freemail.hu
Tue Nov 19 20:57:23 CET 2013
Dear Mr. Lorbach,
thank you very much. I have tried your suggestion. I have copy pasted the
examples found in /classes/msgparsers/msgparser.apache2.class.php
127.0.0.1 - - [14/Sep/2008:06:50:15 +0200] "GET / HTTP/1.0" 200 19023 "-"
"VoilaBot link checker"
65.55.211.112 - - [16/Sep/2008:13:37:47 +0200] "GET
/index.php?name=News&file=article&sid=1&theme=Printer HTTP/1.1" 200 4908 "-"
"msnbot/1.1 (+http://search.msn.com/msnbot.htm)"
All the above text appears int he Message column. I have than edited my
lighttpd config to use the default logging format uncommenting the line
related to accesslog.format :
accesslog.filename = "/var/log/lighttpd/access.log"
#accesslog.format = "%{%b %d %H:%M:%S}t %h %U%q %s %b:
%{From}i|%{Via}i|%{Referer}i"
Than I have restarted lighttpd. No change. Somehow LogAnalyzer should be
instructed to use msgparser.apache2.class.php
Therefore I also include the relevant fragment from LogAnalyzer's
config.php:
$CFG['Sources']['Source6']['ID'] = 'Source6';
$CFG['Sources']['Source6']['Name'] = ' Web Server log';
$CFG['Sources']['Source6']['ViewID'] = 'WEBLOG';
$CFG['Sources']['Source6']['SourceType'] = SOURCE_DISK;
$CFG['Sources']['Source6']['LogLineType'] = 'syslog';
$CFG['Sources']['Source6']['DiskFile'] = '/var/log/lighttpd/access.log';
Could you check the above? Is it needed any other setting?
Yours sincerely,
Ambrus Oláh
More information about the phpLogCon
mailing list