Sending all apache logs to Syslog Server

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Sending all apache logs to Syslog Server
# 1  
Old 01-15-2010
Sending all apache logs to Syslog Server

Hi All,

I need to send all apache logs to local syslog and then to syslog server (STRM – Security Threat response manager).

I follow these steps:-

vi /etc/httpd/conf/httpd.conf

Added these lines :-

ErrorLog syslog:local1
LogLevel notice

Then in syslog.conf:-

local1.crit /var/log/httpd/access.log

local1.* @192.168.1.1 (IP of syslog server)

killall -HUP syslogd
httpd restart.

Now apache logs are showing in remote syslog server. But the issue is I am getting only "notice" from apache i.e stopping and starting httpd services and nothing else.

I need all apache logs (i.e if someone clicked on the site then all logs should be send to syslog server and not only httpd restarting services)

I may need to set LogLevel in httpd.conf to redirect all access logs to syslog server.

Please suggest as I need to log 3 or more files includes modsecurity, error log , tomcat logs to syslog server.. Need to redirect all logs to syslog server.

Please suggest...

Thanks,
Sudhir
# 2  
Old 01-15-2010
According to this directive:

Code:
 
ErrorLog syslog:local1
LogLevel notice

You set the level to only show notices from Apache.
# 3  
Old 01-18-2010
Need all logs in syslog server

Hi All,

I need all apache logs in my Syslog Server.

Can you please send me some help regarding my previous post.
# 4  
Old 01-18-2010
According to this article on O'Reilly only the ErrorLog supports sending messages directly to syslog. For everything else, you'll have to pipe it to a program first. Luckily, they provide the script in the same article.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Linux

How to push Tomcat logs to remote syslog server?

I found a script for automatically push tomcat logs to syslog server which is locate in same server. How do I change it to push logs to remote server? log4j.rootLogger=INFO, WARN, console, file, SYSLOG log4j.appender.file=org.apache.log4j.RollingFileAppender log4j.appender.file.append=true... (2 Replies)
Discussion started by: heshandh
2 Replies

2. AIX

Apache logs

Hi, I can't seem to find the apache logs in my system. Can anyone assist me on finding them? This was done with a RPM install. I've checked everywhere and even tried a find command with key names like httpd and apache. and i've come up with nothing except my conf files. (2 Replies)
Discussion started by: vpundit
2 Replies

3. Programming

Problem with Perl script after moving from a Windows/Apache Server to a UNIX server.

I have a Perl script that worked fine before moving it to justhost.com. It was on a Windows/Apache server. Just host is using UNIX. Other Perl scripts on other sites that were also moved work fine so I know Perl is functioning. The script is called cwrmail.pl and is located in my cgi-bin. When I... (9 Replies)
Discussion started by: BigBobbyB
9 Replies

4. Shell Programming and Scripting

Perl: Sending file from UNIX server to Windows server

I'm trying to write a Perl script where a file from a UNIX server box connects to a Windows server box and copies that file into the Window box. The main problem I have right now is that whenever I try to connect to the Windows box, the connection is refused. The error message that always pops... (2 Replies)
Discussion started by: kooshi
2 Replies

5. UNIX for Advanced & Expert Users

howto dump CFTOKEN and CFID in apache logs

hi folks, Can you help me how to dump CFTOKEN and CFID requests in apache access_log ? can you give me a better idea how to accomplish this ? thanks (2 Replies)
Discussion started by: linuxgeek
2 Replies

6. Linux

sending messages from auditd logs to syslog server

I have the auditd running and I need to send the audit logs to a remote syslog server. Anyideas on how to do that? (1 Reply)
Discussion started by: jmathenge
1 Replies
Login or Register to Ask a Question