SlideShare a Scribd company logo
Introduction to Syslog


      Octavio Alvarez
 alvarezp@alvarezp.ods.org

San Diego Cisco User Group
      July 19th, 2012
Overview
●   Problems to solve
●   The Syslog protocol
●   Technicalities
        –   Protocol content, RFCs, etc.
●   Example of topologies
        –   A simple one and one a bit more complex.
●   Simple demonstration

        Feel free to interrupt me at any time!
Problems to solve
●   Having to look in each device separately for
     information collection.
●   Having the clocks not exactly synchronized.
●   Hard to search in devices without search support
     (like "include" or "grep").
●   Having to look for past events (more than N-bytes
     ago).
Introducing Syslog
●   A protocol.
●   A de-facto standard...
●   ... a documented de-facto standard (RFC 3164)
●   ... and is being standardized (RFC 5424, obsoletes
    RFC 3164).
The simplest possible logging
 implementation with Syslog
Content (obsolete, RFC 3164)
●   Priority = 8 * Facility + Severity
        –   Severity (0-7)
        –   Facility (0-23)
●   Header
        –   Timestamp (RFC3339 with restrictions)
        –   Hostname (a.k.a. Cisco's "origin") (FQDN, IP,
             hostname)
●   Message
Content (new, RFC 5424)
●   Version
●   Application
●   Process ID
●   Message ID
●   Structured data (Element, ID, Param)
        –   Elements: timeQuality, origin, meta
Severities
●   0: Emergency: system is unusable
●   1: Alert: action must be taken immediately
●   2: Critical: critical conditions
●   3: Error: error conditions
●   4: Warning: warning conditions
●   5: Notice: normal but significant condition
●   6: Informational: informational messages
●   7: Debug: debug-level messages
Facilities (part 1)
●   0: kernel messages
●   1: user-level messages
●   2: mail system
●   3: system daemons
●   4: security/authorization messages
●   5: messages generated internally by syslogd
●   6: line printer subsystem
●   7: network news subsystem (maybe: RSS, Google
    group...)
Facilities (part 2)
●   8: UUCP subsystem (maybe: backup, rsync...)
●   9: clock daemon
●   10: security/authorization messages
●   11: FTP daemon
●   12: NTP subsystem
●   13: log audit
●   14: log alert
●   15: clock daemon
●   16-23: local use 0-7 (local0-7)
A slightly more complex Syslog usage
Syslog application-layer "components"
          (as per the RFC)
●   Originator (application-layer)
        –   Cisco router, Apache Server
●   Collector (application-layer)
        –   rsyslog, dsyslog, syslog-ng
        –   Solarwinds Kiwi Syslog Server
●   Relay (application-layer)
Syslog application-layer "components"
          (as per the RFC)
An extra component: the front-end
●   Depends on the storage method.
●   Text processors: grep, gawk
●   FOSS: php-syslog-ng, Adiscon's Log Analyzer
    (PhpLogCon), Logzilla, logtool, petit...
●   Gratis: Kiwi (basic), WhatsUp Gold's Syslog Server
●   Commercial: Splunk, LogRhythm, LogClarity,
    Logalot, Kiwi (full), XLog-Server,
    SyslogAppliance, WinSyslog
Simple demo: configuring a Cisco
          router as an originator
●   Some IOS versions:
        –   logging host A.B.C.D <level>
        –   logging origin <origin-type>
        –   logging on
●   Some other IOS versions:
        –   logging host A.B.C.D
        –   logging on
        –   logging trap <level>
Simple demo: configuring an Ubuntu
           box as a text collector
●   rsyslog already installed
●   Edition of /etc/rsyslog.conf
Thanks! Any questions?

          a              blog.alvarezp.org
                         /categorias/por-idioma/english

                         @alvarezp2000

                         alvarezp@alvarezp.com




   The only legal way
to burn a Windows disc     superkb.sf.net

More Related Content

PDF
Centralized Logging with syslog
amiable_indian
 
PDF
Syslog Protocols
Martin Schütte
 
