<?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: Why are we unable to index data to Splunk enterprise using Splunk addon? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-unable-to-index-data-to-Splunk-enterprise-using/m-p/381034#M95216</link>
    <description>&lt;P&gt;Hi @bhuvanabala , Could you please let me know what did you do fix the issue as I got stuck into the same situation and events are showing as 0 for the index though it's is displaying the event in output console?&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2020 20:23:21 GMT</pubDate>
    <dc:creator>suryajagarapu</dc:creator>
    <dc:date>2020-03-19T20:23:21Z</dc:date>
    <item>
      <title>Why are we unable to index data to Splunk enterprise using Splunk addon?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-unable-to-index-data-to-Splunk-enterprise-using/m-p/381029#M95211</link>
      <description>&lt;P&gt;I am new to Splunk addon builder. I am using splunk addon builder to build an addon that feeds the REST API response as input to Splunk enterprise. For this i am using Python modular input method. Since REST API modular input one of the data collection input doesnt supports Oauth2.0 we are using python modular input to get the REST API response &lt;/P&gt;

&lt;P&gt;Before i feed the response to splunk enterprise, tried feeding some sample data using the below syntax &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   def collect_events(helper, ew):
    event=helper.new_event(data="123",index="new_index",sourcetype="new_sourcetyp e)   
     ew.write_event(event)
     pass
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am able to print the output in console, but when i search for index="new_index" in search bar, its returing 0 events&lt;/P&gt;

&lt;P&gt;Please let me know what i am missing here&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 06:02:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-unable-to-index-data-to-Splunk-enterprise-using/m-p/381029#M95211</guid>
      <dc:creator>bhuvanabala</dc:creator>
      <dc:date>2019-05-22T06:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we unable to index data to Splunk enterprise using Splunk addon?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-unable-to-index-data-to-Splunk-enterprise-using/m-p/381030#M95212</link>
      <description>&lt;P&gt;where are you writing the events to ?&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 06:32:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-unable-to-index-data-to-Splunk-enterprise-using/m-p/381030#M95212</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-05-22T06:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we unable to index data to Splunk enterprise using Splunk addon?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-unable-to-index-data-to-Splunk-enterprise-using/m-p/381031#M95213</link>
      <description>&lt;P&gt;Hi David, &lt;/P&gt;

&lt;P&gt;Thanks for responding back.&lt;/P&gt;

&lt;P&gt;I am tring to index the data under "new_index"(index name) and searched for the event in Search and Reporting App&lt;/P&gt;

&lt;P&gt;Should i specify the App in the new_event() function&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 06:37:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-unable-to-index-data-to-Splunk-enterprise-using/m-p/381031#M95213</guid>
      <dc:creator>bhuvanabala</dc:creator>
      <dc:date>2019-05-22T06:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we unable to index data to Splunk enterprise using Splunk addon?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-unable-to-index-data-to-Splunk-enterprise-using/m-p/381032#M95214</link>
      <description>&lt;P&gt;Hi @bhuvanabala,&lt;/P&gt;

&lt;P&gt;You can use the following link for reference :&lt;BR /&gt;
&lt;A href="http://dev.splunk.com/view/python-sdk/SP-CAAAEE6"&gt;http://dev.splunk.com/view/python-sdk/SP-CAAAEE6&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;There's an entire section about creating indexes and sending data there.&lt;/P&gt;

&lt;P&gt;Also use this : &lt;BR /&gt;
&lt;A href="https://www.function1.com/2015/09/splunk-sdk-for-python-getting-data-in"&gt;https://www.function1.com/2015/09/splunk-sdk-for-python-getting-data-in&lt;/A&gt;&lt;BR /&gt;
It's a bit old but can still be used for reference.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 07:00:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-unable-to-index-data-to-Splunk-enterprise-using/m-p/381032#M95214</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-05-22T07:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we unable to index data to Splunk enterprise using Splunk addon?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-unable-to-index-data-to-Splunk-enterprise-using/m-p/381033#M95215</link>
      <description>&lt;P&gt;I am also facing the same issue as the events are getting displayed in output console of AOB but it's showing zero events for the index.&lt;BR /&gt;
Any thoughts please?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 19:05:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-unable-to-index-data-to-Splunk-enterprise-using/m-p/381033#M95215</guid>
      <dc:creator>suryajagarapu</dc:creator>
      <dc:date>2020-03-19T19:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we unable to index data to Splunk enterprise using Splunk addon?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-unable-to-index-data-to-Splunk-enterprise-using/m-p/381034#M95216</link>
      <description>&lt;P&gt;Hi @bhuvanabala , Could you please let me know what did you do fix the issue as I got stuck into the same situation and events are showing as 0 for the index though it's is displaying the event in output console?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 20:23:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-unable-to-index-data-to-Splunk-enterprise-using/m-p/381034#M95216</guid>
      <dc:creator>suryajagarapu</dc:creator>
      <dc:date>2020-03-19T20:23:21Z</dc:date>
    </item>
  </channel>
</rss>

