<?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: One source of truth in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/One-source-of-truth/m-p/541568#M153335</link>
    <description>&lt;P&gt;The problem with the existing query is the search command is looking in the default indexes for the literal string "index=bunny_index OR index=jackrabbit_index", which seems unlikely to be found.&amp;nbsp; Try using the &lt;FONT face="courier new,courier"&gt;return&lt;/FONT&gt; command to extract the value of the index_list field.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=* [| inputlookup mycsvfile where type=rabbits | return $index_list]
| ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2021 18:54:55 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-02-26T18:54:55Z</dc:date>
    <item>
      <title>One source of truth</title>
      <link>https://community.splunk.com/t5/Splunk-Search/One-source-of-truth/m-p/541563#M153331</link>
      <description>&lt;P&gt;I have an app with dozens of searches that refer to "groupings" of indexes based on several types of criteria. I would like to have one "source of truth" for each grouping so when a index is retired and new ones are added I can just edit one thing instead of dozens of searches.&amp;nbsp; I have tried using a csv lookup but am having problems getting the search to work. Here is a simplified example of the csv file:&lt;/P&gt;&lt;P&gt;type,index_list&lt;BR /&gt;rabbits,index="bunny_index" OR index="jackrabbit_index"&lt;BR /&gt;stones,index="turquoise" OR index="slate"&lt;BR /&gt;dogs,index="spaniels" OR index="hounds"&lt;BR /&gt;all,index="bunny_index" OR index="jackrabbit_index" OR index="turquoise" OR index="slate" OR index="spaniels" OR index="hounds"&lt;BR /&gt;mammals="bunny_index" OR index="jackrabbit_index" OR "spaniels" OR index="hounds"&lt;/P&gt;&lt;P&gt;I have tried running:&lt;/P&gt;&lt;P&gt;| inputlookup mycsvfile where type=rabbits&amp;nbsp;&amp;nbsp; | search index_list&lt;/P&gt;&lt;P&gt;but I get "No results found." (If I run index="bunny_index" OR index="jackrabbit_index" I do get results).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Grabbing that list of indexes to search from a centralized location would be a huge improvement over our current setup so any input would be very much appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 18:04:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/One-source-of-truth/m-p/541563#M153331</guid>
      <dc:creator>drezanka</dc:creator>
      <dc:date>2021-02-26T18:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: One source of truth</title>
      <link>https://community.splunk.com/t5/Splunk-Search/One-source-of-truth/m-p/541568#M153335</link>
      <description>&lt;P&gt;The problem with the existing query is the search command is looking in the default indexes for the literal string "index=bunny_index OR index=jackrabbit_index", which seems unlikely to be found.&amp;nbsp; Try using the &lt;FONT face="courier new,courier"&gt;return&lt;/FONT&gt; command to extract the value of the index_list field.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=* [| inputlookup mycsvfile where type=rabbits | return $index_list]
| ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 18:54:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/One-source-of-truth/m-p/541568#M153335</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-02-26T18:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: One source of truth</title>
      <link>https://community.splunk.com/t5/Splunk-Search/One-source-of-truth/m-p/541577#M153338</link>
      <description>&lt;P&gt;That works! Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 19:44:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/One-source-of-truth/m-p/541577#M153338</guid>
      <dc:creator>drezanka</dc:creator>
      <dc:date>2021-02-26T19:44:05Z</dc:date>
    </item>
  </channel>
</rss>

