Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

syslog priority

3 réponses
Avatar
zulian
--Boundary-01=_kN2ORJ0g16S+7zv
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: base64

CgpCb25qb3VyLAoKamUgbmUgcmFwcGVsbGUgcGx1cyBsYSBjb21tYW5kZSBwb2l1ciBkZWZpbmly
IGxhIHByaW9yaXTDqSBkZGVzIMOpdsOpbmVtZW50cyBwb3VyIApzeXNsb2cuCgoKVW5lIGlkw6ll
ID8KCgotLSAKRnLDqWTDqXJpYyBaVUxJQU4K

--Boundary-01=_kN2ORJ0g16S+7zv
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-=
html40/strict.dtd">
<html><head><meta name=3D"qrichtext" content=3D"1" /><style type=3D"text/cs=
s">
p, li { white-space: pre-wrap; }
</style></head><body style=3D" font-family:'DejaVu Sans'; font-size:9pt; fo=
nt-weight:400; font-style:normal;">
<p style=3D"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=3D"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Bonjour,</p>
<p style=3D"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">je ne rappe=
lle plus la commande poiur definir la priorit=C3=A9 ddes =C3=A9v=C3=A9nemen=
ts pour syslog.</p>
<p style=3D"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=3D"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Une id=C3=
=A9e ?</p>
<p style=3D"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=3D"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma=
rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb=
sp;</p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">-- </p>
<p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig=
ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Fr=C3=A9d=
=C3=A9ric ZULIAN</p></body></html>
--Boundary-01=_kN2ORJ0g16S+7zv--

--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists

Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers debian-user-french-REQUEST@lists.debian.org
En cas de soucis, contactez EN ANGLAIS listmaster@lists.debian.org
Archive: http://lists.debian.org/201303091729.24615.zulian@free.fr

3 réponses

Avatar
Basile Starynkevitch
On Sat, Mar 09, 2013 at 05:29:24PM +0100, wrote:


je ne rappelle plus la commande poiur definir la priorité ddes événements pour
syslog.



je ne comprends pas bien la question. S'il s'agit de configurer comment sont distribués
les messages de log dans les fichiers de logs, ça dépend du système de log. Si c'est
rsyslogd, voir les fichiers /etc/rsyslog.conf et autres.


S'il s'agit de mettre un message de log dans syslog, c'est la commande logger qui utilise
la fonction syslog(3) de la librarie C.

Cordialement

--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***

--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists

Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Archive: http://lists.debian.org/
Avatar
zulian
--Boundary-01=_r87ORIdOP7xbHkc
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Le samedi 9 mars 2013 18:16:14, Basile Starynkevitch a écrit :
On Sat, Mar 09, 2013 at 05:29:24PM +0100, wrote:

>
> je ne rappelle plus la commande poiur definir la priorité ddes év énements


pour
> syslog.

je ne comprends pas bien la question. S'il s'agit de configurer comment s ont


distribués
les messages de log dans les fichiers de logs, ça dépend du système de log.


Si c'est
rsyslogd, voir les fichiers /etc/rsyslog.conf et autres.


S'il s'agit de mettre un message de log dans syslog, c'est la commande


logger qui utilise
la fonction syslog(3) de la librarie C.

Cordialement



J'ai syslog qui me remplit trés rapidement /var/log/syslog.

Je voudrai qu'il ne me loggue que ce qui est important.

D'aprés Google, il faut modifier /etc/syslog.conf
Ben j'ai pas ce fichier .......

Et dans les fichiers de conf de rsyslog je ne vois pas ou determiner les
niveaux d'importance des logs (crtiques, importants, debugs ...).


---

Frédéric Zulian
F1sxo

--Boundary-01=_r87ORIdOP7xbHkc
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC- html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/cs s">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; fo nt-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Le samedi 9 mars 2013 18:16:14, Basile Starynkevitch a écrit :</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; On Sat , Mar 09, 2013 at 05:29:24PM +0100, wrote:</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; < /p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; j e ne rappelle plus la commande poiur definir la priorité ddes événeme nts pour </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; &gt; s yslog.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; je ne comprends pas bien la question. S'il s'agit de configurer comment sont dist ribués </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; les me ssages de log dans les fichiers de logs, ça dépend du système de log. Si c'est </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; rsyslo gd, voir les fichiers /etc/rsyslog.conf et autres.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; S'il s 'agit de mettre un message de log dans syslog, c'est la commande logger qui utilise </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; la fon ction syslog(3) de la librarie C.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">&gt; Cordia lement</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">J'ai syslog qui me remplit trés rapidement /var/log/syslog.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Je voudrai qu'il ne me loggue que ce qui est important.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">D'aprés G oogle, il faut modifier /etc/syslog.conf </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Ben j'ai pa s ce fichier .......</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Et dans les fichiers de conf de rsyslog je ne vois pas ou determiner les niveaux d'imp ortance des logs (crtiques, importants, debugs ...).</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb sp;</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">---</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; ma rgin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nb sp;</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Frédéri c Zulian</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-rig ht:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">F1sxo</p></ body></html>
--Boundary-01=_r87ORIdOP7xbHkc--

--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists

Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Archive: http://lists.debian.org/
Avatar
Jean-Michel OLTRA
Bonjour,


Le dimanche 10 mars 2013, a écrit...


J'ai syslog qui me remplit trés rapidement /var/log/syslog.

Je voudrai qu'il ne me loggue que ce qui est important.

D'aprés Google, il faut modifier /etc/syslog.conf
Ben j'ai pas ce fichier .......

Et dans les fichiers de conf de rsyslog je ne vois pas ou determiner les
niveaux d'importance des logs (crtiques, importants, debugs ...).



Dans /etc/rsyslog.conf, tu as un ligne avec un *.* qui logue dans
/var/log/syslog. Ça met tout dedans !

Il te faudrait modifier ça (utilisation de la priorité nommée, ou en
utilisant son contraire avec !).

Tu peux également mettre ce tes paramétrages perso dans le dossier
inclus par rsyslog.conf (ils sont inclus avant lecture du reste du
fichier, comme tu peux le voir dans /etc/rsyslog.conf).

Tu peux également utiliser les filtres de rsyslog pour mettre tout ou
partie de ce qui est logé à la poubelle (avec le ~), si tu es capable de
déterminer avec précision les logs inutiles sur une certaine
application.

La page de man de rsyslog.conf en dit pas mal, et, de mémoire, le manuel
en ligne de rsyslog n'est pas mal non plus, avec un certain nombre
d'exemples.

--
jm

--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists

Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers
En cas de soucis, contactez EN ANGLAIS
Archive: http://lists.debian.org/