Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| linux:pound [03-12-2012 09:00] – edmc73 | linux:pound [04-04-2013 20:06] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 59: | Ligne 59: | ||
| source : http:// | source : http:// | ||
| + | Normalement, | ||
| + | Comme il n'y a pas d' | ||
| - | Normally, sysklogd will overtake all messages from pound and will put them into syslog as anything with the facility ' | + | Modifiez la config de Pound /etc/pound.conf comme ceci: |
| - | Just edit your / | + | |
| - | + | ||
| - | | + | |
| - | # | + | |
| LogFacility local0 | LogFacility local0 | ||
| LogLevel 3 | LogLevel 3 | ||
| - | And the change your / | + | Modifiez ensuite la config de rsyslog |
| ############### | ############### | ||
| Ligne 78: | Ligne 77: | ||
| # First some standard log files. | # First some standard log files. | ||
| # | # | ||
| + | # On empêche le local0 d' | ||
| *.*; | *.*; | ||
| - | # get the messages | + | # Prend les messages |
| - | # log them into the pound logfile | + | # les inscrit dans un fichier |
| local0.* -/ | local0.* -/ | ||
| - | The next step is to make sure that there is always a pound.log present. Therefore you need to modify the start script by adding a short conditional block into the top section of / | + | Après avoir relancé rsyslog |
| - | + | ||
| - | # Check if the pound.log exists, if not create one | + | |
| - | if [ ! -e "/var/log/pound.log" ] | + | |
| - | then | + | |
| - | log_warning_msg "There is no pound.log, i'll create one" | + | |
| - | touch /var/log/pound.log | + | |
| - | chmod 0644 / | + | |
| - | chown syslog:adm / | + | |
| - | / | + | |
| - | else | + | |
| - | log_success_msg " | + | |
| - | / | + | |
| - | fi | + | |
| - | After you reloaded the sysklogd by / | + | Et comme tout fichier de log, vous devez l' |
| - | In my case the logfile increased to a size of more than 900 Mbyte after 24 hours, so don't forget to rotate the log. This could be done like this (/ | + | Nous allons donc créer le fichier |
| / | / | ||
| - | | + | |
| missingok | missingok | ||
| - | rotate | + | rotate |
| - | dateext | + | |
| compress | compress | ||
| notifempty | notifempty | ||
| create 0644 syslog adm | create 0644 syslog adm | ||
| postrotate | postrotate | ||
| - | /etc/init.d/ | + | invoke-rc.d rsyslog |
| endscript | endscript | ||
| - | } | + | |
| | | ||