<?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 find all the searches having &amp;quot;index=*&amp;quot; in the search or Alert or Reports in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307197#M161563</link>
    <description>&lt;P&gt;Nice but be aware that the &lt;CODE&gt;match&lt;/CODE&gt; function is a regex, so you should consider using a wider regular expression to match any possibility, like (index=*, index = *, index= *, index="*")&lt;/P&gt;

&lt;P&gt;Something like this, &lt;CODE&gt;(?:index=\*|index=\s\*|index\s=\s\*|index=\"\*\"|index =\"\*\"|index = \"\*\")&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2017 16:10:45 GMT</pubDate>
    <dc:creator>alemarzu</dc:creator>
    <dc:date>2017-03-31T16:10:45Z</dc:date>
    <item>
      <title>How to find all the searches having "index=*" in the search or Alert or Reports</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307189#M161555</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Am fine tuning my environment, so i listing out the searches which are using &lt;CODE&gt;index=*&lt;/CODE&gt; in the search. But as &lt;CODE&gt;*&lt;/CODE&gt; is wildcard it is not filtering.&lt;BR /&gt;
Below is the query&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action=search | convert num(total_run_time) |  eval user = if(user="n/a", "nobody", user) | stats min(_time) as _time last(user) as user max(total_run_time) as total_run_time last(search) as search by search_id | search search="*index=*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 14:22:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307189#M161555</guid>
      <dc:creator>SathyaNarayanan</dc:creator>
      <dc:date>2017-03-31T14:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all the searches having "index=*" in the search or Alert or Reports</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307190#M161556</link>
      <description>&lt;P&gt;Hi SathyaNarayananan&lt;BR /&gt;
Similar question and answers here: &lt;A href="https://answers.splunk.com/answers/504400/list-out-saved-searches-which-are-used-index-insta.html"&gt;https://answers.splunk.com/answers/504400/list-out-saved-searches-which-are-used-index-insta.html&lt;/A&gt;&lt;BR /&gt;
hope it helps&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 14:32:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307190#M161556</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-03-31T14:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all the searches having "index=*" in the search or Alert or Reports</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307191#M161557</link>
      <description>&lt;P&gt;Hi there, try this one,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /servicesNS/-/-/saved/searches | fields title search eai:acl.app | eval var1=if(match(search,"(?:index=\*|index=\s\*|index\s=\s\*|index=\"\*\"|index =\"\*\"|index = \"\*\")"), "TUNE-ME", "OK")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Another one for both types, Ad-Hoc, Scheduled and API searches.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action="search" search="*" | eval ad-hoc=if(NOT user="splunk-system-user", "Yes", "No") | eval var1=if(match(search,"(?:index=\*|index=\s\*|index\s=\s\*|index=\"\*\"|index =\"\*\"|index = \"\*\")"), "TUNE-ME", "OK") | table user search ad-hoc var1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Edited.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 14:35:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307191#M161557</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2017-03-31T14:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all the searches having "index=*" in the search or Alert or Reports</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307192#M161558</link>
      <description>&lt;P&gt;Thanks, but when put we search ="Index=*", it started listing out all the indexes again&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 14:57:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307192#M161558</guid>
      <dc:creator>SathyaNarayanan</dc:creator>
      <dc:date>2017-03-31T14:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all the searches having "index=*" in the search or Alert or Reports</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307193#M161559</link>
      <description>&lt;P&gt;Thanks, its works for the saved searches, how about for the searches made adhoc &lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 14:57:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307193#M161559</guid>
      <dc:creator>SathyaNarayanan</dc:creator>
      <dc:date>2017-03-31T14:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all the searches having "index=*" in the search or Alert or Reports</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307194#M161560</link>
      <description>&lt;P&gt;remember to escape the &lt;CODE&gt;*&lt;/CODE&gt; as &lt;CODE&gt;\*&lt;/CODE&gt; if you are looking for that character rather than "anything".&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 15:00:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307194#M161560</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-31T15:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all the searches having "index=*" in the search or Alert or Reports</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307195#M161561</link>
      <description>&lt;P&gt;I used the below line from your query and got the required list.&lt;/P&gt;

&lt;P&gt;| eval var1=if(match(search,"index=*"), "TUNE-ME", "OK")&lt;/P&gt;

&lt;P&gt;Thanks Alemarzu&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 15:12:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307195#M161561</guid>
      <dc:creator>SathyaNarayanan</dc:creator>
      <dc:date>2017-03-31T15:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all the searches having "index=*" in the search or Alert or Reports</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307196#M161562</link>
      <description>&lt;P&gt;Thanks, it working&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 15:36:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307196#M161562</guid>
      <dc:creator>SathyaNarayanan</dc:creator>
      <dc:date>2017-03-31T15:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all the searches having "index=*" in the search or Alert or Reports</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307197#M161563</link>
      <description>&lt;P&gt;Nice but be aware that the &lt;CODE&gt;match&lt;/CODE&gt; function is a regex, so you should consider using a wider regular expression to match any possibility, like (index=*, index = *, index= *, index="*")&lt;/P&gt;

&lt;P&gt;Something like this, &lt;CODE&gt;(?:index=\*|index=\s\*|index\s=\s\*|index=\"\*\"|index =\"\*\"|index = \"\*\")&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 16:10:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307197#M161563</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2017-03-31T16:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all the searches having "index=*" in the search or Alert or Reports</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307198#M161564</link>
      <description>&lt;P&gt;Just one thing to be aware of, each role or user may have different results when they search for index=* due to what indexes they are able to see and what they search as default.&lt;/P&gt;

&lt;P&gt;E.g.&lt;/P&gt;

&lt;P&gt;Admin role set to see all internal and external indexes searches index=* gets everything.&lt;BR /&gt;
User role configured to only see main index searches index=* only sees main index results.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 12:40:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-the-searches-having-quot-index-quot-in-the/m-p/307198#M161564</guid>
      <dc:creator>karlbosanquet</dc:creator>
      <dc:date>2017-04-01T12:40:35Z</dc:date>
    </item>
  </channel>
</rss>

