SlideShare a Scribd company logo
1 of 17
Download to read offline
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

What's hot

Virtualization which isn't: LXC (Linux Containers)
Virtualization which isn't: LXC (Linux Containers)Virtualization which isn't: LXC (Linux Containers)
Virtualization which isn't: LXC (Linux Containers)
Dobrica Pavlinušić
 
SaltStack – (Not) just another Automation & Remote Execution Tool
SaltStack – (Not) just another Automation & Remote Execution ToolSaltStack – (Not) just another Automation & Remote Execution Tool
SaltStack – (Not) just another Automation & Remote Execution Tool
inovex GmbH
 
HTTPプロクシライブラリproxy2の設計と実装
HTTPプロクシライブラリproxy2の設計と実装HTTPプロクシライブラリproxy2の設計と実装
HTTPプロクシライブラリproxy2の設計と実装
inaz2
 

What's hot (20)

OpenZFS send and receive
OpenZFS send and receiveOpenZFS send and receive
OpenZFS send and receive
 
Introduction to eBPF and XDP
Introduction to eBPF and XDPIntroduction to eBPF and XDP
Introduction to eBPF and XDP
 
Fun with Network Interfaces
Fun with Network InterfacesFun with Network Interfaces
Fun with Network Interfaces
 
Fun with FUSE
Fun with FUSEFun with FUSE
Fun with FUSE
 
The Basic Introduction of Open vSwitch
The Basic Introduction of Open vSwitchThe Basic Introduction of Open vSwitch
The Basic Introduction of Open vSwitch
 
OpenvSwitch Deep Dive
OpenvSwitch Deep DiveOpenvSwitch Deep Dive
OpenvSwitch Deep Dive
 
OVS-NFV Tutorial
OVS-NFV TutorialOVS-NFV Tutorial
OVS-NFV Tutorial
 
OVN 設定サンプル | OVN config example 2015/12/27
OVN 設定サンプル | OVN config example 2015/12/27OVN 設定サンプル | OVN config example 2015/12/27
OVN 設定サンプル | OVN config example 2015/12/27
 
CoreOS intro
CoreOS introCoreOS intro
CoreOS intro
 
Practical Glusto Example
Practical Glusto ExamplePractical Glusto Example
Practical Glusto Example
 
Run Run Trema Test
Run Run Trema TestRun Run Trema Test
Run Run Trema Test
 
Kqueue : Generic Event notification
Kqueue : Generic Event notificationKqueue : Generic Event notification
Kqueue : Generic Event notification
 
Virtualization which isn't: LXC (Linux Containers)
Virtualization which isn't: LXC (Linux Containers)Virtualization which isn't: LXC (Linux Containers)
Virtualization which isn't: LXC (Linux Containers)
 
Building a network emulator with Docker and Open vSwitch
Building a network emulator with Docker and Open vSwitchBuilding a network emulator with Docker and Open vSwitch
Building a network emulator with Docker and Open vSwitch
 
Abusing Interrupts for Reliable Windows Kernel Exploitation (en)
Abusing Interrupts for Reliable Windows Kernel Exploitation (en)Abusing Interrupts for Reliable Windows Kernel Exploitation (en)
Abusing Interrupts for Reliable Windows Kernel Exploitation (en)
 
SaltStack – (Not) just another Automation & Remote Execution Tool
SaltStack – (Not) just another Automation & Remote Execution ToolSaltStack – (Not) just another Automation & Remote Execution Tool
SaltStack – (Not) just another Automation & Remote Execution Tool
 
Semtex.c [CVE-2013-2094] - A Linux Privelege Escalation
Semtex.c [CVE-2013-2094] - A Linux Privelege EscalationSemtex.c [CVE-2013-2094] - A Linux Privelege Escalation
Semtex.c [CVE-2013-2094] - A Linux Privelege Escalation
 
How choosing the Raft consensus algorithm saved us 3 months of development time
How choosing the Raft consensus algorithm saved us 3 months of development timeHow choosing the Raft consensus algorithm saved us 3 months of development time
How choosing the Raft consensus algorithm saved us 3 months of development time
 
Talk 160920 @ Cat System Workshop
Talk 160920 @ Cat System WorkshopTalk 160920 @ Cat System Workshop
Talk 160920 @ Cat System Workshop
 
HTTPプロクシライブラリproxy2の設計と実装
HTTPプロクシライブラリproxy2の設計と実装HTTPプロクシライブラリproxy2の設計と実装
HTTPプロクシライブラリproxy2の設計と実装
 

Viewers also liked (7)

NetBSD syslogd with IETF Syslog Protocols
NetBSD syslogd with IETF Syslog ProtocolsNetBSD syslogd with IETF Syslog Protocols
NetBSD syslogd with IETF Syslog Protocols
 
intro syslog syslogng
intro syslog syslogngintro syslog syslogng
intro syslog syslogng
 
Implementing ossec
Implementing ossecImplementing ossec
Implementing ossec
 
Monitoring with Syslog and EventMachine
Monitoring with Syslog and EventMachineMonitoring with Syslog and EventMachine
Monitoring with Syslog and EventMachine
 
