LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-17-2009, 06:39 AM   #1
sezam2
LQ Newbie
 
Registered: Feb 2009
Posts: 22

Rep: Reputation: 15
Wink sending appache error to a syslog server


Hello

i finaly succeded in setting a syslog server
(on a suse 10 sp2 environement working on xen virtual machine)

my server create a folder having the host name or the url in wich he saves the log files he recive from


Quote:
destination std {
file ("/var/log/HOSTS1/$YEAR-$MONTH/$HOST/$FACILITY-$YEAR-$MONTH-$DAY"
owner(root) group(root) perm(0600) dir_perm(0700) create_dirs(yes)
);
};
log {
source(src);
destination(std);
};
know i want to send apache log files specially error to my syslog server


i need a hand in this issue

thanks

Last edited by sezam2; 02-17-2009 at 09:16 AM.
 
Old 02-17-2009, 05:31 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Here's a simple explanation: Sending Apache httpd Logs to Syslog and a more elaborate one. BTW please don't crosspost questions on LQ.
 
Old 02-18-2009, 09:51 AM   #3
sezam2
LQ Newbie
 
Registered: Feb 2009
Posts: 22

Original Poster
Rep: Reputation: 15
Unhappy i tried it but local1 we have nothing

Quote:
Originally Posted by unSpawn View Post
Here's a simple explanation: Sending Apache httpd Logs to Syslog and a more elaborate one. BTW please don't crosspost questions on LQ.
thanks i 'am going to consider you remarqu but i wanted to give the maximum of detail...

i use sues 10 sp2
lets talk busnes ( hihi)
i tried to follow the how to you gave me but


when i tri the classic way to view error


Quote:
if i use in /etc/apache2/mod_log_config.conf
CustomLog /var/log/apache2/agent_log "%{User-agent}i"
#ErrorLog "|/home/user/cronolog-1.6.2/src/cronolog /var/log/apache2/sami/error
it work tail -f /var/log/apache2/sami/error
alow me to see apache error log
but
if i use in /etc/apache2/mod_log_config.conf
ErrorLog syslog:local1
and
in /etc/syslog.conf
local0.* -/var/log/localmessages
local1.crit /var/log/apache.crit


nothing i can see nothing
 
Old 02-18-2009, 03:39 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by sezam2 View Post
if i use in /etc/apache2/mod_log_config.conf
That included configuration file might be just for defining logging formats, logfile locations and custom logging. ErrorLog can be in the main configuration file for all instances or in the main configuration file plus Vhost containers. It's unclear to me if having an ErrorLog directive in /etc/apache2/mod_log_config.conf should work.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
appache error: Permission access - on RHEL5 samengr Linux - Server 4 02-12-2009 04:49 AM
Sending 3rd party logs to remote syslog server OlRoy Linux - Server 3 12-24-2008 06:06 PM
Sending audit information with syslog kelo81 Linux - Security 8 01-29-2008 06:31 PM
netconsole not sending syslog messages to remote machine cygnus-x1 Linux - General 1 12-06-2007 05:47 PM
LXer: Centralized Syslog Server Using syslog-NG LXer Syndicated Linux News 0 04-28-2006 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration