CINXE.COM
Configure Persistent Logging on IOS Platforms - Cisco
<!DOCTYPE html> <html xmlns:fb="//www.facebook.com/2008/fbml" xmlns:og="//opengraphprotocol.org/schema/" lang="en" xml:lang="en" class="no-touch no-js"> <head> <meta charset="utf-8"> <meta name="HandheldFriendly" content="True" /> <meta name="MobileOptimized" content="320" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="rei" content="3/2/2022 10.39am est" /> <script tyle="text/javascript" src="/content/dam/cdc/j/cdcrSwitch.js"></script> <script type="text/javascript"> if (typeof cdc === "undefined"){ cdc = {}; } cdc.localizedLang="en/us"; if (window.cdcext === undefined) { window.cdcext = {}; } cdcext.customEnvironment = "prod"; if (window.cdclocale === undefined) { window.cdclocale = {}; } cdclocale.locale = cdc.localizedLang=="en/us"?"en_us":cdc.localizedLang; </script> <script src="/c/dam/cdc/t/ctm-core.js"></script> <script> window['adrum-start-time'] = new Date().getTime(); window.environ = "prod" ; </script> <script> if (window.cpe === undefined) { window.cpe = {}; } cpe.accountName = "prod"; cpe.config = ["cinf","dsc","pps"]; cpe.hideMethod = "elements"; window.targetGlobalSettings = JSON.parse('{\x22timeout\x22:4000}'); window.targetPageParamsAll = () => JSON.parse('{\x22entity\x22:\x22{\\\x22id\\\x22:\\\x221716514209990258\\\x22,\\\x22categoryId\\\x22:\\\x22Technologies,Voice,TSD Technologies Configuration Example\\\x22}\x22}'); const bullseyeLibrary = `/etc.clientlibs/cisco-cdc/clientlibs/clientlib-external/resources/external/bullseye.js`; import(bullseyeLibrary); </script> <script src="/etc.clientlibs/cisco-cdc/clientlibs/clientlib-external/resources/regional-mbox/regional-mbox.js"></script> <title>Configure Persistent Logging on IOS Platforms - Cisco</title> <meta name="format-detection" content="telephone=no"> <meta http-equiv="Content-type" content="text/html;charset=UTF-8" /> <meta name="description" content="This document describes how to enable system logging messages in order to save output to the router's flash disk." /> <meta name="title" content="Configure Persistent Logging on IOS Platforms" /> <meta name="documentId" content="212102" /> <meta name="templateName" content="eot" /> <meta property="fb:app_id" content="156494687694418" /> <meta name="ioContentSource" content="support" /> <meta name="concept" content="Telephony Signaling" /> <meta name="docType" content="TSD Technologies Configuration Example" /> <meta name="iaPath" content="cisco.com#Technologies#Voice#Telephony Signaling" /> <meta name="contentType" content="cisco.com#US#postSales" /> <meta name="locale" content="US" /> <meta name="language" content="en" /> <meta name="country" content="US" /> <meta name="CCID_Page" content="cc001784" /> <meta name="date" content="Thu May 23 18:15:29 PDT 2024" /> <meta name="sourceGroup" content="TACAuthoredSP" /> <meta name="accessLevel" content="Customer" /> <meta name="accessLevel" content="Guest" /> <meta name="accessLevel" content="Partner" /> <meta name="entitlementExpression" content="contains( "0,1,2,3,4,7" , $profileField[3] )" /> <meta property="og:site_name" content="Cisco" /> <meta property="og:type" content="website" /> <meta property="og:title" content="Configure Persistent Logging on IOS Platforms" /> <meta property="og:description" content="This document describes how to enable system logging messages in order to save output to the router's flash disk." /> <meta property="og:url" content="https://www.cisco.com/c/en/us/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html" /> <link rel="canonical" href="https://www.cisco.com/c/en/us/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html"/> <link rel="alternate" hreflang="x-default" href="https://www.cisco.com/c/en/us/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html"/> <link rel="alternate" hreflang="pt-br" href="https://www.cisco.com/c/pt_br/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html"/> <link rel="alternate" hreflang="es-mx" href="https://www.cisco.com/c/es_mx/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html"/> <link rel="alternate" hreflang="ko-kr" href="https://www.cisco.com/c/ko_kr/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html"/> <link rel="alternate" hreflang="it-it" href="https://www.cisco.com/c/it_it/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html"/> <link rel="alternate" hreflang="ja-jp" href="https://www.cisco.com/c/ja_jp/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html"/> <link rel="alternate" hreflang="de-de" href="https://www.cisco.com/c/de_de/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html"/> <link rel="alternate" hreflang="fr-ca" href="https://www.cisco.com/c/fr_ca/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html"/> <link rel="alternate" hreflang="ar-ae" href="https://www.cisco.com/c/ar_ae/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html"/> <link rel="alternate" hreflang="nl-nl" href="https://www.cisco.com/c/nl_nl/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html"/> <link rel="alternate" hreflang="zh-tw" href="https://www.cisco.com/c/zh_tw/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html"/> <link rel="alternate" hreflang="zh-cn" href="https://www.cisco.com/c/zh_cn/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html"/> <link rel="alternate" hreflang="en-us" href="https://www.cisco.com/c/en/us/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html"/> <meta name="Tech Zone URL" content="/t5/Analog-TDM-Gateway/Configure-Persistent-Logging-on-IOS-Platforms/ta-p/383531"/> <script src="/etc.clientlibs/clientlibs/granite/jquery.min.js"></script> <script src="/etc.clientlibs/clientlibs/granite/utils.min.js"></script> <script src="/etc.clientlibs/clientlibs/granite/jquery/granite.min.js"></script> <script src="/etc.clientlibs/foundation/clientlibs/jquery.min.js"></script> <script src="/etc.clientlibs/foundation/clientlibs/shared.min.js"></script> <script src="/etc.clientlibs/cq/personalization/clientlib/underscore.min.js"></script> <script src="/etc.clientlibs/cq/personalization/clientlib/personalization/kernel.min.js"></script> <script src="/etc.clientlibs/cq/personalization/clientlib/personalization/kernel.min.js"></script> <script type="text/javascript"> $CQ(function() { CQ_Analytics.SegmentMgr.loadSegments("\/etc\/segmentation"); CQ_Analytics.ClientContextUtils.init("\/c\/dnc\/etc\/clientcontext\/default", "\/content\/en\/us\/support\/docs\/voice\/telephony\u002Dsignaling\/212102\u002DConfigure\u002DPersistent\u002DLogging\u002Don\u002DCisco\u002DIO"); }); </script> <link rel="stylesheet" href="/etc/designs/cdc/clientlibs/responsive/css/cisco-sans.min.css" type="text/css"> <script src="/etc/designs/cdc/clientlibs/responsive/js/foundation.min.js"></script> <link rel="stylesheet" href="/etc/designs/cdc/fw/b/responsive/css/eot.min.css" type="text/css"> <script> sessionStorage.setItem("logOutIntermediateMessage", 'You are being logged out.'); </script> <!-- Custom JSON LD For Products Type --> <script type="application/ld+json"> [ { "@context": "http://www.schema.org", "@type": "WebPage", "name": "Configure Persistent Logging on IOS Platforms", "url": "https://www.cisco.com/c/en/us/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html", "description": "This document describes how to enable system logging messages in order to save output to the router's flash disk.", "publisher": { "@type": "Corporation", "name": "Cisco" } }] </script> <!-- End Custom JSON LD For Products Type --> <!-- Video JSON LD --> <!-- End Video JSON LD --> <script>!function(e){var n="https://s.go-mpulse.net/boomerang/";if("False"=="True")e.BOOMR_config=e.BOOMR_config||{},e.BOOMR_config.PageParams=e.BOOMR_config.PageParams||{},e.BOOMR_config.PageParams.pci=!0,n="https://s2.go-mpulse.net/boomerang/";if(window.BOOMR_API_key="GKZXC-NS3SU-A7VFH-HKBHM-U7LKH",function(){function e(){if(!o){var e=document.createElement("script");e.id="boomr-scr-as",e.src=window.BOOMR.url,e.async=!0,i.parentNode.appendChild(e),o=!0}}function t(e){o=!0;var n,t,a,r,d=document,O=window;if(window.BOOMR.snippetMethod=e?"if":"i",t=function(e,n){var t=d.createElement("script");t.id=n||"boomr-if-as",t.src=window.BOOMR.url,BOOMR_lstart=(new Date).getTime(),e=e||d.body,e.appendChild(t)},!window.addEventListener&&window.attachEvent&&navigator.userAgent.match(/MSIE [67]\./))return window.BOOMR.snippetMethod="s",void t(i.parentNode,"boomr-async");a=document.createElement("IFRAME"),a.src="about:blank",a.title="",a.role="presentation",a.loading="eager",r=(a.frameElement||a).style,r.width=0,r.height=0,r.border=0,r.display="none",i.parentNode.appendChild(a);try{O=a.contentWindow,d=O.document.open()}catch(_){n=document.domain,a.src="javascript:var d=document.open();d.domain='"+n+"';void(0);",O=a.contentWindow,d=O.document.open()}if(n)d._boomrl=function(){this.domain=n,t()},d.write("<bo"+"dy onload='document._boomrl();'>");else if(O._boomrl=function(){t()},O.addEventListener)O.addEventListener("load",O._boomrl,!1);else if(O.attachEvent)O.attachEvent("onload",O._boomrl);d.close()}function a(e){window.BOOMR_onload=e&&e.timeStamp||(new Date).getTime()}if(!window.BOOMR||!window.BOOMR.version&&!window.BOOMR.snippetExecuted){window.BOOMR=window.BOOMR||{},window.BOOMR.snippetStart=(new Date).getTime(),window.BOOMR.snippetExecuted=!0,window.BOOMR.snippetVersion=12,window.BOOMR.url=n+"GKZXC-NS3SU-A7VFH-HKBHM-U7LKH";var i=document.currentScript||document.getElementsByTagName("script")[0],o=!1,r=document.createElement("link");if(r.relList&&"function"==typeof r.relList.supports&&r.relList.supports("preload")&&"as"in r)window.BOOMR.snippetMethod="p",r.href=window.BOOMR.url,r.rel="preload",r.as="script",r.addEventListener("load",e),r.addEventListener("error",function(){t(!0)}),setTimeout(function(){if(!o)t(!0)},3e3),BOOMR_lstart=(new Date).getTime(),i.parentNode.appendChild(r);else t(!1);if(window.addEventListener)window.addEventListener("load",a,!1);else if(window.attachEvent)window.attachEvent("onload",a)}}(),"".length>0)if(e&&"performance"in e&&e.performance&&"function"==typeof e.performance.setResourceTimingBufferSize)e.performance.setResourceTimingBufferSize();!function(){if(BOOMR=e.BOOMR||{},BOOMR.plugins=BOOMR.plugins||{},!BOOMR.plugins.AK){var n=""=="true"?1:0,t="",a="bdpnbeqx2cugez2bvwoa-f-26be0e4e1-clientnsv4-s.akamaihd.net",i="false"=="true"?2:1,o={"ak.v":"39","ak.cp":"61004","ak.ai":parseInt("271834",10),"ak.ol":"0","ak.cr":3,"ak.ipv":4,"ak.proto":"http/1.1","ak.rid":"1c4430a5","ak.r":50230,"ak.a2":n,"ak.m":"dsca","ak.n":"essl","ak.bpcip":"8.222.208.0","ak.cport":54244,"ak.gh":"23.39.162.18","ak.quicv":"","ak.tlsv":"tls1.2","ak.0rtt":"","ak.0rtt.ed":"","ak.csrc":"-","ak.acc":"reno","ak.t":"1732357532","ak.ak":"hOBiQwZUYzCg5VSAfCLimQ==nvZ5vL29tgnPUXKk+qFP30ryzf4PqQj13Dr5F9EfRfHUjwHroh0lJ5gUL5i9PCEQQ6R9yOEyMJxI57pfOYnikg5tTFM0MH1rS7jiEWVzLMg+fcE8XaIjh0QUHcKBRg7Q8ztM+chdSEpzrWnLJhU6j2uduMxozTKb/r9uryg/sLE0faN0kE+27p+Sfkz+K64RWO8awvbqipImPOnmVZyK9QW2kWTn/hBySlMwDVfh8R0rbuGvkHDltSi+rE4xVaKKFrAfglkVeXmE0DtQ1QZnTgzppfLaaIZoUtduFsBbQtJFEvtyu3Pj7Hts2zFwCzyRDZCCSXEXg16cc3SC1s8YZDULzLZruiKUr/W8vw/AfSNyW4I3xfSOSi7r5Ey2vxk0MfN+AVUl3+tiIdJbI4yH2yp15m+Fb/L/zis6EQ/eXXk=","ak.pv":"517","ak.dpoabenc":"","ak.tf":i};if(""!==t)o["ak.ruds"]=t;var r={i:!1,av:function(n){var t="http.initiator";if(n&&(!n[t]||"spa_hard"===n[t]))o["ak.feo"]=void 0!==e.aFeoApplied?1:0,BOOMR.addVar(o)},rv:function(){var e=["ak.bpcip","ak.cport","ak.cr","ak.csrc","ak.gh","ak.ipv","ak.m","ak.n","ak.ol","ak.proto","ak.quicv","ak.tlsv","ak.0rtt","ak.0rtt.ed","ak.r","ak.acc","ak.t","ak.tf"];BOOMR.removeVar(e)}};BOOMR.plugins.AK={akVars:o,akDNSPreFetchDomain:a,init:function(){if(!r.i){var e=BOOMR.subscribe;e("before_beacon",r.av,null,null),e("onbeacon",r.rv,null,null),r.i=!0}return this},is_complete:function(){return!0}}}}()}(window);</script></head> <body id="wcq" class="fw-res cdc-support cdc-eot cdc-high-density cdc-full-width cdc-transform "> <div id="fw-skiplinks"> <ul class="container"> <li><a id="skiplink-content" href="#fw-content">Skip to content</a></li> <li><a id="skiplink-search" href="#">Skip to search</a></li> <li><a id="skiplink-footer" href="#fw-footer-v2" class="last">Skip to footer</a></li> </ul> </div> <script type="module" src="/site/web-components/us/en/cdc-header.js"></script> <cdc-header></cdc-header> <nav class="fw-c-header__seo-links" aria-hidden="true" style="display:none"> <ul> <li><a tabindex="-1" href="https://www.cisco.com/site/us/en/index.html">Cisco.com Worldwide</a></li> <li><a tabindex="-1" href="/c/en/us/products/index.html">Products and Services</a></li> <li><a tabindex="-1" href="https://www.cisco.com/site/us/en/solutions/index.html">Solutions</a></li> <li><a tabindex="-1" href="/c/en/us/support/index.html">Support</a></li> <li><a tabindex="-1" href="/c/en/us/training-events.html">Learn</a></li> <li><a tabindex="-1" href="//www.cisco.com/c/en/us/about/sitemap.html">Explore Cisco</a></li> <li><a tabindex="-1" href="/c/en/us/buy.html">How to Buy</a></li> <li><a tabindex="-1" href="https://www.cisco.com/site/us/en/partners/index.html?dtid=odicdc001129">Partners Home</a></li> <li><a tabindex="-1" href="https://www.cisco.com/site/us/en/partners/cisco-partner-program/index.html?ccid=cc000864&dtid=odiprc001129">Partner Program</a></li> <li><a tabindex="-1" href="https://www.cisco.com/site/us/en/partners/support-help/index.html">Support</a></li> <li><a tabindex="-1" href="https://www.cisco.com/site/us/en/partners/tools/index.html?dtid=odiprc001129">Tools</a></li> <li><a tabindex="-1" href="https://locatr.cloudapps.cisco.com/WWChannels/LOCATR/pf/index.jsp#/">Find a Cisco Partner</a></li> <li><a tabindex="-1" href="https://www.cisco.com/site/us/en/partners/connect-with-a-partner/index.html?ccid=cc000864&dtid=odiprc001129">Meet our Partners</a></li> <li><a tabindex="-1" href="https://www.cisco.com/site/us/en/partners/index.html?dtid=odicdc001129">Become a Cisco Partner</a></li> </ul> </nav> <div id="fw-content" class="container grid"> <div class="row full blowout" data-owner="ID"> <div class="col full "> <nav id="fw-breadcrumb" class="data-based" aria-label="breadcrumbs" data-owner="ID"> <ul itemscope itemtype="//schema.org/BreadcrumbList"> <li aria-hidden="true"><a href='#' class="skip"><span></span></a></li> <li itemprop='itemListElement' itemscope itemtype='//schema.org/ListItem'><a itemprop='item' href='/c/en/us/support/index.html'><span itemprop='name'>Support</span><meta itemprop='position' content='1' /></a><span class='caret'></span></li><li itemprop='itemListElement' itemscope itemtype='//schema.org/ListItem'><a itemprop='item' href='/c/en/us/tech/index.html'><span itemprop='name'>Technology Support</span><meta itemprop='position' content='2' /></a><span class='caret'></span></li><li itemprop='itemListElement' itemscope itemtype='//schema.org/ListItem'><a itemprop='item' href='/c/en/us/tech/voice/telephony-signaling/index.html'><span itemprop='name'>Telephony Signaling</span><meta itemprop='position' content='3' /></a><span class='caret'></span></li><li itemprop='itemListElement' itemscope itemtype='//schema.org/ListItem'><a itemprop='item' href='/c/en/us/tech/voice/telephony-signaling/tech-configuration-examples-list.html'><span itemprop='name'>Configuration Examples and TechNotes</span><meta itemprop='position' content='4' /></a><span class='caret'></span></li> </ul> </nav> <script> if (window.cdc === undefined) { window.cdc = {}; } if (cdc.breadcrumb === undefined) { cdc.breadcrumb = (function () { let clone = document.querySelector('#fw-breadcrumb').cloneNode(true); let appendClone = function () { let hasBreadcrumb = document.querySelector('#fw-breadcrumb') !== null, firstMarquee = document.querySelectorAll('.dmc-mq')[0]; if (!hasBreadcrumb && firstMarquee !== undefined) { firstMarquee.querySelector('.frame .inset').insertBefore(this.clone, firstMarquee.querySelector('.frame .inset').firstElementChild); } }; return { clone: clone, appendClone: appendClone } }()); } //DE380224 var anchorChild = document.getElementsByTagName("a"); for(var i=0; i<anchorChild.length; i++){ if(anchorChild[i].getAttribute("itemprop")=="item") { if ( anchorChild[i].href.includes("%3Clocale%3E") ){ let anchorChildHREF = anchorChild[i].href; let docLocale = document.querySelector('meta[name="locale"]').getAttribute('content'); let docLanguage = document.querySelector('meta[name="language"]').getAttribute('content'); var docSeparator; if ((docLocale.toLowerCase() == "us") && (docLanguage.toLowerCase() == "en")) { docSeparator="/"; } else { docSeparator="_"; } let anchorURLReplace = docLanguage.toLowerCase() + docSeparator + docLocale.toLowerCase(); anchorChildHREF = anchorChildHREF.replace("%3Clocale%3E", anchorURLReplace); anchorChild[i].setAttribute('href', anchorChildHREF); } } } </script> <h1 id="fw-pagetitle" class="" data-owner="ID">Configure Persistent Logging on IOS Platforms</h1> </div> </div> <!--googleon: index--><!--googleon: snippet--> <div class="row blowout wide-narrow-v2 visitedlinks"> <div class="col wide-v2"> <script> if (typeof(cdc) == "undefined") cdc={}; if (typeof(cdc.translations) == "undefined") cdc.translations={}; </script> <div class="docHeaderComponent base-blowout"> <div class="linksRow"> <img class="noprint tacLogo" src="/etc/designs/cdc/fw/i/TAC_lg-icon.png"/> <div class="toolbar"> <div class="noprint" id="saveModule"> <script type="text/javascript"> cdc.util.ensureNamespace("cdc.rc.savedoc"); cdc.rc.savedoc.isLoggedIn = false; cdc.rc.savedoc.save = "Save"; cdc.rc.savedoc.saved = "Saved"; </script> <button class="save" aria-expanded="false"> <label>Save</label> </button> </div> <div class="saveDocumentMessage login cdc-expandPanel" role="region" aria-live="polite"> <a href="/c/login/index.html?referer=/c/en/us/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html">Log in</a> to Save Content </div> <!-- Translation Selctor --> <!-- Translation Selector is used on EOT and Books pages. if a page has a locale of en_US then it will provide a list of avaible translations, if its a translated page (non english locale) then provide the link to the english locale. --> <div class="noprint translations"> <a href="#" tabindex="-1"> <button type="button" class="translations translations-link anchor translationOptions simpleOverlay-trigger"> <div class="toolbarIcon translationsIcon"></div><label class="iconLabel" id="onlyForNonEn">Translations</label> </button> </a> </div> <div class="noprint downloadDocument" ><button type="button" class="view-download-list-link anchor" aria-expanded="false"><div class="toolbarIcon downloadIcon"></div><label class="iconLabel">Download</label></button></div> <div class="noprint printDocument js-only"><button type="button" class="anchor printPage"><div class="toolbarIcon printIcon"></div><label class="iconLabel">Print</label></button></div> </div> </div> <!-- Where translation selector list of available languages is set up for EOT pages, for the javascript to work must have <ul id="translationsList"> </ul> --> <script language="javascript"> cdc.translations.map = "{pt-br=https://www.cisco.com/c/pt_br/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html, es-mx=https://www.cisco.com/c/es_mx/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html, ko-kr=https://www.cisco.com/c/ko_kr/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html, it-it=https://www.cisco.com/c/it_it/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html, ja-jp=https://www.cisco.com/c/ja_jp/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html, de-de=https://www.cisco.com/c/de_de/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html, fr-ca=https://www.cisco.com/c/fr_ca/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html, ar-ae=https://www.cisco.com/c/ar_ae/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html, nl-nl=https://www.cisco.com/c/nl_nl/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html, zh-tw=https://www.cisco.com/c/zh_tw/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html, zh-cn=https://www.cisco.com/c/zh_cn/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html, en-us=https://www.cisco.com/c/en/us/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html, x-default=https://www.cisco.com/c/en/us/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.html}";//storing the map for use in the JS cdc.translations.locale="en_us"; </script> <div class="availableLanguagesList"> <h3>Available Languages</h3> <ul id="translationsList"> </ul> </div> <div id="download-list-container" class="noprint panelRow" role="region" aria-live="polite"> <div class='download-list' aria-label="Download Options"> <h3>Download Options</h3> <ul> <li> <div class="fileText"> <a href="/c/en/us/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.pdf" class="download-pdf"><div class="fileIcon pdfIcon"></div>PDF</a> <span class="docSize">(29.6 KB)</span> <br /> <span class="description">View with Adobe Reader on a variety of devices</span> </div> </li> <li> <div class="fileText"> <a href="/c/en/us/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.epub" class="download-epub"><div class="fileIcon epubIcon"></div>ePub</a> <span class="docSize">(81.2 KB)</span> <br /> <span class="description">View in various apps on iPhone, iPad, Android, Sony Reader, or Windows Phone</span> </div> </li> <li> <div class="fileText"> <a href="/c/en/us/support/docs/voice/telephony-signaling/212102-Configure-Persistent-Logging-on-Cisco-IO.mobi" class="download-mobi"><div class="fileIcon mobiIcon"></div>Mobi (Kindle)</a> <span class="docSize">(66.8 KB)</span> <br /> <span class="description">View on Kindle device or Kindle app on multiple devices</span> </div> </li> </ul> </div> </div> <div class="infobarClearFix"> <div class="infobar"> <div class="updatedDate"><span>Updated:</span>May 24, 2024</div> <div class="documentId"><span>Document ID:</span>212102</div> </div> <div class="disclaimers support"> <div class="disclaimerButtons"> <div class="aboutBias"> <button aria-expanded="false" >Bias-Free Language</button> </div> </div> <div class="biasfreeContent panel"> <h3>Bias-Free Language</h3> <p>The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. <a href="https://www.cisco.com/c/en/us/about/social-justice/inclusive-language-policy.html">Learn more</a> about how Cisco is using Inclusive Language.</p> </div> </div><!-- disclaimers --> </div> </div> <script> jQuery(document).ready(function(){ if(jQuery("body").hasClass("cdc-eot-toc") && jQuery(".cdc-eot-toc").find(".DocumentHistory").length > 0){ jQuery(".cdc-eot-toc .seeRevisions").show(); if(jQuery(window).width() >= 768){ jQuery(".cdc-eot-toc .updatedDate").nextAll(".bullet").show(); } }else{ jQuery(".cdc-eot-toc .infobar .bullet").hide(); jQuery(".cdc-eot-toc .seeRevisions"); jQuery(".cdc-eot-toc .updatedDate"); } }) </script> <script src="/etc/designs/cdc/fw/clientlibs/granite-utils.min.js"></script> <script> if (window.cdc === "undefined") window.cdc={}; if (typeof cdc.rc === "undefined") cdc.rc={}; // initialize dictionary for i18n cdc.util.ensureNamespace("cdc.rc"); cdc.rc.eotkeys = { showOnly5Products : "Show Only 5 Products", showAllRowsProducts : "Show All nRows Products", supportCommunityUrl : "https://community.cisco.com/t5/technology-and-support/ct-p/technology-support", supportCommunity : "Cisco Community", thankYou : "Thank You", viewersAlso : "Customers Also Viewed", show : "Show", more : "More", showOnly3Documents: "Show Only 3 Documents" }; </script> <div id="eot-doc-wrapper"> <div class="lia-message-template-summary-zone"><div id="tg-body"><div id="support-toc"><h2>Contents</h2><div class="toc-h2"><a href="#toc-hId-1680692741">Introduction</a></div><div class="toc-h2"><a href="#toc-hId--871464220">Prerequisites</a></div><div class="toc-h3"><a href="#toc-hId-674832610">Requirements</a></div><div class="toc-h3"><a href="#toc-hId--1877324351">Components Used</a></div><div class="toc-h2"><a href="#toc-hId-1804809824">Background Information</a></div><div class="toc-h2"><a href="#toc-hId--747347137">Configure</a></div><div class="toc-h3"><a href="#toc-hId-798949693">Configuration Example</a></div><div class="toc-h2"><a href="#toc-hId--1556693763">Verify</a></div><div class="toc-h2"><a href="#toc-hId-186116572">Troubleshoot</a></div><div class="toc-h2"><a href="#toc-hId--1480763824">Related Information</a></div></div></div><div class="lia-message-template-content-zone"><p><ul =""=""></ul></p><h2 id="toc-hId-1680692741">Introduction</h2><p>This document describes how to enable system logging messages in order to save output to the router's flash disk.</p><h2 id="toc-hId--871464220">Prerequisites</h2><h3 id="toc-hId-674832610">Requirements</h3><p>Cisco suggests you have</p><ul> <ul> <li>Logging messages to an internal buffer must be enabled using logging buffered Command Line Interface (CLI)</li> <li>Enough free space on the flash disk in order to store the desired number of logging files</li> </ul> </ul><div style="border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; padding: 10px; margin-top: 20px;"><img style="margin-top: -10px;" class="custom-image-class" src="https://www.cisco.com/c/dam/en/us/td/i/templates/note.gif" border="0" alt="note-icon"/> <div style="margin-left: 38px; margin-top: -25px;"> <p><strong>Note</strong>: It is recommended to set the system clock to the correct date and time and verify router鈥檚 Central Processing Unit (CPU) utilization before and after feature activation.</p> </div> </div><h3 id="toc-hId--1877324351">Components Used</h3><p> </p><p class="ace-line"><span class="author-g-3xkiwfrlgpvse4d7">This document is not restricted to any specific software and hardware versions.</span></p><p class="ace-line"><span>The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, ensure that you understand the potential impact of any command.</span></p><h2 id="toc-hId-61999489"></h2><h2 id="toc-hId-1804809824">Background Information</h2><p>Typically, logging messages (warnings, error and/or debugs, and so on) are stored in a router's memory buffer (DRAM); when the buffer is full, older messages are overwritten by new messages. This poses an issue when trying to capture debugs for an intermittent issue or during high traffic. Huge buffer size configuration can not always help as the buffer can get filled and overwritten quickly during verbose debugging. Using persistent logging allows to write logged messages to file(s) on router's flash disk. The advantage is unlike memory buffer (DRAM) contents these files persist when the router reboots (DRAM contents are erased during a reboot.)</p><p> </p><h2 id="toc-hId--747347137">Configure</h2><p> Step 1. Enable system logging message to a local buffer:</p><p> logging buffered [buffer-size | level]</p><p>Step 2. Enable logging messages in order to write from the memory buffer to router's flash disk:</p><p> logging persistent [ batch batch-size ] { filesize logging-file-size } [ immediate ] { notify } [ protected ] { size filesystem-size } [ threshold threshold-capacity [ alert ] ] [ url { disk0:/directory | disk1:/directory } ]</p><div style="border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; padding: 10px; margin-top: 20px;"><img style="margin-top: -10px;" class="custom-image-class" src="https://www.cisco.com/c/dam/en/us/td/i/templates/note.gif" border="0" alt="note-icon"/> <div style="margin-left: 38px; margin-top: -25px;"> <p><strong>Note</strong>: Amount of disk storage allocated (filesystem-size) and size of individual logging file (logging-file-size) are specified in bytes.</p> </div> </div><p>Step 3. Enable desired debugs [optional]</p><div style="border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; padding: 10px; margin-top: 20px;"><img style="margin-top: -10px;" class="custom-image-class" src="https://www.cisco.com/c/dam/en/us/td/i/templates/note.gif" border="0" alt="note-icon"/> <div style="margin-left: 38px; margin-top: -25px;"> <p><strong>Note</strong>: The filename format is <strong>log_YYYYMMDD-HHMMSS</strong> (For example: log_20130927-112427)</p> </div> </div><h3 id="toc-hId-798949693">Configuration Example</h3><p> </p><pre> Router(config)#logging buffer 20000000 debugging<br /> Router(config)#logging persistent url flash0:/MYDEBUGS size 104857600 filesize 5242880</pre><p>The previous command creates a directory called MYDEBUGS on the router's disk 0 and allocates 104857600 bytes (100MB) disk space for log messages and specifies an individual file size of 5MB.</p><div style="border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; padding: 10px; margin-top: 20px;"><img style="margin-top: -10px;" class="custom-image-class" src="https://www.cisco.com/c/dam/en/us/td/i/templates/caut.gif" border="0" alt="caution-icon"/> <div style="margin-left: 38px; margin-top: -25px;"> <p><strong>Caution</strong>: When the allocation threshold is exceeded, the oldest log file in the directory is deleted to make room for new system logging messages.</p> </div> </div><p><strong>Copy Logging Messages to an External Device</strong></p><p>Individual files written to the flash disk can be transferred to external File Transfer Protocol /<span>Trivial File Transfer Protocol (</span>FTP/TFTP) server by use of the Cisco IOS庐 copy command:</p><p>Router# copy disk0:/MYDEBUG/log* <a href="ftp://user:passwd@" target="_blank" rel="noopener nofollow noreferrer">ftp://user:passwd@</a><ftp_server_ip_address>/</p><p>Router# copy disk0:/MYDEBUG/log* tftp://<tftp_server_ip_address>/</p><p> </p><h2 id="toc-hId--1556693763">Verify</h2><p>Use this section to confirm that your configuration works properly.</p><pre>Router#show logging Syslog logging: enabled (110977 messages dropped, 17 messages rate-limited, 0 flushes, 0 overruns, xml disabled, filtering disabled) Console logging: disabled Monitor logging: disabled Buffer logging: level debugging, 31667 messages logged, xml disabled, filtering disabled Exception Logging: size (8192 bytes) Count and timestamp logging messages: disabled Persistent logging: enabled, url flash0:/MYDEBUGS, disk space 104857600 bytes, file size 5242880 bytes, batch size 4096 bytes</pre><p> </p><pre> Router#dir flash0:MYDEBUGS<br /><br /> <span>Directory of flash0:/MYDEBUGS/<br /></span><br /><br /> <span>223 -rw- 5239168 Sep 27 2013 11:31:16 -04:00 log_20130927-112427</span><br /><span> 224 -rw- 5239631 Sep 27 2013 11:38:06 -04:00 log_20130927-113117</span><br /><span> 225 -rw- 3500757 Sep 27 2013 11:42:40 -04:00 log_20130927-113807</span></pre><h2 id="toc-hId-186116572">Troubleshoot</h2><p>There is currently no specific troubleshooting information available for this configuration.</p><p> </p><p>The<a href="https://cway.cisco.com/cli" target="_blank" rel="nofollow noopener noreferrer">Cisco CLI Analyzer</a>(<a href="http://tools.cisco.com/RPF/register/register.do" target="_blank" rel="nofollow noopener noreferrer">registered</a>customers only) supports certainshowcommands. Use the Cisco CLI Analyzer in order to view an analysis ofshowcommand output.</p><div style="border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; padding: 10px; margin-top: 20px;"><img style="margin-top: -10px;" class="custom-image-class" src="https://www.cisco.com/c/dam/en/us/td/i/templates/note.gif" border="0" alt="note-icon"/> <div style="margin-left: 38px; margin-top: -25px;"> <p><strong>Note</strong>: Refer to Important Information on Debug Commands before you use debug commands.</p> </div> </div><h2 id="toc-hId--1480763824">Related Information </h2><ul> <ul> <li><a href="https://www.cisco.com/c/en/us/support/index.html?referring_site=bodynav" target="_blank" rel="nofollow noopener noreferrer">Technical Support & Documentation - Cisco Systems</a></li> </ul> </ul></div></div><link rel="stylesheet" type="text/css" href="https://www.cisco.com/etc/designs/cdc/transformation/support-responsive.css"/> <style type="text/css"> td {border:1px solid black;} table {border:1px solid black;} </style> <cdc:do action="com.cisco.wem.framework.service.command.eotcontent.EOTResponsiveContent@2dc3fc78" returnTypedAs="eotResponsiveContainerVo" id="eotResponsiveContainerVo" /> <div class="row full visitedlinks" style="padding: 0px; margin:0px"> <div class="col full" > <!-- Revision History as a component now --> <div id="eot-revision-history"> <h3>Revision History</h3> <div style="overflow-x: auto;"> <table border="1" id="erh-table"> <tbody> <tr> <th>Revision</th> <th>Publish Date</th> <th>Comments</th> </tr> <!-- Unpublished dates are only visible for author --> <tr class="published"> <td><div align="center">2.0</div></td> <td><div align="center">24-May-2024</div></td> <td><div align="left">Changed title to remove Cisco. Added Cisco Brand Recognition. Cleared incorrect text formatting. Updated links.</div></td> </tr> <tr class="published"> <td><div align="center">1.0</div></td> <td><div align="center">17-Sep-2017</div></td> <td><div align="left">Initial Release</div></td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <script> if (window.cdc === undefined) { cdc = {}; } if (cdc.eot === undefined) { cdc.eot = {}; } cdc.eot.isEot = true; cdc.eot.isToc = false; jQuery(document).ready(function () { if (jQuery('.unpublished').length > 0) { let lastRel = "1.0"; if (jQuery('.published').length > 0) { lastRel = Number(jQuery('.published td')[0].innerText) + 1 + ".0"; } jQuery('.preview_revision').text(lastRel); } const linkItemsLen = jQuery("#eot-doc-wrapper link[rel='stylesheet']").length; function addNewTocStyleSheet() { const fileName = "/etc/designs/cdc/transformation/wemdcmt_responsive.css", linkElement = `<link rel="stylesheet" href="" type="text/css" />`; document.head.append(linkElement); } if (cdc.eot.isToc && !linkItemsLen) { addNewTocStyleSheet(); } else if (cdc.eot.isEot) { jQuery("#eot-doc-wrapper link[rel='stylesheet']").each(function () { const linkTag = jQuery(this), hrefVal = jQuery(linkTag).attr("href"); if (hrefVal != undefined && hrefVal.indexOf("support-responsive.css") == -1 && hrefVal.indexOf("_responsive.css") == -1) { let fileName = hrefVal.substr(hrefVal.lastIndexOf("/") + 1, hrefVal.length).split(".css")[0]; const filePath = "/etc/designs/cdc/transformation/"; if (fileName == "ccimr") { fileName = "techdocs_responsive"; } else if (fileName == "support-docs") { fileName = "support-responsive"; } else if (fileName == "framework") { fileName = "responsiveframework"; } else if (fileName == "dcmt") { fileName = "wemdcmt_responsive"; } else if (fileName == "techdocs_85_11_word") { fileName = "techdocs_85_11_word"; if (cdc.eot.isToc) { addNewTocStyleSheet(); } } else { fileName += "_responsive"; } jQuery(linkTag).attr("href", filePath + fileName + ".css"); } if (hrefVal.indexOf("support-responsive.css") > -1) { jQuery(linkTag).attr("href", "/etc/designs/cdc/transformation/support-responsive.css"); } }); jQuery("#eot-doc-wrapper > table").wrap("<div></div>"); jQuery("#eot-doc-wrapper table:not('.olh_note')").parent().css({ overflowX: "auto" }); } }); </script> </div> <div class="col narrow-v2"> <div class="rightRailComponent base-blowout"> <div class="eotPersonalization"> <section id="eotSupportCampaign"></section> </div> <!-- condition for support RR components --> <!-- TAC image component mandatory normal--> <div> <div class="tac-image"> <img class="eot-istac" src="/etc/designs/cdc/fw/i/TAC_lg-icon.png" alt="TAC Authored"/> </div> </div> <div class="showComponent"> <div class="eot-authors"> <h3 class="eot-authors-heading">Contributed by Cisco Engineers</h3> <ul> <li><div class="eot-authors-name">DK Singh</div><div class="eot-authors-org">Cisco TAC Engineer</div></li> <li><div class="eot-authors-name">Edited by Henry Murray and Ishan Sambhi</div><div class="eot-authors-org">Cisco TAC Engineers</div></li> </ul> </div> </div> <!-- mandatory --> <div class="eot-feedback-container"> <div class="eot-feedback"> <h3>Was this Document Helpful?</h3> <span class="eot-feedback-btnwrap"> <button class="eot-feedback-btn eot-feedback-btn-yes" aria-label="Was this Document Helpful?? Yes">Yes</button> <button class="eot-feedback-btn eot-feedback-btn-no" aria-label="Was this Document Helpful?? No">No</button> </span> <span lang="en" class="eot-feedback-olwrap"> <a href="javascript: void(0);" class="eot-feedback-ol" onclick="window.open('https://ciscocx.qualtrics.com/jfe/form/SV_dpqK8gJRAW2GHCC?Ref=' + location.href + '&resize=false', 'feedback', 'width=650, height=460, scrollbars=1, menubar=1, resizable=1'); return false;"> <img id="feedback_img" border="0" style="cursor: pointer;" title="Feedback" src="//www.cisco.com/c/dam/cdc/i/Feedback_OceanBlue.png" alt="Feedback">Feedback</a> </span> </div> </div> <div class="showComponent"> <div class="eot-vav"> <ul> </ul> </div> </div> <div class="showComponent"> <div class="eotLetUsHelp"> <h3>Contact Cisco</h3> <ul> <li><a id="eotLetUsHelpProdDocUrl" href="https://mycase.cloudapps.cisco.com/start?prodDocUrl=">Open a Support Case</a><img src="/etc/designs/cdc/fw/i/icon_lock_small.png" alt="login required"/></li> <li>(Requires a <a href="//www.cisco.com/c/en/us/services/order-services.html">Cisco Service Contract</a>)</li> </ul> </div> <script> jQuery(document).ready(function() { var getURL=jQuery("#eotLetUsHelpProdDocUrl").attr("href"), domInd = location.href.indexOf('cisco.com') ; if ( domInd > -1 && domInd < location.href.search(/\w\/\w/) ) { getURL += encodeURI(location.href); } jQuery("#eotLetUsHelpProdDocUrl").attr("href",getURL); }); </script> </div> <!-- mandatory --> <div id="eotRightRailMBox"><!--MBox--> <!-- IT:components/mbox/banner-mbox:V0.0.0 --> <div> <div class="mboxDefault"></div> <script type="text/javascript"> var test=""; if(test!=undefined && test.trim().length>0){ mboxCreate('en-us_dg_support_eot','type=default',''); }else{ mboxCreate('en-us_dg_support_eot','type=default'); } </script> </div> <!--MBox--></div> <div class="showComponent"> <div class="eot-tdatp"> <h3>This Document Applies to These Products</h3> <ul class="eot-tdatp-list"> <li><a href="/c/en/us/tech/voice/telephony-signaling/index.html">Telephony Signaling</a></li> </ul> </div> </div> <div class="showClass"> </div> </div> </div> </div> <!--googleoff: index--><!--googleoff: snippet--> <!-- end: responsive fat footer re-use wrapper--> </div> <script type="module" src="/site/web-components/us/en/cdc-footer.js"></script> <cdc-footer></cdc-footer> <script type="text/javascript"> if(document.querySelector('#privacy-manager')!=null){ document.querySelector('#privacy-manager').href='#cookies'; } </script> <div id="fw-overlay"></div> <script src="/etc/designs/cdc/fw/b/responsive/js/eot.min.js"></script> <script src="/c/dam/cdc/t/ctm.js" type="text/javascript"></script> <!-- SiteCatalyst code version: H.24.4. --> <noscript><img src="//cisco.112.2o7.net/b/ss/cisco-mobile/5/12345" width="2" height="2" border="0" alt=""/></noscript> </body> </html>