{"id":2735,"date":"2019-10-23T10:58:29","date_gmt":"2019-10-23T02:58:29","guid":{"rendered":"https:\/\/www.mondoze.com\/guide\/?post_type=kb&#038;p=2735"},"modified":"2022-10-05T08:02:01","modified_gmt":"2022-10-05T00:02:01","slug":"increase-logging-for-railgun","status":"publish","type":"kb","link":"https:\/\/www.mondoze.com\/guide\/kb\/increase-logging-for-railgun","title":{"rendered":"How to Increase Logging for Railgun"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"2735\" class=\"elementor elementor-2735\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-32d3f5cc elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"32d3f5cc\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-36bd3fd4\" data-id=\"36bd3fd4\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c876d2c elementor-widget elementor-widget-heading\" data-id=\"c876d2c\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How To Increase Logging for Railgun<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-492ac471 elementor-widget elementor-widget-text-editor\" data-id=\"492ac471\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>When troubleshooting or testing the Railgun Listener, it may be necessary to raise the level of verbosity to capture more log data for debugging.\u00a0<\/p><p>In order to increase logging, the\u00a0<code>log.level<\/code>\u00a0within\u00a0<code>railgun.conf<\/code>\u00a0should be set to\u00a0<strong>5<\/strong>\u00a0in order for all events within the Listener instance to be captured during troubleshooting.<\/p><p>*The Railgun service running on the server will also need to be restarted for changes to take affect:<br \/><code>\u00a0 service railgun restart<\/code><\/p><p>The log files for Railgun can be found in the following locations for each supported operating system:<\/p><p><strong>Debian\/UbuntuDefault Location:\u00a0<\/strong><code><strong>\/var\/log\/syslog<\/strong><\/code><\/p><p>*Note: When the\u00a0<code>log.level<\/code>\u00a0set to\u00a0<strong>5<\/strong>\u00a0in\u00a0<code>railgun.conf<\/code>, no further action is needed to have very verbose logs appear in syslog.<\/p><p><strong>CentOS\/RHELDefault Location:\u00a0<\/strong><code><strong>\/var\/log\/messages<\/strong><\/code>Default Location:\u00a0<code>\/var\/log\/messages<\/code><\/p><p>By default, CentOS and RHEL omit many logs from \/messages. A few extra steps are need to achieve the same level of verbosity as Debian\/Ubuntu:<\/p><p>1. \u00a0 \u00a0Editing \/etc\/rsyslog.conf so that the line that reads:<\/p><div data-hasbody=\"true\" data-macro-name=\"noformat\"><pre>*.info;mail.none;authpriv.none;cron.none \/var\/log\/messages<\/pre><\/div><p>is update to be:<\/p><div data-hasbody=\"true\" data-macro-name=\"noformat\"><pre>*.* \/var\/log\/messages<\/pre><\/div><p>*Note: This can be done by commenting out the default line and adding this on a new line below it. Or this can be a new log file if you choose.<\/p><p>2. \u00a0 \u00a0Restarting rsyslog and Railgun services. This may need to be done with sudo or as root:<\/p><div data-hasbody=\"true\" data-macro-name=\"noformat\"><pre>service rsyslog restart \nservice railgun restart<\/pre><\/div><p>*If Railgun or memcached fails over\/crashes, logs can be found under\u00a0<code>\/var\/log\/railgun\/panic.log<\/code><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>How To Increase Logging for Railgun When troubleshooting or testing the Railgun Listener, it may be necessary to raise the level of verbosity to capture more log data for debugging.\u00a0 In order to increase logging, the\u00a0log.level\u00a0within\u00a0railgun.conf\u00a0should be set to\u00a05\u00a0in order for all events within the Listener instance to be captured during troubleshooting. *The Railgun service &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.mondoze.com\/guide\/kb\/increase-logging-for-railgun\"> <span class=\"screen-reader-text\">How to Increase Logging for Railgun<\/span> Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[53],"kbtag":[110],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2735"}],"collection":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/comments?post=2735"}],"version-history":[{"count":6,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2735\/revisions"}],"predecessor-version":[{"id":18782,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2735\/revisions\/18782"}],"wp:attachment":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/media?parent=2735"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=2735"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtag?post=2735"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=2735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}