<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do you enable debug logging for scripted input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-enable-debug-logging-for-scripted-input/m-p/70486#M14337</link>
    <description>&lt;P&gt;Have a look at &lt;A href="https://answers.splunk.com/answers/9917/how-to-debug-scripts-execution.html"&gt;https://answers.splunk.com/answers/9917/how-to-debug-scripts-execution.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Besides setting it through System settings » System logging » &lt;STRONG&gt;ExecProcessor&lt;/STRONG&gt;, you can also turn this on at the command line thusly:&lt;/P&gt;

&lt;P&gt;Turn debug on:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    `$ splunk set log-level ExecProcessor -level DEBUG`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set it back:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    `$ splunk set log-level ExecProcessor -level INFO`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See what it is set to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    `$ splunk show log-level ExecProcessor`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can use the splunk command at the command line anywhere because I have this in my .bashrc:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    alias splunk=/opt/splunk/bin/splunk
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 22 Mar 2017 20:42:03 GMT</pubDate>
    <dc:creator>wrangler2x</dc:creator>
    <dc:date>2017-03-22T20:42:03Z</dc:date>
    <item>
      <title>How do you enable debug logging for scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-enable-debug-logging-for-scripted-input/m-p/70482#M14333</link>
      <description>&lt;P&gt;I am trying to debug a scripted input that isn't running when it should and I want to enable debug logging.  When I look at log.cfg there are about 40 settings under splunkd, which one(s) needs to be changed enable this logging?  On a side note I stopped splunk and started with the debug flag (service start splunk --debug), but this didn't seem to do anything.  &lt;/P&gt;

&lt;P&gt;Universal Forwarder&lt;BR /&gt;
4.2.2&lt;BR /&gt;
Build 101277&lt;/P&gt;

&lt;P&gt;Thanks for any assistance...&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2012 17:46:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-enable-debug-logging-for-scripted-input/m-p/70482#M14333</guid>
      <dc:creator>kbecker</dc:creator>
      <dc:date>2012-02-12T17:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do you enable debug logging for scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-enable-debug-logging-for-scripted-input/m-p/70483#M14334</link>
      <description>&lt;P&gt;This is relevant in terms of setting the actual debug setting -- &lt;A href="http://splunk-base.splunk.com/answers/33942/how-can-i-change-the-debug-level-on-a-universal-forwarder"&gt;http://splunk-base.splunk.com/answers/33942/how-can-i-change-the-debug-level-on-a-universal-forwarder&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Some of the logging objects that would seem to be relevant (simply based on scanning them by name) would be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/server/logger/ScriptRunner
/server/logger/script
/server/logger/SchedulerLauncherProcessor
/server/logger/ProcessRunner
/server/logger/ProcessTracker
/server/logger/ExecProcessor
/server/logger/CronScheduler
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would probably try experimenting with each of these in turn to see which combination gives you the debug output you need.  The nice thing about enabling these as REST calls is that you don't have to restart splunkd inbetween.  But, these settings are not persisted - they'll be undone when you do restart splunkd.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2012 18:35:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-enable-debug-logging-for-scripted-input/m-p/70483#M14334</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2012-02-12T18:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do you enable debug logging for scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-enable-debug-logging-for-scripted-input/m-p/70484#M14335</link>
      <description>&lt;P&gt;This is via the Rest API.  I don't see any of these in the log.cfg config file.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2012 15:40:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-enable-debug-logging-for-scripted-input/m-p/70484#M14335</guid>
      <dc:creator>kbecker</dc:creator>
      <dc:date>2012-02-13T15:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do you enable debug logging for scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-enable-debug-logging-for-scripted-input/m-p/70485#M14336</link>
      <description>&lt;P&gt;That is correct.  These are all REST logging config endpoints.  I would not expect them to appear in log.cfg.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2012 16:58:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-enable-debug-logging-for-scripted-input/m-p/70485#M14336</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2012-02-13T16:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do you enable debug logging for scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-enable-debug-logging-for-scripted-input/m-p/70486#M14337</link>
      <description>&lt;P&gt;Have a look at &lt;A href="https://answers.splunk.com/answers/9917/how-to-debug-scripts-execution.html"&gt;https://answers.splunk.com/answers/9917/how-to-debug-scripts-execution.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Besides setting it through System settings » System logging » &lt;STRONG&gt;ExecProcessor&lt;/STRONG&gt;, you can also turn this on at the command line thusly:&lt;/P&gt;

&lt;P&gt;Turn debug on:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    `$ splunk set log-level ExecProcessor -level DEBUG`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set it back:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    `$ splunk set log-level ExecProcessor -level INFO`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See what it is set to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    `$ splunk show log-level ExecProcessor`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can use the splunk command at the command line anywhere because I have this in my .bashrc:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    alias splunk=/opt/splunk/bin/splunk
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Mar 2017 20:42:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-enable-debug-logging-for-scripted-input/m-p/70486#M14337</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2017-03-22T20:42:03Z</dc:date>
    </item>
  </channel>
</rss>

