<?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 to debug scripts execution? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-scripts-execution/m-p/105352#M22191</link>
    <description>&lt;P&gt;I usually go to the Manager-&amp;gt;System settings-&amp;gt;System logging view change the ExecProcessor to DEBUG mode.
Then I usually search ... index=_internal execprocessor to see if Splunk is running the script.
Example I have a ps.sh script running in the UNIX app. Splunk is picking it up as you see below..&lt;/P&gt;

&lt;P&gt;9:55:21.288 AM&lt;BR /&gt;
01-07-2011 09:55:21.288 INFO  ExecProcessor - Ran script: /home/rrpdfserver/opt/splunk/etc/apps/unix/bin/ps.sh, took 30.86 milliseconds to run, 17392 bytes read
host=class2.splunk.com   Options|  sourcetype=splunkd   Options|  source=/home/rrpdfserver/opt/splunk/var/log/splunk/splunkd.log   Options
2&lt;BR /&gt;
1/7/11
9:55:21.255 AM&lt;BR /&gt;
01-07-2011 09:55:21.255 DEBUG ExecProcessor - Running: /home/rrpdfserver/opt/splunk/etc/apps/unix/bin/ps.sh
host=class2.splunk.com   Options|  sourcetype=splunkd   Options|  source=/home/rrpdfserver/opt/splunk/var/log/splunk/splunkd.log   Options&lt;/P&gt;</description>
    <pubDate>Sat, 08 Jan 2011 02:04:46 GMT</pubDate>
    <dc:creator>rroberts</dc:creator>
    <dc:date>2011-01-08T02:04:46Z</dc:date>
    <item>
      <title>How to debug scripts execution?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-scripts-execution/m-p/105351#M22190</link>
      <description>&lt;P&gt;I am trying to debug a loadData.sh scripts, and I do not see output added to Splunk.&lt;/P&gt;

&lt;P&gt;What is the best way to debug it, to understand if the script is invoked correctly from Splunk, and where the data is stored?&lt;/P&gt;

&lt;P&gt;Thanks,
Jean&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2010 04:15:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-scripts-execution/m-p/105351#M22190</guid>
      <dc:creator>JeanD</dc:creator>
      <dc:date>2010-12-16T04:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug scripts execution?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-scripts-execution/m-p/105352#M22191</link>
      <description>&lt;P&gt;I usually go to the Manager-&amp;gt;System settings-&amp;gt;System logging view change the ExecProcessor to DEBUG mode.
Then I usually search ... index=_internal execprocessor to see if Splunk is running the script.
Example I have a ps.sh script running in the UNIX app. Splunk is picking it up as you see below..&lt;/P&gt;

&lt;P&gt;9:55:21.288 AM&lt;BR /&gt;
01-07-2011 09:55:21.288 INFO  ExecProcessor - Ran script: /home/rrpdfserver/opt/splunk/etc/apps/unix/bin/ps.sh, took 30.86 milliseconds to run, 17392 bytes read
host=class2.splunk.com   Options|  sourcetype=splunkd   Options|  source=/home/rrpdfserver/opt/splunk/var/log/splunk/splunkd.log   Options
2&lt;BR /&gt;
1/7/11
9:55:21.255 AM&lt;BR /&gt;
01-07-2011 09:55:21.255 DEBUG ExecProcessor - Running: /home/rrpdfserver/opt/splunk/etc/apps/unix/bin/ps.sh
host=class2.splunk.com   Options|  sourcetype=splunkd   Options|  source=/home/rrpdfserver/opt/splunk/var/log/splunk/splunkd.log   Options&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jan 2011 02:04:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-scripts-execution/m-p/105352#M22191</guid>
      <dc:creator>rroberts</dc:creator>
      <dc:date>2011-01-08T02:04:46Z</dc:date>
    </item>
  </channel>
</rss>

