<?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: index in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/index/m-p/672690#M18199</link>
    <description>&lt;P&gt;The "No results found" message is from a search so it would seem you were successful in uploading your script ("tried" implies failure).&amp;nbsp; Failure to data in a search does not mean the data did not get ingested.&amp;nbsp; So, let's unpack this problem.&lt;/P&gt;&lt;P&gt;First, confirm the script works in the Splunk environment by using this command&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk cmd python &amp;lt;&amp;lt;your .py file&amp;gt;&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Once that works, verify the scripted input is configured properly and is not disabled.&amp;nbsp; Make a note of the index and sourcetype specified in the input.&amp;nbsp; Confirm the index exists on the indexers and that the sourcetype is defined in a props.conf file, also on the indexers.&amp;nbsp; The props.conf settings must ensure timestamps are correctly extracted from the data provided by the script.&amp;nbsp; Without a good timestamp, the data may be indexed, but be undiscoverable.&lt;/P&gt;&lt;P&gt;Wait for the script to run.&amp;nbsp; Then, using the noted index and sourcetype, search for the data.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo sourcetype=bar earliest=-24h&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Please let us know which part of these steps fails.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Dec 2023 17:49:06 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-12-26T17:49:06Z</dc:date>
    <item>
      <title>index</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/index/m-p/672594#M18179</link>
      <description>&lt;P&gt;Hello Experts,&lt;BR /&gt;&lt;BR /&gt;I'm facing challenge where I need to automatically load data from Python script results into a metric index in Splunk. I&lt;SPAN&gt;s it possible? I'd appreciate any guidance or examples how to achieve this?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 09:36:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/index/m-p/672594#M18179</guid>
      <dc:creator>Muthu_Vinith</dc:creator>
      <dc:date>2023-12-22T09:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: index</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/index/m-p/672607#M18182</link>
      <description>&lt;P&gt;Data sent to a metrics index must be in a particular format.&amp;nbsp; See &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/9.1.2308/Metrics/GetMetricsInOther" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/9.1.2308/Metrics/GetMetricsInOther&lt;/A&gt; for the specifics.&lt;/P&gt;&lt;P&gt;You should be able to set up the script as a scripted input that writes CSV data to stdout.&amp;nbsp; Splunk will index anything sent to stdout.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 14:29:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/index/m-p/672607#M18182</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-12-22T14:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: index</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/index/m-p/672677#M18193</link>
      <description>&lt;P&gt;I tried to upload a&amp;nbsp; .py file for Data Inputs - Scripts in Splunk for searching, but i can't get results. My sourcetype is CSV. How can I fix this?&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 08:06:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/index/m-p/672677#M18193</guid>
      <dc:creator>Muthu_Vinith</dc:creator>
      <dc:date>2023-12-26T08:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: index</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/index/m-p/672684#M18196</link>
      <description>&lt;P&gt;Give us more information to work with.&amp;nbsp; How did you try to upload the .py file?&amp;nbsp; To which instance did you upload it?&amp;nbsp; Where on that instance did you try to put&amp;nbsp; it?&amp;nbsp; What error did you get?&lt;/P&gt;&lt;P&gt;Scripts can be installed in $SPLUNK_HOME/etc/bin or $SPLUNK_HOME/etc/&amp;lt;app&amp;gt;/bin on any instance, but not in a cluster.&amp;nbsp; Use a heavy forwarder for the script if you have both search head and indexer clusters.&amp;nbsp; Once the script file is installed in the right place you can use the GUI to define an input to use that script.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 15:25:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/index/m-p/672684#M18196</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-12-26T15:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: index</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/index/m-p/672686#M18197</link>
      <description>&lt;P&gt;I've tried both methods for installing scripts. However, I'm getting an error No Results found. But when I run the python file, I can get results and it download as excel file.&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 17:02:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/index/m-p/672686#M18197</guid>
      <dc:creator>Muthu_Vinith</dc:creator>
      <dc:date>2023-12-26T17:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: index</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/index/m-p/672690#M18199</link>
      <description>&lt;P&gt;The "No results found" message is from a search so it would seem you were successful in uploading your script ("tried" implies failure).&amp;nbsp; Failure to data in a search does not mean the data did not get ingested.&amp;nbsp; So, let's unpack this problem.&lt;/P&gt;&lt;P&gt;First, confirm the script works in the Splunk environment by using this command&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk cmd python &amp;lt;&amp;lt;your .py file&amp;gt;&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Once that works, verify the scripted input is configured properly and is not disabled.&amp;nbsp; Make a note of the index and sourcetype specified in the input.&amp;nbsp; Confirm the index exists on the indexers and that the sourcetype is defined in a props.conf file, also on the indexers.&amp;nbsp; The props.conf settings must ensure timestamps are correctly extracted from the data provided by the script.&amp;nbsp; Without a good timestamp, the data may be indexed, but be undiscoverable.&lt;/P&gt;&lt;P&gt;Wait for the script to run.&amp;nbsp; Then, using the noted index and sourcetype, search for the data.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo sourcetype=bar earliest=-24h&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Please let us know which part of these steps fails.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 17:49:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/index/m-p/672690#M18199</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-12-26T17:49:06Z</dc:date>
    </item>
  </channel>
</rss>