PDF
Small, Simple, and Secure: Alpine Linux under the Microscope
Docker, Inc.
 
PDF
Can We Prevent Use-after-free Attacks?
inaz2
 
PDF
Hackersuli - Linux game hacking with LD_PRELOAD
hackersuli
 
ZIP
Workshop@naha_val3
Shusaku Fukumine
 
PDF
Sistemas operacionais 8
Nauber Gois
 
PPTX
Designing Tracing Tools
Sysdig
 
Centralized Logging with syslog
amiable_indian
 
Syslog Protocols
Martin Schütte
 
Small, Simple, and Secure: Alpine Linux under the Microscope
Docker, Inc.
 
Can We Prevent Use-after-free Attacks?
inaz2
 
Hackersuli - Linux game hacking with LD_PRELOAD
hackersuli
 
Workshop@naha_val3
Shusaku Fukumine
 
Sistemas operacionais 8
Nauber Gois
 
Designing Tracing Tools
Sysdig
 

What's hot (20)

PDF
OpenZFS send and receive
Matthew Ahrens
 
PDF
Introduction to eBPF and XDP
lcplcp1
 
PDF
Fun with Network Interfaces
Kernel TLV
 
PDF
Fun with FUSE
Kernel TLV
 
PPTX
The Basic Introduction of Open vSwitch
Te-Yen Liu
 
PPTX
OpenvSwitch Deep Dive
rajdeep
 
PPTX
OVN 設定サンプル | OVN config example 2015/12/27
Kentaro Ebisawa
 
PDF
CoreOS intro
Timo Derstappen
 
PPTX
Practical Glusto Example
Gluster.org
 
PDF
Run Run Trema Test
Hiroshi Ota
 
PDF
Kqueue : Generic Event notification
Mahendra M
 
PDF
Virtualization which isn't: LXC (Linux Containers)
Dobrica Pavlinušić
 
PDF
Building a network emulator with Docker and Open vSwitch
Goran Cetusic
 
PDF
Abusing Interrupts for Reliable Windows Kernel Exploitation (en)
inaz2
 
PDF
SaltStack – (Not) just another Automation & Remote Execution Tool
inovex GmbH
 
PDF
Semtex.c [CVE-2013-2094] - A Linux Privelege Escalation
Kernel TLV
 
PDF
How choosing the Raft consensus algorithm saved us 3 months of development time
Robert Wojciechowski
 
PDF
Talk 160920 @ Cat System Workshop
Quey-Liang Kao
 
PDF
HTTPプロクシライブラリproxy2の設計と実装
inaz2
 
OpenZFS send and receive
Matthew Ahrens
 
Introduction to eBPF and XDP
lcplcp1
 
Fun with Network Interfaces
Kernel TLV
 
Fun with FUSE
Kernel TLV
 
The Basic Introduction of Open vSwitch
Te-Yen Liu
 
OpenvSwitch Deep Dive
rajdeep
 
OVN 設定サンプル | OVN config example 2015/12/27
Kentaro Ebisawa
 
CoreOS intro
Timo Derstappen
 
Practical Glusto Example
Gluster.org
 
Run Run Trema Test
Hiroshi Ota
 
Kqueue : Generic Event notification
Mahendra M
 
Virtualization which isn't: LXC (Linux Containers)
Dobrica Pavlinušić
 
Building a network emulator with Docker and Open vSwitch
Goran Cetusic
 
Abusing Interrupts for Reliable Windows Kernel Exploitation (en)
inaz2
 
SaltStack – (Not) just another Automation & Remote Execution Tool
inovex GmbH
 
Semtex.c [CVE-2013-2094] - A Linux Privelege Escalation
Kernel TLV
 
How choosing the Raft consensus algorithm saved us 3 months of development time
Robert Wojciechowski
 
Talk 160920 @ Cat System Workshop
Quey-Liang Kao
 
HTTPプロクシライブラリproxy2の設計と実装
inaz2
 
Ad

Viewers also liked (7)

PDF
NetBSD syslogd with IETF Syslog Protocols
Martin Schütte
 
