Salut
Enfaite tu as copié la ligne d'action de vim : "# vi: shiftwidth=3 tabstop=3" dans le fichier /usr/share/logwatch/default.conf/logfiles/nginx.conf
et la balise de fermeture "code" devrait etre avant le "et"
~~~
###
Configuration pour Nginx
On va créer un premier fichier :
nano /usr/share/logwatch/default.conf/logfiles/nginx.conf
Et copier coller :
########################################################
# Define log file group for nginx
########################################################
# What actual file? Defaults to LogPath if not absolute path….
LogFile = nginx/*access.log
LogFile = nginx/*access.log.1
LogFile = nginx/*error.log
LogFile = nginx/*error.log.1
# If the archives are searched, here is one or more line
# (optionally containing wildcards) that tell where they are…
#If you use a “-” in naming add that as well -mgt
Archive = nginx/*access.log*
Archive = nginx/*error.log*
# Expand the repeats (actually just removes them now)
*ExpandRepeats
# Keep only the lines in the proper date range…
*ApplyhttpDate
# vi: shiftwidth=3 tabstop=3 et
On passe au deuxième fichier :
cp /usr/share/logwatch/default.conf/services/http.conf /usr/share/logwatch/default.conf/services/nginx.conf
###
devrait etre :
###
Configuration pour Nginx
On va créer un premier fichier :
nano /usr/share/logwatch/default.conf/logfiles/nginx.conf
Et copier coller :
########################################################
# Define log file group for nginx
########################################################
# What actual file? Defaults to LogPath if not absolute path….
LogFile = nginx/*access.log
LogFile = nginx/*access.log.1
LogFile = nginx/*error.log
LogFile = nginx/*error.log.1
# If the archives are searched, here is one or more line
# (optionally containing wildcards) that tell where they are…
#If you use a “-” in naming add that as well -mgt
Archive = nginx/*access.log*
Archive = nginx/*error.log*
# Expand the repeats (actually just removes them now)
*ExpandRepeats
# Keep only the lines in the proper date range…
*ApplyhttpDate
Et on passe au deuxième fichier :
cp /usr/share/logwatch/default.conf/services/http.conf /usr/share/logwatch/default.conf/services/nginx.conf
###
C'est de l'ordre du details on est d'accord, vu que la ligne en question est commentée 🙂