View previous topic :: View next topic |
Author |
Message |
ercete Guru
Joined: 11 Dec 2003 Posts: 426 Location: France, Avignon
|
Posted: Sun Nov 14, 2004 1:46 pm Post subject: [LOG] Passage de metalog à syslog-ng |
|
|
Voilà lors de ma dernière installation de gentoo je suis passé à métalog,
et bien metalog il me plait pas, mon choix est fait... !
Je préfères revenir à syslog-ng que je trouvais plus clair.
Mais c'est quand même les logs,
pensez vous qu'un Code: | emerge -C metalog && emerge syslog-ng | soit sans conséquences ?
Plus fondamentalement : le logiciel de log doit-il être unique (je peux peut-être installer les deux) et mérite il un traitement spécial ? |
|
Back to top |
|
|
sireyessire Advocate
Joined: 20 Mar 2003 Posts: 2991 Location: back in Paris, France
|
Posted: Sun Nov 14, 2004 1:49 pm Post subject: Re: [LOG] Passage de metalog à syslog-ng |
|
|
raoulchatigre wrote: | Voilà lors de ma dernière installation de gentoo je suis passé à métalog,
et bien metalog il me plait pas, mon choix est fait... !
Je préfères revenir à syslog-ng que je trouvais plus clair.
Mais c'est quand même les logs,
pensez vous qu'un Code: | emerge -C metalog && emerge syslog-ng | soit sans conséquences ?
Plus fondamentalement : le logiciel de log doit-il être unique (je peux peut-être installer les deux) et mérite il un traitement spécial ? |
ça va marcher mais il va se plaindre car il aura 2 scripts dans init.d qui fournissent le service logger, alors tu arrêtes metalog,
tu unmerges, tu Code: | rc-update del metalog default |
tu supprimes le /etc/init.d/metalog
et tu emerges syslog-ng
puis tu le mets dans le runlevel default et tu le démarres _________________ I never think of the future. It comes soon enough.
Albert Einstein
Try simpler first
Shockley |
|
Back to top |
|
|
ercete Guru
Joined: 11 Dec 2003 Posts: 426 Location: France, Avignon
|
Posted: Sun Nov 14, 2004 2:54 pm Post subject: |
|
|
bon le passage s'est bien effectué !
maintenant j'aimerai bien faire le vide dans mon /var/log
si je vide ce répertoire en le sauvant autre part, tout sera recréé comme il faut ?
je doute que ce soit une brillante idée perso :s
Code: | -=[root@courgette]=(/var/log)# ll <(15:54:19)>
total 4,2M
drwxr-xr-x 16 root root 712 nov 14 15:10 .
drwxr-xr-x 14 root root 360 sep 14 01:23 ..
drwxr-xr-x 2 root root 112 sep 16 23:05 apache2
drwx------ 2 root root 184 nov 9 19:14 critical
drwx------ 2 root root 304 nov 14 15:00 crond
drwxr-xr-x 2 root root 48 aoû 25 02:03 cups
-rw-rw---- 1 portage portage 810K nov 14 15:42 emerge.log
drwx------ 2 root root 304 nov 14 15:00 everything
drwx------ 2 root root 104 nov 14 12:49 ftpd
drwx------ 2 root root 304 nov 13 14:47 kernel
-rw-r--r-- 1 root root 287K nov 14 13:13 lastlog
drwx------ 2 root root 304 nov 13 14:48 mail
-rw------- 1 root root 421 nov 14 15:54 messages
drwxr-xr-x 2 root root 72 aoû 23 03:29 news
drwxrws--- 2 root portage 24K nov 14 15:06 portage
drwx------ 2 root root 304 nov 13 18:10 pwdfail
-rw-r--r-- 1 root root 389 oct 30 13:48 python-updater.log
drwxr-xr-x 2 root root 440 nov 3 14:41 samba
-rw-r--r-- 1 root root 984K nov 4 22:18 scrollkeeper.log
drwx------ 2 root root 304 nov 13 14:47 sshd
drwx------ 2 root root 304 nov 9 19:14 telnet
-rw-rw-r-- 1 root utmp 2,3M nov 14 13:23 wtmp
-rw-r--r-- 1 root root 2,2K aoû 27 23:26 xdm.log
-rw-r--r-- 1 root root 108 nov 14 13:18 xferlog
-rw-r--r-- 1 root root 31K nov 13 23:02 Xorg.0.log
-rw-r--r-- 1 root root 31K nov 11 10:21 Xorg.0.log.old
-rw-r--r-- 1 root root 31K sep 17 23:43 Xorg.1.log
-=[root@courgette]=(/var/log)# |
|
|
Back to top |
|
|
sireyessire Advocate
Joined: 20 Mar 2003 Posts: 2991 Location: back in Paris, France
|
Posted: Sun Nov 14, 2004 2:59 pm Post subject: |
|
|
raoulchatigre wrote: | bon le passage s'est bien effectué !
maintenant j'aimerai bien faire le vide dans mon /var/log
si je vide ce répertoire en le sauvant autre part, tout sera recréé comme il faut ?
je doute que ce soit une brillante idée perso :s
Code: | -=[root@courgette]=(/var/log)# ll <(15:54:19)>
total 4,2M
drwxr-xr-x 16 root root 712 nov 14 15:10 .
drwxr-xr-x 14 root root 360 sep 14 01:23 ..
drwxr-xr-x 2 root root 112 sep 16 23:05 apache2
drwx------ 2 root root 184 nov 9 19:14 critical
drwx------ 2 root root 304 nov 14 15:00 crond
drwxr-xr-x 2 root root 48 aoû 25 02:03 cups
-rw-rw---- 1 portage portage 810K nov 14 15:42 emerge.log
drwx------ 2 root root 304 nov 14 15:00 everything
drwx------ 2 root root 104 nov 14 12:49 ftpd
drwx------ 2 root root 304 nov 13 14:47 kernel
-rw-r--r-- 1 root root 287K nov 14 13:13 lastlog
drwx------ 2 root root 304 nov 13 14:48 mail
-rw------- 1 root root 421 nov 14 15:54 messages
drwxr-xr-x 2 root root 72 aoû 23 03:29 news
drwxrws--- 2 root portage 24K nov 14 15:06 portage
drwx------ 2 root root 304 nov 13 18:10 pwdfail
-rw-r--r-- 1 root root 389 oct 30 13:48 python-updater.log
drwxr-xr-x 2 root root 440 nov 3 14:41 samba
-rw-r--r-- 1 root root 984K nov 4 22:18 scrollkeeper.log
drwx------ 2 root root 304 nov 13 14:47 sshd
drwx------ 2 root root 304 nov 9 19:14 telnet
-rw-rw-r-- 1 root utmp 2,3M nov 14 13:23 wtmp
-rw-r--r-- 1 root root 2,2K aoû 27 23:26 xdm.log
-rw-r--r-- 1 root root 108 nov 14 13:18 xferlog
-rw-r--r-- 1 root root 31K nov 13 23:02 Xorg.0.log
-rw-r--r-- 1 root root 31K nov 11 10:21 Xorg.0.log.old
-rw-r--r-- 1 root root 31K sep 17 23:43 Xorg.1.log
-=[root@courgette]=(/var/log)# |
|
tu peux virer le rep everything c'est metalog qui fout des trucs dedans, les autres je sais pas. _________________ I never think of the future. It comes soon enough.
Albert Einstein
Try simpler first
Shockley |
|
Back to top |
|
|
|
|
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
|
|