Logging, Syslog and Log Anaylsys Forums
March 11, 2010, 06:53:26 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
   Home   WIKI BLOG Help Search Recent Topics GoogleTagged Login Register  
Pages: [1]
  Print  
Author Topic: syslog-ng configuration to collect vsyslog() events  (Read 977 times)
kalkotivinay
Newbie
*
Offline Offline

Posts: 32


View Profile Email
« on: May 15, 2009, 10:44:47 pm »

Hi,

I am trying to figure if syslog-ng can capture events logged by vsyslog() system call and redirect them to specified destinations.

Can anyone give me pointers to this.

Thanks,
Vinay
Logged
mutex
Administrator
Newbie
*****
Offline Offline

Posts: 895


View Profile
« Reply #1 on: May 16, 2009, 08:06:29 am »

Yes.  You need to configure syslog-ng to read from the standard unix stream file that glib is configured to write to
Logged
kalkotivinay
Newbie
*
Offline Offline

Posts: 32


View Profile Email
« Reply #2 on: May 22, 2009, 12:15:51 am »

Thanks Mutex. I am able to read from unix-stream.

I have a scenario where 3 processes are logging events using the vsyslog() call. In syslog-ng, I should redirect  events from different processes to different destinations. How should I filter the events that I get from /dev/log ?.

Is the following configuration a good configuration or are there any better ways of doing this ?

filter program_myprog { program(myprog); };
log { source(src); filter(program_myprog); destination(dest); };

Thanks,
Vinay

Logged
mutex
Administrator
Newbie
*****
Offline Offline

Posts: 895


View Profile
« Reply #3 on: June 10, 2009, 12:15:38 pm »

I am sorry for the delay in getting back.  Busy times.  I think you have the best way to separate the logs with your idea above.
Logged
Pages: [1]
  Print  
 
Jump to:  

Information Security News | Jerry Bell's blog | Enterprise IT | Tropical Fish Information | Tropical Fish Forums
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!