Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
filtering out keepalived messages in syslog-ng
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Errtu
Apprentice
Apprentice


Joined: 12 Nov 2002
Posts: 155
Location: Brazil

PostPosted: Tue Oct 10, 2006 10:07 am    Post subject: filtering out keepalived messages in syslog-ng Reply with quote

Hi,


I was wondering if it would be possible to filter out the numerous debug messages from /var/log/messages and place them in their own (for example: /var/log/keepalived.log) logfile.

I've tried to add some lines:

# keepalived
destination keepalived { file("/var/log/keepalived.log"); };
filter f_keepalived { facility(keepalived); };
log { source(src); filter(f_keepalived); destination(keepalived); };


But i get the error "Warning: unknown facility" upon boot.

Is it possible?


thanks,

Errtu
Back to top
View user's profile Send private message
Errtu
Apprentice
Apprentice


Joined: 12 Nov 2002
Posts: 155
Location: Brazil

PostPosted: Tue Oct 17, 2006 10:42 am    Post subject: Reply with quote

No longer necessary, as i've switched (back) from keepalived to heartbeat/ldirectord.


However, i am curious about the filtering capabilities of syslog-ng. In case somebody has a bight idea, please let me know either in this thread (which i'll probably stop watching after some time) or via pm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum