Linux logging

1,218 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,218
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • This slide show is about logging in linux It will survey and compare the various syslog implementations. It will survey and compare the various logging library APIs. It will show how to log to syslog from various languages (perl, python, C/C++, ruby, shell, and more)
  • Linux logging

    1. 1. Linux C/C++ logging A journey into speed... Mark Veltzer Mark.veltzer@gmail.com
    2. 2. Speeding up syslog ● Filter the messages at the source ● Letting syslog filter out your messages according to various parameters ● Have a separate hard drive just for logging (to avoid IO pressure on the main one) ● Telling syslog to put your log messages in RAM instead of permanent storage
    3. 3. Putting syslog output in RAM ● It usually OK for many many systems out there ● Does not add to the load on the IO system (you don't usually have a spare drive) ● Makes syslog perform much faster in a log of the synchronous implementations of syslog out there ● Should be rotated or removed from time to time, ofcourse
    4. 4. Various syslog implementations ● rsyslog ● syslog-ng ● klogd ● Busybox syslogd ● dsyslog ● inetutils-syslogd ● sysklogd
    5. 5. Logging libraries ● syslog native API ● evtlog ● ACE ● Boost ● Liblog4c ● Liblog4cpp ● socklog ● bobcat ● vanessa-logger
    6. 6. Logging from the command line ● Use the logger(1) utility ● Part of the bsdutils package ● Example: logger hello ● Many options to control priority, tag, socket, process id logging and more ● Good for scripts and languages that do not have a more integrated API to syslog
    7. 7. Logging from the command line ● Use the logger(1) utility ● Part of the bsdutils package ● Example: logger hello ● Many options to control priority, tag, socket, process id logging and more ● Good for scripts and languages that do not have a more integrated API to syslog

    ×