Re: filtering hostnames on syslog

2012-05-15 Thread Andy Bradford
Thus said Friedrich Locke on Mon, 14 May 2012 21:06:57 -0300: > Every log from ip address a.b.c.d will be written to /var/log/host-x > Every log from ip address x.y.z.k will be written to /var/log/host-y http://smarden.org/socklog/ This will allow you to do what you ask. Andy

Re: filtering hostnames on syslog

2012-05-15 Thread Jiri B
On Mon, May 14, 2012 at 09:06:57PM -0300, Friedrich Locke wrote: > I am seeking for a solution that allows something like: > > Every log from ip address a.b.c.d will be written to /var/log/host-x > Every log from ip address x.y.z.k will be written to /var/log/host-y > > Got the ideia ? > > Is th

Re: filtering hostnames on syslog

2012-05-14 Thread Friedrich Locke
I am seeking for a solution that allows something like: Every log from ip address a.b.c.d will be written to /var/log/host-x Every log from ip address x.y.z.k will be written to /var/log/host-y Got the ideia ? Is there any solution that allows me to do that ? Thanks in advance. On Mon, May 14,

Re: filtering hostnames on syslog

2012-05-14 Thread Jiri B
On Mon, May 14, 2012 at 04:01:33PM -0300, Friedrich Locke wrote: > Dear members list, > > i have setted up a syslog server in order to receive messages from a > set of servers. It is working ok, but i would like to write messages > based on hostname filter. Is it possible? > Do you have any experi

Re: filtering hostnames on syslog

2012-05-14 Thread Tomasz Dereszynski
I believe there are (or were) some limitations syslog related (forgot long time ago what they were ;-)) and for that reason peeps would use newsyslog which allows you to write the logs to the separate files and folders and rotate them. Sent from my iPod On 14 May 2012, at 08:01 PM, Friedrich Loc

filtering hostnames on syslog

2012-05-14 Thread Friedrich Locke
Dear members list, i have setted up a syslog server in order to receive messages from a set of servers. It is working ok, but i would like to write messages based on hostname filter. Is it possible? Do you have any experience on this? Thanks for your time and cooperation. Best regards, Fried