<?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 take index names from a CSV file and run a stats count on the listed index names? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-take-index-names-from-a-CSV-file-and-run-a-stats-count-on/m-p/214195#M62821</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;you can use a subsearch:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[| inputlookup myindexes.csv | table index] | rest of your search
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this example, imagine there is a csv file with a column "index" and in this column you list all your indexes.&lt;BR /&gt;
The subsearch is resolved like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=index1 OR index2 ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk interprets your search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index1 OR index=index2 ... | rest of your search
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Greetings&lt;/P&gt;

&lt;P&gt;Tom&lt;/P&gt;</description>
    <pubDate>Fri, 04 Sep 2015 06:51:30 GMT</pubDate>
    <dc:creator>tom_frotscher</dc:creator>
    <dc:date>2015-09-04T06:51:30Z</dc:date>
    <item>
      <title>How to take index names from a CSV file and run a stats count on the listed index names?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-take-index-names-from-a-CSV-file-and-run-a-stats-count-on/m-p/214194#M62820</link>
      <description>&lt;P&gt;I need to find various information (counts, last and first event received time, etc) on indexes listed in a CSV file. There will be a time when index names will be added and hence, I don't want to hardcode my search with index names. I want to keep them in CSV so its easy to update.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2015 05:40:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-take-index-names-from-a-CSV-file-and-run-a-stats-count-on/m-p/214194#M62820</guid>
      <dc:creator>varad_joshi</dc:creator>
      <dc:date>2015-09-04T05:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to take index names from a CSV file and run a stats count on the listed index names?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-take-index-names-from-a-CSV-file-and-run-a-stats-count-on/m-p/214195#M62821</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;you can use a subsearch:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[| inputlookup myindexes.csv | table index] | rest of your search
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this example, imagine there is a csv file with a column "index" and in this column you list all your indexes.&lt;BR /&gt;
The subsearch is resolved like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=index1 OR index2 ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk interprets your search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index1 OR index=index2 ... | rest of your search
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Greetings&lt;/P&gt;

&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2015 06:51:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-take-index-names-from-a-CSV-file-and-run-a-stats-count-on/m-p/214195#M62821</guid>
      <dc:creator>tom_frotscher</dc:creator>
      <dc:date>2015-09-04T06:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to take index names from a CSV file and run a stats count on the listed index names?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-take-index-names-from-a-CSV-file-and-run-a-stats-count-on/m-p/214196#M62822</link>
      <description>&lt;P&gt;Thanks Tom, first option worked flawlessly. Appreciate your help.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2015 03:53:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-take-index-names-from-a-CSV-file-and-run-a-stats-count-on/m-p/214196#M62822</guid>
      <dc:creator>varad_joshi</dc:creator>
      <dc:date>2015-09-08T03:53:21Z</dc:date>
    </item>
  </channel>
</rss>

