Difference between revisions of "Logging"

From Hackepedia
Jump to navigationJump to search
m (New page: Logging is meant that some data is passed to the syslog daemon for writing down data for later inspection.)
 
m (create a big all file)
 
Line 1: Line 1:
 
Logging is meant that some data is passed to the [[syslog]] daemon for writing down data for later inspection.
 
Logging is meant that some data is passed to the [[syslog]] daemon for writing down data for later inspection.
 +
 +
It may be helpful to create a logfile that collects all information for all facilities and levels. On an [[opensuse]] system this looks like so:
 +
 +
#
 +
# enable this, if you want to keep all messages
 +
# in one file
 +
*.*                            -/var/log/all 
 +
 +
When viewing this file then one can use tools like [[grep]] to filter a keyword.

Latest revision as of 01:09, 30 August 2009

Logging is meant that some data is passed to the syslog daemon for writing down data for later inspection.

It may be helpful to create a logfile that collects all information for all facilities and levels. On an opensuse system this looks like so:

#
# enable this, if you want to keep all messages
# in one file
*.*                             -/var/log/all  

When viewing this file then one can use tools like grep to filter a keyword.