• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Syslog
 

Syslog

on

  • 612 views

 

Statistics

Views

Total Views
612
Views on SlideShare
609
Embed Views
3

Actions

Likes
1
Downloads
0
Comments
0

1 Embed 3

http://researchatkaist.wordpress.com 3

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Syslog Syslog Presentation Transcript

    • Syslogagain4you@gmail.com
    • Syslog
      Standardfor logging program messages
      Generating log from both kernel and app
      Storing log into files, named pipes, remote hosts and specific users
      Both of them
      printk/klog for kernel event
      syslogd for app event
    • Syslog usage
      Java App 1
      Java App 2
      Music
      Video Player
      Multimedia FW
      JVM
      Kernel
      - Critical Message
      - Warning
      - Information
      - *(Everything)
      - Critical Message
      - Warning
      - Information
    • Syslog configuration
      Syslogd default conf file
      /etc/syslog.conf
      Selector + Action
      Sector: Facility + Priority
      Action: Write destination
    • Syslog configuration – con’d
      Priority (/usr/include/sys/syslog.h)
      emerg
      alert
      crit
      err
      warning
      notice
      Info
      debug
    • Syslog configuration – con’d
      Predefined facility (/usr/include/sys/syslog.h)
      kern
      mail
      deamon
      auth
      news
      ftp
      user0~user7
    • Syslogd
      Restart syslog daemon
      sudo /etc/init.d/sysklogdrestart
      /etc/init.d/sysklogd status
    • Example
      Modify syslog.conf
      User level code
    • Example – con’d
      Log message
    • Extension
      Syslog configuration
      local3.err
      local3.*
      local3.3 (error)
      local3.err; local3.crit
      *.debug
    • printk
    • Tip
    • Utility
      logrotate
      Circular logging, compress and remove
      Send email using crontab
      logger
      Command line syslog tool
      logger -p local0.err 'this message is sent using command line'
    • Remote logging
      Modify syslogd script on receiver
      SYSLOGD="${SYSLOGD} -m 0 -r“
      Modify syslog.conf on sender
      local0.* @your.host.name