On 5/18/07, djgoku <[EMAIL PROTECTED]> wrote:
I am trying to filter remote syslog information that is coming from
Motherboard Monitor on Windows. If all I do is change syslogd startup
options in /etc/rc.conf from syslogd="-u" all information is logged to
/var/log/daemon. But I would really like the information be routed to
something like /var/log/<hostname>.
Here is some sample data in /var/log/daemon:
May 18 12:06:24 hostname hostname MBM[Case]: C=95 LA=41 HA=158 L=95 H=95 A=95
May 18 12:06:24 hostname hostname MBM[CPU]: C=87 LA=41 HA=158 L=87 H=87 A=87
May 18 12:06:24 hostname hostname MBM[Core 0]: C=1.51 LA=1.90 HA=2.10
L=1.51 H=1.51 A=1.51
May 18 12:06:24 hostname hostname MBM[+3.3]: C=3.32 LA=3.13 HA=3.46
L=3.32 H=3.32 A=3.32
May 18 12:06:24 hostname hostname MBM[+5.00]: C=5.15 LA=4.75 HA=5.25
L=5.15 H=5.15 A=5.15
May 18 12:06:24 hostname hostname MBM[+12.00]: C=12.03 LA=11.40
HA=12.60 L=12.03 H=12.03 A=12.03
syslogd.conf (I added):
+hostname
*.* /var/log/hostname
syslog.conf(5) doesn't make any mention of "+" prepending that I can find.
Can you specify which syslog facility your app should log to? If so,
you could instruct it to log to one of the local* levels and direct
that to a seperate log file, e.g.
local1.* /var/log/hostname
DS