You'll not get too far with syslog.conf, methinks, as it doesnt selectQuote:> Hello, I need to setup a log server. This in itself is no problem,
but if I
> have several different systems
> logging to one system and one logfile it makes it kind of hard to scan
> through.
> On the log server, there is the syslog file which contains several
different
> systems logs.
> I'm trying to get something like:
> syslog_system1
> syslog_system2
> syslog_system3
> etc...
> Does anyone know of a utility or script that could perform this for
me?
> Or is there something in syslog.conf I can do?
something like
for i in list-of-hostnames ; do
grep $i syslog > syslog_$i
done
Although you might want to be a little more creative to avoid
references to a hostname within a log message (as opposed to at its
start immediately after the timestamp) triggering it too.
Of course if you wanted to be more elegant you could use perl, hash up
references to filehandles based on hostnames and open them for
appending on the first log entry from that host, doing all of your
separate logfiles in a single pass, you could make it do sensible
things with command-line params to let you be even more selective etc
etc etc...
Dave.
--
Sticking your head in the sand gains you nothing...
Apart from grit up your nose.
Sent via Deja.com http://www.deja.com/
Before you buy.
The usual way of configuring a log server is to having everything logging toQuote:> Hello, I need to setup a log server. This in itself is no problem, but if
I
> have several different systems
> logging to one system and one logfile it makes it kind of hard to scan
> through.
> On the log server, there is the syslog file which contains several
different
> systems logs.
> I'm trying to get something like:
> syslog_system1
> syslog_system2
> syslog_system3
> etc...
> Does anyone know of a utility or script that could perform this for me?
> Or is there something in syslog.conf I can do?
> Thanks very much!
> Don
1. Ho to log access_log to split file and based on split per-virtual-host !
Hello all:
I has setup mass virtual hosting use mod_vhost_alias in single server.and
I want to log access_log to split file and based on split per-virtual-host .
How to do ?
Thank you!
2. how to tell if a mac is "new world " or "old world"
3. wierd stuffs in proxy log file and back end server log file
4. Mounting Removable FileSystems
5. Help:how do you split a large file into several small files and
6. Update : Netscape installation problem
7. apache-splitting log file to ~user dir
8. Help
9. Split Log Files with Apache.
10. Help with log files on /var/log/*
11. nulling a log process log file
12. how do you log all that is displayed on the terminal to a log file ?
13. How to log all that is displayed on the screen to a log file.