{"id":1397,"date":"2022-02-11T14:10:00","date_gmt":"2022-02-11T22:10:00","guid":{"rendered":"https:\/\/jmcristobal.com\/?p=1397"},"modified":"2022-02-13T08:44:13","modified_gmt":"2022-02-13T16:44:13","slug":"configure-syslog-on-cisco-ios","status":"publish","type":"post","link":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/","title":{"rendered":"Configurar Syslog en Cisco IOS"},"content":{"rendered":"<p>Syslog es un estandar para el registro de mensajes que describe eventos importantes en equipos de red. Estos eventos sirven de auditoria para saber el qu\u00e9, cu\u00e1ndo y c\u00f3mo sucedi\u00f3 el evento.<\/p>\n\n\n\n<p>Los niveles de severidad son para filtrar los eventos Syslog de acuerdo a la necesidad. Los niveles van del 0 al 7:<\/p>\n\n\n\n<p>0.- Emergencies<br>1.- Alerts<br>2.- Critical<br>3.- Errors<br>4.- Warnings<br>5.-Notifications<br>6.- Informational<br>7.- Debugging<\/p>\n\n\n\n<p>Por defecto, el router env\u00eda todos los mensajes a su puerto de consola. Por lo tanto, s\u00f3lo los usuarios que est\u00e1n f\u00edsicamente conectados al puerto de consola del router pueden ver estos mensajes.<\/p>\n\n\n\n<p>Comando para especificar el nivel de severidad de los mensajes que aparecer\u00e1n por consola:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"adoc\" class=\"language-adoc\">Switch(config)# logging console<\/code><\/pre>\n\n\n\n<p> El siguiente comando es para deshabilitar que los mensajes se vean en el puerto de consola:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"adoc\" class=\"language-adoc\">Switch(config)# no logging console<\/code><\/pre>\n\n\n\n<p>El switch guarda los logs localmente en un buffer de 4096 bytes. Cuando el buffer se llena los mensajes nuevos sobreescriben a los mas viejos.<\/p>\n\n\n\n<p>El tama\u00f1o del buffer va de 4096 a 2147483647, este valor se puede modificar con el siguiente comando:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"adoc\" class=\"language-adoc\">Switch(config)# logging buffered <\/code><\/pre>\n\n\n\n<p>Utilice este comando para borrar el buffer interno del switch:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"adoc\" class=\"language-adoc\">Switch# clear logging\nClear logging buffered [confirm]<\/code><\/pre>\n\n\n\n<p>Si se tiene un servidor syslog externo, los mensajes pueden ser reenviados con el siguiente comando:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"adoc\" class=\"language-adoc\">Switch(config)# logging host<\/code><\/pre>\n\n\n\n<p> Configurar que tipo de alarmas se van a enviar al servidor syslog:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"adoc\" class=\"language-adoc\">Switch(config)# logging trap<\/code><\/pre>\n\n\n\n<p>El siguiente comando es para redireccionar los mensajes a nuestra sesi\u00f3n SSH o telnet:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"adoc\" class=\"language-adoc\">Switch(config)# terminal monitor<\/code><\/pre>\n\n\n\n<p>Finalmente, el siguiente comando utiliza el reloj del switch como una marca de tiempo para los mensajes syslog:<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"adoc\" class=\"language-adoc\">Switch(config)# service timestamps log datetime [ localtime] [ show-timezone] [ msec] [ year]<\/code><\/pre>\n\n\n\n<p>Comandos debug<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code lang=\"adoc\" class=\"language-adoc\">Switch# show logging<\/code><\/pre>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Syslog is a standard for logging messages describing important events on network equipment. These events are used for auditing to know what, <\/p>","protected":false},"author":2,"featured_media":1392,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[233],"tags":[280,340,527,407,526,528,427,525],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Configure Syslog on Cisco IOS - JMCristobal<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configure Syslog on Cisco IOS - JMCristobal\" \/>\n<meta property=\"og:description\" content=\"Syslog is a standard for logging messages describing important events on network equipment. These events are used for auditing to know what,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/\" \/>\n<meta property=\"og:site_name\" content=\"JMCristobal\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/web.facebook.com\/JMCristobalHomepage\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-11T22:10:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-13T16:44:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/d1gdqjscev06po.cloudfront.net\/wp-content\/uploads\/2022\/01\/RS.png\" \/>\n\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t<meta property=\"og:image:height\" content=\"206\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"JMCristobal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@jmcristobalhome\" \/>\n<meta name=\"twitter:site\" content=\"@jmcristobalhome\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"JMCristobal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/\"},\"author\":{\"name\":\"JMCristobal\",\"@id\":\"https:\/\/jmcristobal.com\/es\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118\"},\"headline\":\"Configure Syslog on Cisco IOS\",\"datePublished\":\"2022-02-11T22:10:00+00:00\",\"dateModified\":\"2022-02-13T16:44:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/\"},\"wordCount\":220,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/jmcristobal.com\/es\/#organization\"},\"keywords\":[\"cisco\",\"ios\",\"logging\",\"router\",\"server\",\"show\",\"switch\",\"syslog\"],\"articleSection\":[\"Enterprise Infrastructure\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/\",\"url\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/\",\"name\":\"Configure Syslog on Cisco IOS - JMCristobal\",\"isPartOf\":{\"@id\":\"https:\/\/jmcristobal.com\/es\/#website\"},\"datePublished\":\"2022-02-11T22:10:00+00:00\",\"dateModified\":\"2022-02-13T16:44:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jmcristobal.com\/es\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configure Syslog on Cisco IOS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jmcristobal.com\/es\/#website\",\"url\":\"https:\/\/jmcristobal.com\/es\/\",\"name\":\"JMCristobal\",\"description\":\"Networking and more\",\"publisher\":{\"@id\":\"https:\/\/jmcristobal.com\/es\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jmcristobal.com\/es\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jmcristobal.com\/es\/#organization\",\"name\":\"JMCristobal\",\"url\":\"https:\/\/jmcristobal.com\/es\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/jmcristobal.com\/es\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jmcristobal.com\/wp-content\/uploads\/2021\/09\/Logo-JMCristobal.png\",\"contentUrl\":\"https:\/\/jmcristobal.com\/wp-content\/uploads\/2021\/09\/Logo-JMCristobal.png\",\"width\":518,\"height\":436,\"caption\":\"JMCristobal\"},\"image\":{\"@id\":\"https:\/\/jmcristobal.com\/es\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.youtube.com\/JMCristobalHomepage\",\"https:\/\/web.facebook.com\/JMCristobalHomepage\",\"https:\/\/twitter.com\/jmcristobalhome\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/jmcristobal.com\/es\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118\",\"name\":\"JMCristobal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/jmcristobal.com\/es\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g\",\"caption\":\"JMCristobal\"},\"url\":\"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/author\/jmcristobal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Configure Syslog on Cisco IOS - JMCristobal","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:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/","og_locale":"es_ES","og_type":"article","og_title":"Configure Syslog on Cisco IOS - JMCristobal","og_description":"Syslog is a standard for logging messages describing important events on network equipment. These events are used for auditing to know what,","og_url":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/","og_site_name":"JMCristobal","article_publisher":"https:\/\/web.facebook.com\/JMCristobalHomepage","article_published_time":"2022-02-11T22:10:00+00:00","article_modified_time":"2022-02-13T16:44:13+00:00","og_image":[{"width":350,"height":206,"url":"https:\/\/d1gdqjscev06po.cloudfront.net\/wp-content\/uploads\/2022\/01\/RS.png","type":"image\/png"}],"author":"JMCristobal","twitter_card":"summary_large_image","twitter_creator":"@jmcristobalhome","twitter_site":"@jmcristobalhome","twitter_misc":{"Escrito por":"JMCristobal","Tiempo de lectura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/#article","isPartOf":{"@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/"},"author":{"name":"JMCristobal","@id":"https:\/\/jmcristobal.com\/es\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118"},"headline":"Configure Syslog on Cisco IOS","datePublished":"2022-02-11T22:10:00+00:00","dateModified":"2022-02-13T16:44:13+00:00","mainEntityOfPage":{"@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/"},"wordCount":220,"commentCount":0,"publisher":{"@id":"https:\/\/jmcristobal.com\/es\/#organization"},"keywords":["cisco","ios","logging","router","server","show","switch","syslog"],"articleSection":["Enterprise Infrastructure"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/","url":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/","name":"Configure Syslog on Cisco IOS - JMCristobal","isPartOf":{"@id":"https:\/\/jmcristobal.com\/es\/#website"},"datePublished":"2022-02-11T22:10:00+00:00","dateModified":"2022-02-13T16:44:13+00:00","breadcrumb":{"@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/2022\/02\/11\/configure-syslog-on-cisco-ios\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jmcristobal.com\/es\/"},{"@type":"ListItem","position":2,"name":"Configure Syslog on Cisco IOS"}]},{"@type":"WebSite","@id":"https:\/\/jmcristobal.com\/es\/#website","url":"https:\/\/jmcristobal.com\/es\/","name":"JMCristobal","description":"Networking and more","publisher":{"@id":"https:\/\/jmcristobal.com\/es\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jmcristobal.com\/es\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/jmcristobal.com\/es\/#organization","name":"JMCristobal","url":"https:\/\/jmcristobal.com\/es\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/jmcristobal.com\/es\/#\/schema\/logo\/image\/","url":"https:\/\/jmcristobal.com\/wp-content\/uploads\/2021\/09\/Logo-JMCristobal.png","contentUrl":"https:\/\/jmcristobal.com\/wp-content\/uploads\/2021\/09\/Logo-JMCristobal.png","width":518,"height":436,"caption":"JMCristobal"},"image":{"@id":"https:\/\/jmcristobal.com\/es\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.youtube.com\/JMCristobalHomepage","https:\/\/web.facebook.com\/JMCristobalHomepage","https:\/\/twitter.com\/jmcristobalhome"]},{"@type":"Person","@id":"https:\/\/jmcristobal.com\/es\/#\/schema\/person\/e7cca8371cd491cf444cc824f30ae118","name":"JMCristobal","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/jmcristobal.com\/es\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b549739a2a57394801aef27a76efdb3d?s=96&d=mm&r=g","caption":"JMCristobal"},"url":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/author\/jmcristobal\/"}]}},"jetpack_featured_media_url":"https:\/\/d1gdqjscev06po.cloudfront.net\/wp-content\/uploads\/2022\/01\/RS.png","_links":{"self":[{"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/posts\/1397"}],"collection":[{"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/comments?post=1397"}],"version-history":[{"count":3,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/posts\/1397\/revisions"}],"predecessor-version":[{"id":1542,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/posts\/1397\/revisions\/1542"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/media\/1392"}],"wp:attachment":[{"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/media?parent=1397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/categories?post=1397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/d1gdqjscev06po.cloudfront.net\/es\/wp-json\/wp\/v2\/tags?post=1397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}