<?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 No output from modular input_ta in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/No-output-from-modular-input-ta/m-p/111822#M23414</link>
    <description>&lt;P&gt;I cant seem to get my modular input to write anything when I package, import, and run it. I have created a scripted input that works great. It queries some endpoints and write some formatted data to Splunk. I am trying to turn it into a modular input.&lt;/P&gt;

&lt;P&gt;I am using modular input framework from @damien-dallimore. I package the app, load it, and get nothing. In my main do_run() it is using print to write out data but nothing appears in Splunk. I get no errors in splunkd, and no logging messages. The only thing i see in splunkd is:&lt;/P&gt;

&lt;P&gt;10-23-2013 08:41:59.661 -0700 INFO  ExecProcessor - Ran script: python "C:\Program Files\Splunk\etc\apps\Appname_ta\bin\Appname.py", took 17.01 seconds to run, 0 bytes read&lt;/P&gt;

&lt;P&gt;I tried inserting some logging as shown here and even that doesn't show up.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;if __name__ == '__main__':&lt;BR /&gt;
    logging.error("running the main thread")&lt;BR /&gt;
    if len(sys.argv) &amp;gt; 1:&lt;BR /&gt;
        if sys.argv[1] == "--scheme":&lt;BR /&gt;
            logging.error("scheme present, running scheme")&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Any idea on what my next debugging step might be?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2013 16:03:18 GMT</pubDate>
    <dc:creator>kkentsplunk</dc:creator>
    <dc:date>2013-10-23T16:03:18Z</dc:date>
    <item>
      <title>No output from modular input_ta</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/No-output-from-modular-input-ta/m-p/111822#M23414</link>
      <description>&lt;P&gt;I cant seem to get my modular input to write anything when I package, import, and run it. I have created a scripted input that works great. It queries some endpoints and write some formatted data to Splunk. I am trying to turn it into a modular input.&lt;/P&gt;

&lt;P&gt;I am using modular input framework from @damien-dallimore. I package the app, load it, and get nothing. In my main do_run() it is using print to write out data but nothing appears in Splunk. I get no errors in splunkd, and no logging messages. The only thing i see in splunkd is:&lt;/P&gt;

&lt;P&gt;10-23-2013 08:41:59.661 -0700 INFO  ExecProcessor - Ran script: python "C:\Program Files\Splunk\etc\apps\Appname_ta\bin\Appname.py", took 17.01 seconds to run, 0 bytes read&lt;/P&gt;

&lt;P&gt;I tried inserting some logging as shown here and even that doesn't show up.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;if __name__ == '__main__':&lt;BR /&gt;
    logging.error("running the main thread")&lt;BR /&gt;
    if len(sys.argv) &amp;gt; 1:&lt;BR /&gt;
        if sys.argv[1] == "--scheme":&lt;BR /&gt;
            logging.error("scheme present, running scheme")&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Any idea on what my next debugging step might be?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2013 16:03:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/No-output-from-modular-input-ta/m-p/111822#M23414</guid>
      <dc:creator>kkentsplunk</dc:creator>
      <dc:date>2013-10-23T16:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: No output from modular input_ta</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/No-output-from-modular-input-ta/m-p/111823#M23415</link>
      <description>&lt;P&gt;Try running this, replacing the $MI$ variable with the name of your modualar input:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;splunk cmd splunkd print-modinput-config $MI$ $MI$://$YOUR_CONF_STANZA$ \&lt;BR /&gt;
   | splunk cmd python $SPLUNK_HOME/etc/apps/$YOUR_APP$/bin/$YOUR_APP$.py&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2013 17:28:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/No-output-from-modular-input-ta/m-p/111823#M23415</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-10-23T17:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: No output from modular input_ta</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/No-output-from-modular-input-ta/m-p/111824#M23416</link>
      <description>&lt;P&gt;Just to add.....&lt;/P&gt;

&lt;P&gt;Is your logging level set to ERROR ? &lt;/P&gt;

&lt;P&gt;logging.root.setLevel(logging.ERROR)&lt;/P&gt;

&lt;P&gt;Also there is a also a "helloworld" example you can use and build out from : &lt;A href="https://github.com/damiendallimore/SplunkModularInputsPythonFramework/tree/master/implementations/helloworld"&gt;https://github.com/damiendallimore/SplunkModularInputsPythonFramework/tree/master/implementations/helloworld&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2013 05:05:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/No-output-from-modular-input-ta/m-p/111824#M23416</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2013-10-24T05:05:28Z</dc:date>
    </item>
  </channel>
</rss>

