Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 315
  • Last Modified:

Linux Log Server

I want to ser up a linux server ( RH 9 ) as one log server.  I have syslog
setup so it will take other servers logfiles...  All logfiels not on the log server ( other servers, printers firewall sending their log files )  dump their logs to /var/log/messages
file.

 I want to have a different  file for each server reporting to the one log server
I can't seem to fugure how this works and help ?

I don't want one big log file ( messages ) I would like each device to have it's own file

Thanks
0
clarksell
Asked:
clarksell
1 Solution
 
Karl Heinz KremerCommented:
Some BSD syslogd do support the grouping of rules by hostname, which allows to log all messages from one host to one file. Unfortunately the syslog daemons usually packaged with Linux systems do not support this.

You can run syslog-ng (http://www.balabit.com/products/syslog_ng/), which also supports this. The sample configuration file at http://www.campin.net/syslog-ng.conf shows (near the end of the file) under the heading "automatic host sorting (usually used on a loghost)" how this is done.

I've never used this myself (always wanted to try it, but never found the time), but if you find interesting problems with it, I may be willing to play with it :-)
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now