Help with Apache Collector
Created: 16 Oct 2012 | Updated: 07 Nov 2012 | 15 comments
This issue has been solved. See solution.
Hi,
I have been use Apache_Web_Server_Event_Collector_4.3.5_AllLinux_EN.zip for install Apache Collector, but I don't know what could be wrong because I see only events of kind:
Event Type = Application Start or Stop
Product = Apache Event Collector
I make uninstall and install and nothing changes.
Could me help?
I am using Red Hat Linux 5.8 x86_64
Thanks!
Discussion Filed Under:
Comments 15 Comments • Jump to latest comment
one of the common problem with apache collector is the format of the apache log.
Could you go to your sensor properties, and disable the default filters ? See if you start to get events.
can you please confirm, if you are getting any error in the log file.
Regards,
Avkash K
Following my apache.log
Can you post a sample of the access_log ?
Just the first few lines ? I am sure it is a translation error, and the log format is not w3c or it is missing fields
Hello
Following the access_log:
Correct format should be :
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" collector
example of good log :
81.23.112.138 - - [20/Oct/2005:19:42:20 +0400] "GET /scripts/conf.jsp HTTP/1.0" 200 59 "http://www.itplus.ru/itplus/forum_home/forum_reg.htm" "Mozilla/4.0 (compatible;MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; InfoPath.1)"
Great this works now.
About collecting from several servers. Generally what customers do is to centrenlise the log on a single file server.
then you can map or point sensor to this folder.
This require a couple of commands/scripts to regularly move the log to this location to be read by collector.
Hi,
Could you disable the working sensor, and leaving only the not working one enabled.
1- How do you tranfer the file ? -> Make sure the format is correct, this is a text file, so if you FTP make sure the type is not changed etc...
2- Is the secodn not working file coming from the same OS ? When you tranfer file from Windows to Unix, the EoL is not correct.
If you could maybe post a sampel log of the second sensor enabled only, and if possible put it in debug. If you don;t knwo how to put in debug let me know.
Laurent
Laurent
I disabled the first sensor "sensor 0", right now is active onlly sensor 1 .
Following my answers:
1 - Transfer by "scp"
2 - Both are Linux, but the first is Scientific Linux and Second is Red Hat
Sample Logs (access_log.1):
Apache logs :
INFO 2012-10-24 07:40:12,459 Collectors.3194 com.symantec.management.util.TimerThread ---------------- collector stopped ----------------
Hi,
I have seen you have a case opened with Support, requested to get in touch and we could maybe run a webex and have a look at the configuration of your setup.
Laurent
Hi
This case was solved by webex.
Thanks!
Would you like to reply?
Login or Register to post your comment.