LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   syslog problem (https://www.linuxquestions.org/questions/linux-server-73/syslog-problem-830953/)

life008 09-08-2010 05:58 AM

syslog problem
 
Hi to all

Kindly help,,actually i m using redhat5 and this is syslog server where i get my all device log file in /var/log/messagge...and i want to create separate log file for each device....so it can be through syslog

sem007 09-08-2010 06:52 AM

Quote:

Originally Posted by life008 (Post 4091264)
Hi to all

Kindly help,,actually i m using redhat5 and this is syslog server where i get my all device log file in /var/log/messagge...and i want to create separate log file for each device....so it can be through syslog

Device log?? As i know in redhat /var/log/message file store info log messages.

Can you elaborate more?

sem007 09-08-2010 06:56 AM

If you want to store every clients log in separate dir/file you can use syslog-ng or rsyslog server on log server.

Regards,

life008 09-10-2010 03:16 AM

syslog server issue
 
Thanks to all for replying

can this possible into this syslog server becoz its not possible to install any package in my organization. only i can work on syslog server.


NOTE:I Want that each device log file should be on separate file on servers only throw syslog server.becoz i dont have rights to install any other package.

sem007 09-10-2010 11:28 PM

Quote:

Originally Posted by life008 (Post 4093220)
Thanks to all for replying

can this possible into this syslog server becoz its not possible to install any package in my organization. only i can work on syslog server.


NOTE:I Want that each device log file should be on separate file on servers only throw syslog server.becoz i dont have rights to install any other package.

This facility is not available in syslog. so you have to install rsyslog or syslog-ng on syslog server (client can work with standard syslog ) to store logs in separate files.

nsb58 09-13-2010 02:25 AM

yes you can do it in REDHAT 5

on server side you should enables -r option in /etc/sysconfig/syslog under

SYSLOGD_OPTIONS="-r -m 0"

on client side you just have to redirect the logs to the log server

e.g
/etc/syslog.conf

*.* @Serverip

all the logs will go to /var/log/messages on the server

you can also create seperate file for specific log types

mail.info /var/log/email
cron.info /var/log/crontab


Hope this will help you


All times are GMT -5. The time now is 07:14 PM.