Slide livro Sociologia ensino médio capitulo 07 do Tomazi
Slide livro Sociologia ensino médio capitulo 07 do TomaziSlide livro Sociologia ensino médio capitulo 07 do Tomazi
Slide livro Sociologia ensino médio capitulo 07 do Tomazi
 
CCNA Security - Chapter 2
CCNA Security - Chapter 2CCNA Security - Chapter 2
CCNA Security - Chapter 2
 
Slides Geografia do Brasil
Slides Geografia do BrasilSlides Geografia do Brasil
Slides Geografia do Brasil
 

Similar to Configuring Syslog by Octavio

Lightweight Virtualization with Linux Containers and Docker I YaC 2013
Lightweight Virtualization with Linux Containers and Docker I YaC 2013Lightweight Virtualization with Linux Containers and Docker I YaC 2013
Lightweight Virtualization with Linux Containers and Docker I YaC 2013
Docker, Inc.
 

Similar to Configuring Syslog by Octavio (20)

Turbo charge your logs
Turbo charge your logsTurbo charge your logs
Turbo charge your logs
 
You Can't Correlate what you don't have - ArcSight Protect 2011
You Can't Correlate what you don't have - ArcSight Protect 2011You Can't Correlate what you don't have - ArcSight Protect 2011
You Can't Correlate what you don't have - ArcSight Protect 2011
 
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
[OpenStack Day in Korea 2015] Track 1-6 - 갈라파고스의 이구아나, 인프라에 오픈소스를 올리다. 그래서 보이...
 
Fedora Developer's Conference 2014 Talk
Fedora Developer's Conference 2014 TalkFedora Developer's Conference 2014 Talk
Fedora Developer's Conference 2014 Talk
 
LCU14 310- Cisco ODP v2
LCU14 310- Cisco ODP v2LCU14 310- Cisco ODP v2
LCU14 310- Cisco ODP v2
 
Android Internals
Android InternalsAndroid Internals
Android Internals
 
Experiences building a distributed shared log on RADOS - Noah Watkins
Experiences building a distributed shared log on RADOS - Noah WatkinsExperiences building a distributed shared log on RADOS - Noah Watkins
Experiences building a distributed shared log on RADOS - Noah Watkins
 
Linux Kernel Platform Development: Challenges and Insights
 Linux Kernel Platform Development: Challenges and Insights Linux Kernel Platform Development: Challenges and Insights
Linux Kernel Platform Development: Challenges and Insights
 
Linux logging
Linux loggingLinux logging
Linux logging
 
Porting Android
Porting AndroidPorting Android
Porting Android
 
"Lightweight Virtualization with Linux Containers and Docker". Jerome Petazzo...
"Lightweight Virtualization with Linux Containers and Docker". Jerome Petazzo..."Lightweight Virtualization with Linux Containers and Docker". Jerome Petazzo...
"Lightweight Virtualization with Linux Containers and Docker". Jerome Petazzo...
 
[KubeCon EU 2020] containerd Deep Dive
[KubeCon EU 2020] containerd Deep Dive[KubeCon EU 2020] containerd Deep Dive
[KubeCon EU 2020] containerd Deep Dive
 
High performance json- postgre sql vs. mongodb
High performance json- postgre sql vs. mongodbHigh performance json- postgre sql vs. mongodb
High performance json- postgre sql vs. mongodb
 
One Year of Porting - Post-mortem of two Linux/SteamOS launches
One Year of Porting - Post-mortem of two Linux/SteamOS launchesOne Year of Porting - Post-mortem of two Linux/SteamOS launches
One Year of Porting - Post-mortem of two Linux/SteamOS launches
 
Let's Containerize New York with Docker!
Let's Containerize New York with Docker!Let's Containerize New York with Docker!
Let's Containerize New York with Docker!
 
Run Your Own 6LoWPAN Based IoT Network
Run Your Own 6LoWPAN Based IoT NetworkRun Your Own 6LoWPAN Based IoT Network
Run Your Own 6LoWPAN Based IoT Network
 
Android Internals
Android InternalsAndroid Internals
Android Internals
 
2013.02.02 지앤선 테크니컬 세미나 - Xcode를 활용한 디버깅 팁(OSXDEV)
2013.02.02 지앤선 테크니컬 세미나 - Xcode를 활용한 디버깅 팁(OSXDEV)2013.02.02 지앤선 테크니컬 세미나 - Xcode를 활용한 디버깅 팁(OSXDEV)
2013.02.02 지앤선 테크니컬 세미나 - Xcode를 활용한 디버깅 팁(OSXDEV)
 
Lightweight Virtualization with Linux Containers and Docker | YaC 2013
Lightweight Virtualization with Linux Containers and Docker | YaC 2013Lightweight Virtualization with Linux Containers and Docker | YaC 2013
Lightweight Virtualization with Linux Containers and Docker | YaC 2013
 
Lightweight Virtualization with Linux Containers and Docker I YaC 2013
Lightweight Virtualization with Linux Containers and Docker I YaC 2013Lightweight Virtualization with Linux Containers and Docker I YaC 2013
Lightweight Virtualization with Linux Containers and Docker I YaC 2013
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 

Configuring Syslog by Octavio

  • 1. Introduction to Syslog Octavio Alvarez alvarezp@alvarezp.ods.org 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 alvarezp@alvarezp.com The only legal way to burn a Windows disc superkb.sf.net