PPT
intro syslog syslogng
juruntang
 
PDF
Implementing ossec
Jeronimo Zucco
 
PDF
Monitoring with Syslog and EventMachine
Wooga
 
PPT
Slide livro Sociologia ensino médio capitulo 07 do Tomazi
pascoalnaib
 
PPT
CCNA Security - Chapter 2
Irsandi Hasan
 
PPTX
Slides Geografia do Brasil
Laisa Cabral Caetano
 
NetBSD syslogd with IETF Syslog Protocols
Martin Schütte
 
intro syslog syslogng
juruntang
 
Implementing ossec
Jeronimo Zucco
 
Monitoring with Syslog and EventMachine
Wooga
 
Slide livro Sociologia ensino médio capitulo 07 do Tomazi
pascoalnaib
 
CCNA Security - Chapter 2
Irsandi Hasan
 
Slides Geografia do Brasil
Laisa Cabral Caetano
 
Ad

Similar to Configuring Syslog by Octavio (20)

ODP
Turbo charge your logs
Jeremy Cook
 
PPTX
You Can't Correlate what you don't have - ArcSight Protect 2011
Scott Carlson
 
PDF
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
OpenStack Korea Community
 
ODP
Fedora Developer's Conference 2014 Talk
Rainer Gerhards
 
PDF
LCU14 310- Cisco ODP v2
Linaro
 
PDF
Android Internals
Opersys inc.
 
PDF
Experiences building a distributed shared log on RADOS - Noah Watkins
Ceph Community
 
PDF
Linux Kernel Platform Development: Challenges and Insights
GlobalLogic Ukraine
 
ODP
Linux logging
Mark Veltzer
 
PDF
Porting Android
Opersys inc.
 
PDF
"Lightweight Virtualization with Linux Containers and Docker". Jerome Petazzo...
Yandex
 
PDF
[KubeCon EU 2020] containerd Deep Dive
Akihiro Suda
 
PDF
High performance json- postgre sql vs. mongodb
Wei Shan Ang
 
PDF
One Year of Porting - Post-mortem of two Linux/SteamOS launches
Leszek Godlewski
 
PDF
Let's Containerize New York with Docker!
Jérôme Petazzoni
 
PDF
Run Your Own 6LoWPAN Based IoT Network
Samsung Open Source Group
 
PDF
Android Internals
Opersys inc.
 
PDF
2013.02.02 지앤선 테크니컬 세미나 - Xcode를 활용한 디버깅 팁(OSXDEV)
JiandSon
 
PDF
Lightweight Virtualization with Linux Containers and Docker I YaC 2013
Docker, Inc.
 
PDF
Lightweight Virtualization with Linux Containers and Docker | YaC 2013
dotCloud
 
Turbo charge your logs
Jeremy Cook
 
You Can't Correlate what you don't have - ArcSight Protect 2011
Scott Carlson
 
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
OpenStack Korea Community
 
Fedora Developer's Conference 2014 Talk
Rainer Gerhards
 
LCU14 310- Cisco ODP v2
Linaro
 
Android Internals
Opersys inc.
 
Experiences building a distributed shared log on RADOS - Noah Watkins
Ceph Community
 
Linux Kernel Platform Development: Challenges and Insights
GlobalLogic Ukraine
 
Linux logging
Mark Veltzer
 
Porting Android
Opersys inc.
 
"Lightweight Virtualization with Linux Containers and Docker". Jerome Petazzo...
Yandex
 
[KubeCon EU 2020] containerd Deep Dive
Akihiro Suda
 
High performance json- postgre sql vs. mongodb
Wei Shan Ang
 
One Year of Porting - Post-mortem of two Linux/SteamOS launches
Leszek Godlewski
 
Let's Containerize New York with Docker!
Jérôme Petazzoni
 
Run Your Own 6LoWPAN Based IoT Network
Samsung Open Source Group
 
Android Internals
Opersys inc.
 
