Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Syslog-ng Umstieg von V.2 auf 3
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3118
Location: Berlin

PostPosted: Sun Nov 08, 2009 8:52 am    Post subject: Syslog-ng Umstieg von V.2 auf 3 Reply with quote

Code:
WARNING: the match() filter without the use of the value() option is
deprecated and hinders performance, please update your configuration;
Code:
olaf@flammenflitzer ~ $ cat /etc/syslog-ng/syslog-ng.conf
@version: 3.0                                           
# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.3.0,v 1.1 2009/05/25 20:07:21 mr_bones_ Exp $                                 
#                                                                               
# Syslog-ng default configuration file for Gentoo Linux                         

#http://forums.gentoo.org/viewtopic.php?p=5724983#5724983
##neu shorewal ####                                     
#                                                       
# Log Shorewall messages into seperate file             
#                                                       
destination d_shorewall_warn                             
{                                                       
  file ("/var/log/shorewall/warn.log"                   
        owner(olaf)                                     
        group(root)                                     
  );                                                     
};                                                       
destination d_shorewall_info                             
{                                                       
  file ("/var/log/shorewall/info.log"                   
        owner(olaf)                                     
        group(root)                                     
  );                                                     
};                                                       

filter f_shorewall_warn
{                     
  level (warn) and match ("Shorewall");
};                                     
filter f_shorewall_info               
{                                     
  level (info) and match ("Shorewall");
};                                     

log

  source (src);
  filter (f_shorewall_warn);
  destination (d_shorewall_warn);
  flags(final);                 
};                               
log                             
{                               
  source (src);                 
  filter (f_shorewall_info);     
  destination (d_shorewall_info);
  flags(final);                 
};                               

#####original###

options {
        chain_hostnames(no);

        # The default action of syslog-ng is to log a STATS line
        # to the file every 10 minutes.  That's pretty ugly after a while.
        # Change it to every 12 hours so you get a nice daily update of   
        # how many messages syslog-ng missed (0).                         
        stats_freq(43200);                                               
};                                                                       

source src {
    unix-stream("/dev/log" max-connections(256));
    internal();
    file("/proc/kmsg");
};

destination messages { file("/var/log/messages"); };

# By default messages are logged to tty12...
destination console_all { file("/dev/tty12"); };
# ...if you intend to use /dev/console for programs like xconsole
# you can comment out the destination line above that references /dev/tty12
# and uncomment the line below.
#destination console_all { file("/dev/console"); };

log { source(src); destination(messages); };
log { source(src); destination(console_all); };

Was muss ich da ändern?
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4408

PostPosted: Sun Nov 08, 2009 9:14 am    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=291259
match() -> message() um es ganz kurz zu machen.
Schau dir aber den Bug trotzdem an.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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