LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-12-2009, 08:20 AM   #1
sezam2
LQ Newbie
 
Registered: Feb 2009
Posts: 22

Rep: Reputation: 15
I need help configuring a syslog server on a xen virtual machine


Hello

i am supposed to configure a syslog server ona xen virtuel machine in wich suse 10 sp2 is installed

the problem



1 i dont know who to locate the file( in the host supposed to send log to my server)

so i introduce the ipp adress of my server

2 What change have i to introduce içni the server to locate the destination of thees logs

thks
 
Old 02-12-2009, 09:19 PM   #2
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
/etc/syslog-ng/syslog-ng.conf

or if you only have normal syslog it's /etc/syslog.conf
 
Old 02-19-2009, 03:31 AM   #3
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
in apache config put;
ErrorLog syslog:local1
then in /etc/syslog.conf put;
local1.* @your_syslog_server
 
Old 02-19-2009, 05:41 PM   #4
sezam2
LQ Newbie
 
Registered: Feb 2009
Posts: 22

Original Poster
Rep: Reputation: 15
Unhappy i tried that it's not working

Quote:
Originally Posted by chitambira View Post
in apache config put;
ErrorLog syslog:local1
then in /etc/syslog.conf put;
local1.* @your_syslog_server
i dit that but i sow in

tail -f /var/log/allmesssages

nothing
1 this solution needs more steps to work


2 i dont no tknow were to find this sent log


because i added the -r option to my syslog.conf file

i added

udp(port"514");

in
/ect/syslog-ng/syslog-ng.conf

it work for other log not for this one
 
Old 02-20-2009, 07:59 AM   #5
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
mmm.... let me see relevant sections of both your syslog-ng.conf and apache.conf
 
Old 02-21-2009, 05:50 PM   #6
sezam2
LQ Newbie
 
Registered: Feb 2009
Posts: 22

Original Poster
Rep: Reputation: 15
Unhappy

Quote:
Originally Posted by chitambira View Post
mmm.... let me see relevant sections of both your syslog-ng.conf and apache.conf


for syslog

Code:
.
.
.
local1.*                      @192.168.1.66

.
.
.
note that when it was

local0,local1.* -/var/log/localmessages

it was working

each time i restart apache i see some worning
tail -f /var/log/localmessages

2) concerning mod_log_config.conf

at the end i added

Code:
ErrorLog syslog:local1

remember my syslog server deals with external log like this

Code:
.
.
.

 udp(port(514));
.
.
.

destination std {
        file ("/var/log/HOSTS/$YEAR-$MONTH/$HOST/$FACILITY-$YEAR-$MONTH-$DAY"
                owner(root) group(root) perm(0600) dir_perm(0700) create_dirs(yes)
        );
};
log {
        source(src);
        destination(std);
};

i don't if it is working i should see somthing here

tail -f /var/log/HOSTS/date/name_of_the_host/facility/


if i am looking in the wrong place please tell me
 
Old 02-21-2009, 06:00 PM   #7
sezam2
LQ Newbie
 
Registered: Feb 2009
Posts: 22

Original Poster
Rep: Reputation: 15
sorry i think


i got it

i have seen in


my syslog server local messages and i so warninigs each time i rtestart apache in the client
is it the write way ?

thanks
 
Old 02-21-2009, 06:00 PM   #8
sezam2
LQ Newbie
 
Registered: Feb 2009
Posts: 22

Original Poster
Rep: Reputation: 15
sorry i think


i got it

i have seen in


my syslog server local messages and i so warninigs each time i rtestart apache in the client
is it the write way ?

thanks
 
  


Reply



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
problem with xen virtual machine marzban123 Linux - Software 1 04-26-2009 08:35 AM
Virtual Machine Manager (Xen) in in Fedora 7 samthakur Linux - Software 0 11-15-2007 11:05 AM
Installing a xen virtual machine from CD media. ChrisScott Linux - General 0 05-01-2007 10:55 AM
DSL for virtual machine under Xen? Peufelon DamnSmallLinux 1 11-07-2006 05:48 PM
problems with xen virtual machine klinux89 Linux - Kernel 1 10-06-2006 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:54 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