2013.02.02 지앤선 테크니컬 세미나 - Xcode를 활용한 디버깅 팁(OSXDEV)
JiandSon
 
Lightweight Virtualization with Linux Containers and Docker I YaC 2013
Docker, Inc.
 
Lightweight Virtualization with Linux Containers and Docker | YaC 2013
dotCloud
 

Recently uploaded (20)

PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
The Future of Artificial Intelligence (AI)
Mukul
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 

Configuring Syslog by Octavio

  • 1. Introduction to Syslog Octavio Alvarez [email protected] San Diego Cisco User Group July 19th, 2012
  • 2. Overview ● Problems to solve ● The Syslog protocol ● Technicalities – Protocol content, RFCs, etc. ● Example of topologies – A simple one and one a bit more complex. ● Simple demonstration Feel free to interrupt me at any time!
  • 3. Problems to solve ● Having to look in each device separately for information collection. ● Having the clocks not exactly synchronized. ● Hard to search in devices without search support (like "include" or "grep"). ● Having to look for past events (more than N-bytes ago).
  • 4. Introducing Syslog ● A protocol. ● A de-facto standard... ● ... a documented de-facto standard (RFC 3164) ● ... and is being standardized (RFC 5424, obsoletes RFC 3164).
  • 5. The simplest possible logging implementation with Syslog
  • 6. Content (obsolete, RFC 3164) ● Priority = 8 * Facility + Severity – Severity (0-7) – Facility (0-23) ● Header – Timestamp (RFC3339 with restrictions) – Hostname (a.k.a. Cisco's "origin") (FQDN, IP, hostname) ● Message
  • 7. Content (new, RFC 5424) ● Version ● Application ● Process ID ● Message ID ● Structured data (Element, ID, Param) – Elements: timeQuality, origin, meta
  • 8. Severities ● 0: Emergency: system is unusable ● 1: Alert: action must be taken immediately ● 2: Critical: critical conditions ● 3: Error: error conditions ● 4: Warning: warning conditions ● 5: Notice: normal but significant condition ● 6: Informational: informational messages ● 7: Debug: debug-level messages
  • 9. Facilities (part 1) ● 0: kernel messages ● 1: user-level messages ● 2: mail system ● 3: system daemons ● 4: security/authorization messages ● 5: messages generated internally by syslogd ● 6: line printer subsystem ● 7: network news subsystem (maybe: RSS, Google group...)
  • 10. Facilities (part 2) ● 8: UUCP subsystem (maybe: backup, rsync...) ● 9: clock daemon ● 10: security/authorization messages ● 11: FTP daemon ● 12: NTP subsystem ● 13: log audit ● 14: log alert ● 15: clock daemon ● 16-23: local use 0-7 (local0-7)
  • 11. A slightly more complex Syslog usage
  • 12. Syslog application-layer "components" (as per the RFC) ● Originator (application-layer) – Cisco router, Apache Server ● Collector (application-layer) – rsyslog, dsyslog, syslog-ng – Solarwinds Kiwi Syslog Server ● Relay (application-layer)
  • 14. An extra component: the front-end ● Depends on the storage method. ● Text processors: grep, gawk ● FOSS: php-syslog-ng, Adiscon's Log Analyzer (PhpLogCon), Logzilla, logtool, petit... ● Gratis: Kiwi (basic), WhatsUp Gold's Syslog Server ● Commercial: Splunk, LogRhythm, LogClarity, Logalot, Kiwi (full), XLog-Server, SyslogAppliance, WinSyslog
  • 15. Simple demo: configuring a Cisco router as an originator ● Some IOS versions: – logging host A.B.C.D <level> – logging origin <origin-type> – logging on ● Some other IOS versions: – logging host A.B.C.D – logging on – logging trap <level>
  • 16. Simple demo: configuring an Ubuntu box as a text collector ● rsyslog already installed ● Edition of /etc/rsyslog.conf
  • 17. Thanks! Any questions? a blog.alvarezp.org /categorias/por-idioma/english @alvarezp2000 [email protected] The only legal way to burn a Windows disc superkb.sf.net