<?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 Search view that only searches on specified index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-view-that-only-searches-on-specified-index/m-p/97053#M25094</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to create a Search view that only searches on the index I specify. But I don't seem to figure out how.&lt;BR /&gt;
This should be very simple, but I can't find anything on how to do this. Is it possible?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2011 16:54:34 GMT</pubDate>
    <dc:creator>mplacido</dc:creator>
    <dc:date>2011-10-24T16:54:34Z</dc:date>
    <item>
      <title>Search view that only searches on specified index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-view-that-only-searches-on-specified-index/m-p/97053#M25094</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to create a Search view that only searches on the index I specify. But I don't seem to figure out how.&lt;BR /&gt;
This should be very simple, but I can't find anything on how to do this. Is it possible?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2011 16:54:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-view-that-only-searches-on-specified-index/m-p/97053#M25094</guid>
      <dc:creator>mplacido</dc:creator>
      <dc:date>2011-10-24T16:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Search view that only searches on specified index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-view-that-only-searches-on-specified-index/m-p/97054#M25095</link>
      <description>&lt;P&gt;just start your search with 'index=my_index'&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2011 18:49:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-view-that-only-searches-on-specified-index/m-p/97054#M25095</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2011-10-24T18:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Search view that only searches on specified index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-view-that-only-searches-on-specified-index/m-p/97055#M25096</link>
      <description>&lt;P&gt;There isn't a totally easy way to do this, other than to construct your view to prepend &lt;CODE&gt;index=myindex&lt;/CODE&gt; to every base search on the page. This isn't trivial in some cases. Unfortunately, defaulting or restricting automatically is only available to &lt;EM&gt;roles&lt;/EM&gt;, not views. This is a reasonable enhancement request, I think.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2011 20:06:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-view-that-only-searches-on-specified-index/m-p/97055#M25096</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-10-24T20:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Search view that only searches on specified index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-view-that-only-searches-on-specified-index/m-p/97056#M25097</link>
      <description>&lt;P&gt;After som digging I actually figured it out myself.&lt;/P&gt;

&lt;P&gt;I cloned the dasboard view, and added this lines to the xml after the Submit button module parameters.&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="HiddenIntention"&gt;&lt;BR /&gt;
          &lt;OBJECT&gt;&lt;PARAM name="intention" /&gt;&lt;BR /&gt;
            &lt;PARAM name="name" /&gt;addterm&lt;BR /&gt;
            &lt;PARAM name="arg" /&gt;&lt;BR /&gt;
              &lt;PARAM name="index" /&gt;myindexname&lt;BR /&gt;
            &lt;BR /&gt;
          &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;and then just added the  before the Submit module´s &lt;/P&gt;

&lt;P&gt;And now every search I make in this view automatically adds index="myindexname" without others seeing it.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2011 08:25:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-view-that-only-searches-on-specified-index/m-p/97056#M25097</guid>
      <dc:creator>mplacido</dc:creator>
      <dc:date>2011-10-25T08:25:09Z</dc:date>
    </item>
  </channel>
</rss>

