<?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 fill_summary_index.py how to locate and run this script in splunks file directory in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/fill-summary-index-py-how-to-locate-and-run-this-script-in/m-p/35775#M178520</link>
    <description>&lt;P&gt;Hi together,&lt;BR /&gt;
I have found the following fill_summray_index.py script under: &lt;A href="http://wiki.splunk.com/Community:Summary_Indexing_Back_Fill" target="_blank"&gt;http://wiki.splunk.com/Community:Summary_Indexing_Back_Fill&lt;/A&gt;&lt;BR /&gt;
I have customized it and now I have 2 questions:&lt;BR /&gt;
Where do I locate the script?&lt;BR /&gt;
How do I run the script?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:34:50 GMT</pubDate>
    <dc:creator>dirkbaumann</dc:creator>
    <dc:date>2020-09-28T14:34:50Z</dc:date>
    <item>
      <title>fill_summary_index.py how to locate and run this script in splunks file directory</title>
      <link>https://community.splunk.com/t5/Splunk-Search/fill-summary-index-py-how-to-locate-and-run-this-script-in/m-p/35775#M178520</link>
      <description>&lt;P&gt;Hi together,&lt;BR /&gt;
I have found the following fill_summray_index.py script under: &lt;A href="http://wiki.splunk.com/Community:Summary_Indexing_Back_Fill" target="_blank"&gt;http://wiki.splunk.com/Community:Summary_Indexing_Back_Fill&lt;/A&gt;&lt;BR /&gt;
I have customized it and now I have 2 questions:&lt;BR /&gt;
Where do I locate the script?&lt;BR /&gt;
How do I run the script?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:34:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/fill-summary-index-py-how-to-locate-and-run-this-script-in/m-p/35775#M178520</guid>
      <dc:creator>dirkbaumann</dc:creator>
      <dc:date>2020-09-28T14:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: fill_summary_index.py how to locate and run this script in splunks file directory</title>
      <link>https://community.splunk.com/t5/Splunk-Search/fill-summary-index-py-how-to-locate-and-run-this-script-in/m-p/35776#M178521</link>
      <description>&lt;P&gt;Are you running this on a unix server?  I'll assume so, mainly because that is what I am familiar with - if it is Windows then I am not so sure.  The script doesn't have to be anywhere special, you just need access to the &lt;EM&gt;splunk&lt;/EM&gt; and &lt;EM&gt;python&lt;/EM&gt; commands via your path.&lt;/P&gt;

&lt;P&gt;You should be the user that the splunk application is installed as (so log in as that user, sudo to it, etc), and the &lt;EM&gt;splunk&lt;/EM&gt; command should be in your path (i.e. the one installed in &lt;EM&gt;[SPLUNK_HOME]/bin/&lt;/EM&gt;).  Finally, &lt;EM&gt;python&lt;/EM&gt; should be in your path, too - chances are they &lt;EM&gt;python&lt;/EM&gt; you will be using is in &lt;EM&gt;[SPLUNK_HOME]/bin/&lt;/EM&gt; as well.&lt;/P&gt;

&lt;P&gt;You can check from the command line where &lt;EM&gt;splunk&lt;/EM&gt; and &lt;EM&gt;python&lt;/EM&gt; are by doing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;which splunk
which python
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Both of those should return you the path where those are.  Now you can run the script from any location you want - all the script does is iteratively invoke the &lt;EM&gt;splunk&lt;/EM&gt; CLI with your search for the interval/time-range you modified the script to be in.  That would be something like the following command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;python mySummaryScript.py
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;One suggestion if you haven't done it already - create another copy of your script that only summarizes 3 or 4 intervals over a smaller time range.  Then have the script just dump this into &lt;EM&gt;index=summary&lt;/EM&gt;.  Run that one first, wait a few minutes for the summary data to show up, and then verify in &lt;EM&gt;index=summary&lt;/EM&gt; that things look good before running your full script that populates your real summary index.  This way you don't inadvertently put in bad data to your real summary if you have a typo.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2013 15:30:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/fill-summary-index-py-how-to-locate-and-run-this-script-in/m-p/35776#M178521</guid>
      <dc:creator>jhupka</dc:creator>
      <dc:date>2013-08-15T15:30:44Z</dc:date>
    </item>
  </channel>
</rss>

