linux:syslog-ng
no way to compare when less than two revisions
Différences
Ci-dessous, les différences entre deux révisions de la page.
— | linux:syslog-ng [25/11/2008 18:41] (Version actuelle) – créée daniel | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ====== syslog-ng ====== | ||
+ | J' | ||
+ | < | ||
+ | # Ajouts | ||
+ | destination df_kern-info { file("/ | ||
+ | destination df_pureftp { file("/ | ||
+ | # modifs | ||
+ | filter f_syslog { not facility(auth, | ||
+ | and not ( | ||
+ | level(info) | ||
+ | and facility(kern) | ||
+ | ) | ||
+ | and not ( # seuls les transferts ont la facility ftp... | ||
+ | program(" | ||
+ | or program(" | ||
+ | ) | ||
+ | ; }; | ||
+ | filter f_messages { | ||
+ | level(info, | ||
+ | and not facility(auth, | ||
+ | and not (level(info) and facility(kern)); | ||
+ | }; | ||
+ | filter f_pureftp { facility(ftp) | ||
+ | or program(" | ||
+ | or program(" | ||
+ | ; }; | ||
+ | filter f_kern { facility(kern) and not level(info); | ||
+ | # Pour les infos du fw | ||
+ | filter f_kern-info { | ||
+ | facility(kern) | ||
+ | and level(info); | ||
+ | }; | ||
+ | |||
+ | log { | ||
+ | source(s_all); | ||
+ | filter(f_kern-info); | ||
+ | destination(df_kern-info); | ||
+ | }; | ||
+ | # decommenté | ||
+ | log { | ||
+ | source(s_all); | ||
+ | filter(f_cron); | ||
+ | destination(df_cron); | ||
+ | }; | ||
+ | log { | ||
+ | source(s_all); | ||
+ | filter(f_pureftp); | ||
+ | destination(df_pureftp); | ||
+ | }; | ||
+ | </ | ||
+ | Et si vous envoyez les logs drupal dans syslog (ici avec la facility " | ||
+ | < | ||
+ | destination df_local3_drupal { file("/ | ||
+ | filter f_local3_drupal {facility(local3); | ||
+ | log { | ||
+ | source(s_all); | ||
+ | filter(f_local3_drupal); | ||
+ | destination(df_local3_drupal); | ||
+ | }; | ||
+ | </ |
linux/syslog-ng.txt · Dernière modification : 25/11/2008 18:41 de daniel