I have a 64bit centos 5.2 system. My router supports sending logs to a
syslog server, so I was hoping to send them to my centos box so they are
easier to keep an eye on.
I've been googling for howto's etc, but I didn't think syslog would be
that difficult. Do I need to use syslog-ng or can I use the syslog
that's installed with centos 5.2?
Any suggestions or guidance?
Thanks,
James
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
07-29-2008, 06:34 PM
Bart Baars
syslog question
Syslog (or rsyslog) will do..
Have a look at /etc/sysconfig/(r)syslog
Cheers,
Bart
----- Original Message -----
From: "James Pifer" <jep@obrien-pifer.com>
To: "CentOS" <centos@centos.org>
Sent: Tuesday, July 29, 2008 8:32:19 PM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
Subject: [CentOS] syslog question
I have a 64bit centos 5.2 system. My router supports sending logs to a
syslog server, so I was hoping to send them to my centos box so they are
easier to keep an eye on.
I've been googling for howto's etc, but I didn't think syslog would be
that difficult. Do I need to use syslog-ng or can I use the syslog
that's installed with centos 5.2?
Any suggestions or guidance?
Thanks,
James
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
07-29-2008, 06:36 PM
Milton Calnek
syslog question
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
James Pifer wrote:
| I have a 64bit centos 5.2 system. My router supports sending logs to a
| syslog server, so I was hoping to send them to my centos box so
they are
| easier to keep an eye on.
|
On your CentOS box, edit /etc/sysconfig/syslog. The comments in the
file should be sufficient.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
07-29-2008, 06:45 PM
David Mackintosh
syslog question
On Tue, Jul 29, 2008 at 02:32:19PM -0400, James Pifer wrote:
> Any suggestions or guidance?
By default, your syslog does not accept syslog entries from remote
systems.
Edit /etc/sysconfig/syslog, and add a '-r' parameter to the
SYSLOGD_OPTIONS option, and restart syslog.
--
/oo/
/ /() David Mackintosh |
dave@xdroop.com | http://www.xdroop.com
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
07-29-2008, 06:46 PM
James Pifer
syslog question
> James Pifer wrote:
> | I have a 64bit centos 5.2 system. My router supports sending logs to a
> | syslog server, so I was hoping to send them to my centos box so
> they are
> | easier to keep an eye on.
> |
>
> On your CentOS box, edit /etc/sysconfig/syslog. The comments in the
> file should be sufficient.
Yeah, that was pretty easy. Any way to get it to save logs from
different hosts to specific files?
Thanks,
James
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
07-29-2008, 06:52 PM
Milton Calnek
syslog question
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
James Pifer wrote:
| Yeah, that was pretty easy. Any way to get it to save logs from
| different hosts to specific files?
You need rsyslog for that.
I believe that FC9 has an rpm for it. There are other places to find
one as well. KB may have one in his repo.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
07-29-2008, 06:57 PM
David Mackintosh
syslog question
On Tue, Jul 29, 2008 at 02:46:39PM -0400, James Pifer wrote:
> Yeah, that was pretty easy. Any way to get it to save logs from
> different hosts to specific files?
I use syslog-ng for that, I think from rpmforge.
http://wiki.xdroop.com/space/Sun/Syslog-ng
--
/oo/
/ /() David Mackintosh |
dave@xdroop.com | http://www.xdroop.com
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
07-29-2008, 07:19 PM
Peter Kjellstrom
syslog question
On Tuesday 29 July 2008, David Mackintosh wrote:
> On Tue, Jul 29, 2008 at 02:46:39PM -0400, James Pifer wrote:
> > Yeah, that was pretty easy. Any way to get it to save logs from
> > different hosts to specific files?
>
> I use syslog-ng for that, I think from rpmforge.
>
> http://wiki.xdroop.com/space/Sun/Syslog-ng
Worth noting, rsyslog-2.0.0-11.el5 is in base since CentOS-5.2.
/Peter
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
07-29-2008, 07:25 PM
Milton Calnek
syslog question
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Peter Kjellstrom wrote:
|
| Worth noting, rsyslog-2.0.0-11.el5 is in base since CentOS-5.2.
|
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
07-29-2008, 08:31 PM
James Pifer
syslog question
On Tue, 2008-07-29 at 12:52 -0600, Milton Calnek wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> James Pifer wrote:
> | Yeah, that was pretty easy. Any way to get it to save logs from
> | different hosts to specific files?
>
> You need rsyslog for that.
> I believe that FC9 has an rpm for it. There are other places to find
> one as well. KB may have one in his repo.
>
Okay, I have rsyslog running and regular syslog stopped. Also
chkconfig'ed them.
I added this to /etc/rsyslog.conf:
$template DynaFile,"/var/log/system-%HOSTNAME%.log"
*.* -?DynaFile
The log that gets created for my router is called:
system-Tue,.log
So I've been trying to modify it using a different propnames instead of
%HOSTNAME%. So far all I get for a result is:
system-**INVALID PROPERTY NAME**.log
In upper and lower case I've tried:
source
fromhost
fromhost-ip
Any suggestions? It's so close now!
Thanks,
James
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos