{"id":498,"date":"2010-09-08T20:10:11","date_gmt":"2010-09-08T20:10:11","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2010\/09\/08\/how-to-determine-the-syslog-facility-using-tcpdump\/"},"modified":"2021-07-30T13:50:39","modified_gmt":"2021-07-30T13:50:39","slug":"how-to-determine-the-syslog-facility-using-tcpdump","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html","title":{"rendered":"How to determine the Syslog Facility using Tcpdump"},"content":{"rendered":"

Each Syslog message contains a priority value. The priority value is enclosed within the characters < >. The priority value can be between 0 and 191 and consists of a Facility value and a Level value. Facility being the type of message, such as a kernel or mail message. And level being a severity level of the message.<\/p>\n

To calculate the priority value the following formula is used : Priority = Facility * 8 + Level<\/strong><\/p>\n

So to determine the facility value of a syslog message we divide the priority value by 8. The remainder is the level value.
\nBelow is an example of the tcpdump syntax :<\/p>\n

[root@logserver ~]# tcpdump -Xni eth0 port 514\r\ntcpdump: verbose output suppressed, use -v or -vv for full protocol decode\r\nlistening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes\r\n20:08:05.306002 IP 10.1.1.10.55595 > 10.1.1.1.514: length: 288\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0x0000:\u00a0 4500 013c 177d 0000 4011 4b06 0a01 0164\u00a0 E..<.}..@.K....d\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0x0010:\u00a0 0a01 01c9 d92b a2a2 0128 5f4b 3c31 3431\u00a0 .....+...(_K<141<\/strong>\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0x0020:\u00a0 3e6e 7335 6774 3a20 4e65 7453 6372 6565\u00a0 ><\/strong>ns5gt:.NetScree\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0x0030:\u00a0 6e20 6465 7669 6365 5f69 643d 6e73 3567\u00a0 n.device_id=ns5g\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0x0040:\u00a0 7420 205b 526f 6f74 5d73 7973 7465 6d2d\u00a0 t..[Root]system-\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0x0050:\u00a0 6e6f<\/pre>\n

Using the above example this would give us a facility of 17 (local1) and a level of 5 (notice).<\/p>\n

Severity Levels<\/strong><\/span><\/p>\n

0 Emergency: system is unusable
\n1 Alert: action must be taken immediately
\n2 Critical: critical conditions
\n3 Error: error conditions
\n4 Warning: warning conditions
\n5 Notice: normal but significant condition
\n6 Informational: informational messages
\n7 Debug: debug-level messages<\/p>\n

Facilities available<\/strong><\/span><\/p>\n

0 kernel messages
\n1 user-level messages
\n2 mail system
\n3 system daemons
\n4 security\/authorization messages
\n5 messages generated internally by syslogd
\n6 line printer subsystem
\n7 network news subsystem
\n8 UUCP subsystem
\n9 clock daemon
\n10 security\/authorization messages
\n11 FTP daemon
\n12 NTP subsystem
\n13 log audit
\n14 log alert
\n15 clock daemon
\n16 local use 0 (local0)
\n17 local use 1 (local1)
\n18 local use 2 (local2)
\n19 local use 3 (local3)
\n20 local use 4 (local4)
\n21 local use 5 (local5)
\n22 local use 6 (local6)
\n23 local use 7 (local7)<\/p>\n","protected":false},"excerpt":{"rendered":"

Each Syslog message contains a priority value. The priority value is enclosed within the characters < >. The priority value can be between 0 and 191 and consists of a Facility value and a Level value. Facility being the type of message, such as a kernel or mail message. And level being a severity level … Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[],"yoast_head":"\nHow to determine the Syslog Facility using Tcpdump - Fir3net<\/title>\n<meta name=\"description\" content=\"Each Syslog message contains a priority value. The priority value is enclosed within the characters < >. The priority value can be between 0 and 191\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to determine the Syslog Facility using Tcpdump - Fir3net\" \/>\n<meta property=\"og:description\" content=\"Each Syslog message contains a priority value. The priority value is enclosed within the characters < >. The priority value can be between 0 and 191\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html\" \/>\n<meta property=\"og:site_name\" content=\"Fir3net\" \/>\n<meta property=\"article:published_time\" content=\"2010-09-08T20:10:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-30T13:50:39+00:00\" \/>\n<meta name=\"author\" content=\"Rick Donato\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rick Donato\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html\"},\"author\":{\"name\":\"Rick Donato\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037\"},\"headline\":\"How to determine the Syslog Facility using Tcpdump\",\"datePublished\":\"2010-09-08T20:10:11+00:00\",\"dateModified\":\"2021-07-30T13:50:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html\"},\"wordCount\":221,\"publisher\":{\"@id\":\"https:\/\/www.fir3net.com\/#organization\"},\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html\",\"url\":\"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html\",\"name\":\"How to determine the Syslog Facility using Tcpdump - Fir3net\",\"isPartOf\":{\"@id\":\"https:\/\/www.fir3net.com\/#website\"},\"datePublished\":\"2010-09-08T20:10:11+00:00\",\"dateModified\":\"2021-07-30T13:50:39+00:00\",\"description\":\"Each Syslog message contains a priority value. The priority value is enclosed within the characters < >. The priority value can be between 0 and 191\",\"breadcrumb\":{\"@id\":\"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.fir3net.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Operating Systems\",\"item\":\"https:\/\/www.fir3net.com\/os\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Linux\",\"item\":\"https:\/\/www.fir3net.com\/os\/linux\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How to determine the Syslog Facility using Tcpdump\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.fir3net.com\/#website\",\"url\":\"https:\/\/www.fir3net.com\/\",\"name\":\"Fir3net\",\"description\":\"Keeping you in the know\",\"publisher\":{\"@id\":\"https:\/\/www.fir3net.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.fir3net.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.fir3net.com\/#organization\",\"name\":\"Fir3net\",\"url\":\"https:\/\/www.fir3net.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png\",\"contentUrl\":\"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png\",\"width\":390,\"height\":88,\"caption\":\"Fir3net\"},\"image\":{\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037\",\"name\":\"Rick Donato\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g\",\"caption\":\"Rick Donato\"},\"description\":\"Rick Donato is a Network Automation Architect\/Evangelist and the founder of Packet Coders.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to determine the Syslog Facility using Tcpdump - Fir3net","description":"Each Syslog message contains a priority value. The priority value is enclosed within the characters < >. The priority value can be between 0 and 191","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html","og_locale":"en_US","og_type":"article","og_title":"How to determine the Syslog Facility using Tcpdump - Fir3net","og_description":"Each Syslog message contains a priority value. The priority value is enclosed within the characters < >. The priority value can be between 0 and 191","og_url":"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html","og_site_name":"Fir3net","article_published_time":"2010-09-08T20:10:11+00:00","article_modified_time":"2021-07-30T13:50:39+00:00","author":"Rick Donato","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rick Donato","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html#article","isPartOf":{"@id":"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html"},"author":{"name":"Rick Donato","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037"},"headline":"How to determine the Syslog Facility using Tcpdump","datePublished":"2010-09-08T20:10:11+00:00","dateModified":"2021-07-30T13:50:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html"},"wordCount":221,"publisher":{"@id":"https:\/\/www.fir3net.com\/#organization"},"articleSection":["Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html","url":"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html","name":"How to determine the Syslog Facility using Tcpdump - Fir3net","isPartOf":{"@id":"https:\/\/www.fir3net.com\/#website"},"datePublished":"2010-09-08T20:10:11+00:00","dateModified":"2021-07-30T13:50:39+00:00","description":"Each Syslog message contains a priority value. The priority value is enclosed within the characters < >. The priority value can be between 0 and 191","breadcrumb":{"@id":"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.fir3net.com\/General-UNIX\/how-to-determine-the-syslog-facility-using-tcpdump.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fir3net.com\/"},{"@type":"ListItem","position":2,"name":"Operating Systems","item":"https:\/\/www.fir3net.com\/os"},{"@type":"ListItem","position":3,"name":"Linux","item":"https:\/\/www.fir3net.com\/os\/linux"},{"@type":"ListItem","position":4,"name":"How to determine the Syslog Facility using Tcpdump"}]},{"@type":"WebSite","@id":"https:\/\/www.fir3net.com\/#website","url":"https:\/\/www.fir3net.com\/","name":"Fir3net","description":"Keeping you in the know","publisher":{"@id":"https:\/\/www.fir3net.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fir3net.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.fir3net.com\/#organization","name":"Fir3net","url":"https:\/\/www.fir3net.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png","contentUrl":"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png","width":390,"height":88,"caption":"Fir3net"},"image":{"@id":"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037","name":"Rick Donato","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g","caption":"Rick Donato"},"description":"Rick Donato is a Network Automation Architect\/Evangelist and the founder of Packet Coders."}]}},"_links":{"self":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts\/498"}],"collection":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/comments?post=498"}],"version-history":[{"count":0,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts\/498\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/media?parent=498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/categories?post=498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/tags?post=498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}