[syslog-ng] slngctl: syslog-ng debug, trace and statistics utility

Christophe Brocas christophe.brocas at cnamts.fr
Thu Jan 7 15:59:16 CET 2010


ILLES, Marton a écrit :
> Hi,
>
> PZolee wrote a quite lengthy blog post on troubleshooting and debuging
> syslog-ng [1] back in December 2009. It popped into my mind that running
> syslog-ng with debug/trace/verbose option enabled is very handy, but
> sometimes you do not want to stop syslog-ng just to restart it in a more
> verbose mode. My idea was to enable syslog-ng to real-time modify these
> verbosity settings through the control socket which is currently only
> used for exporting statistical information.
>
> I extended the control socket communication to have the ability of
> modify these logging settings. To make life easier I have created a
> small utility called slngctl which can be used to communicate with the
> running syslog-ng process. Using slngctl it also easy to query the
> statistics collected by syslog-ng. Also on longer term I think other
> useful small features could be added the slngctl.
>
> slngctl commands:
>
> marci at octane:$ slngctl
> Possible commands are:
>     stats        Dump syslog-ng statistics
>     verbose      Enable/query verbose messages
>     debug        Enable/query debug messages
>     trace        Enable/query trace messages
>
> [...]
>   
switch the verbose level without restarting server > very interesting
feature which I would have used yesterday (If i have this command !)
during a support session with a sysadmin of my company !

> As always you can find the source code in my 3.1 git repository and all
> feedbacks are very welcome.
>
> best,
>
> Marton
>
> PS: I know slngctl might not be the best name, so I offer a bier to
> anyone suggesting a better name when visiting us in Budapest,
> Hungary. :)
>   
May be as for named (named-checkzone, named-checkconf) or apache 2
(a2ensite, a2dissite, a2enmod, a2dismod), a command by functionnality
may be more readable : syslogng-trace / syslogng-stats etc.

> [1]
> http://pzolee.blogs.balabit.com/2009/12/troubleshooting-and-debugging-syslog-ng.html
>   

-- 
Christophe Brocas
CNAMTS/DDSI/DSEC
12, allées Haussmann 33300 Bordeaux
fixe   : +33 (0)5.57.85.53.55
mobile : +33 (0)6.77.05.19.01
fax    : +33 (0)5.56.39.84.48
keyid  : 0x237E9DB2




*****************************************************
"Le contenu de ce courriel et ses eventuelles pièces jointes sont confidentiels. Ils s'adressent exclusivement à la personne destinataire. Si cet envoi ne vous est pas destiné, ou si vous l'avez reçu par erreur, et afin de ne pas violer le secret des correspondances, vous ne devez pas le transmettre à d'autres personnes ni le reproduire. Merci de le renvoyer à l'émetteur et de le détruire.

Attention : L'Organisme de l'émetteur du message ne pourra être tenu responsable de l'altération du présent courriel. Il appartient au destinataire de vérifier que les messages et pièces jointes reçus ne contiennent pas de virus. Les opinions contenues dans ce courriel et ses éventuelles pièces jointes sont celles de l'émetteur. Elles ne reflètent pas la position de l'Organisme sauf s'il en est disposé autrement dans le présent courriel."
******************************************************


More information about the syslog-ng mailing list