<?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: Filtering for specific hosts or indexes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Filtering-for-specific-hosts-or-indexes/m-p/128447#M34862</link>
    <description>&lt;P&gt;You can do something like adding the following after the end:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| where host="abc*"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You're going to have to add &lt;CODE&gt;index&lt;/CODE&gt; to the list of fields in your &lt;CODE&gt;fields&lt;/CODE&gt; command if you want to be able to filter on those, though.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Sep 2014 14:53:49 GMT</pubDate>
    <dc:creator>aweitzman</dc:creator>
    <dc:date>2014-09-17T14:53:49Z</dc:date>
    <item>
      <title>Filtering for specific hosts or indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-for-specific-hosts-or-indexes/m-p/128445#M34860</link>
      <description>&lt;P&gt;The search string I am currently using is the following:&lt;/P&gt;

&lt;P&gt;| metadata type=hosts |where recentTime &amp;lt; now() - 86400 | eval lastSeen = strftime(recentTime, "%F %T") | fields + host lastSeen | sort - lastSeen&lt;/P&gt;

&lt;P&gt;I would like to be able to use that as a base search but be able to append some more specific filters such as:&lt;/P&gt;

&lt;P&gt;host=abc*&lt;/P&gt;

&lt;P&gt;index=dns&lt;/P&gt;

&lt;P&gt;The first command that came to mind was adding a pipe search at the end, but that doesn't seem to work properly.  I know this may be elementary for some of you Splunkers out there, but can anyone offer a quick hand?  Much appreciated!&lt;/P&gt;

&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2014 14:46:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-for-specific-hosts-or-indexes/m-p/128445#M34860</guid>
      <dc:creator>ebdavis333</dc:creator>
      <dc:date>2014-09-17T14:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering for specific hosts or indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-for-specific-hosts-or-indexes/m-p/128446#M34861</link>
      <description>&lt;P&gt;You can append the following&lt;/P&gt;

&lt;PRE&gt;
|search host=abc*
&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Sep 2014 14:53:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-for-specific-hosts-or-indexes/m-p/128446#M34861</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2014-09-17T14:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering for specific hosts or indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-for-specific-hosts-or-indexes/m-p/128447#M34862</link>
      <description>&lt;P&gt;You can do something like adding the following after the end:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| where host="abc*"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You're going to have to add &lt;CODE&gt;index&lt;/CODE&gt; to the list of fields in your &lt;CODE&gt;fields&lt;/CODE&gt; command if you want to be able to filter on those, though.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2014 14:53:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-for-specific-hosts-or-indexes/m-p/128447#M34862</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-09-17T14:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering for specific hosts or indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-for-specific-hosts-or-indexes/m-p/128448#M34863</link>
      <description>&lt;P&gt;I was doing this yesterday and it didn't seem to return any results, but works today.  Thanks all for your contributions!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2014 17:01:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-for-specific-hosts-or-indexes/m-p/128448#M34863</guid>
      <dc:creator>ebdavis333</dc:creator>
      <dc:date>2014-09-17T17:01:16Z</dc:date>
    </item>
  </channel>
</rss>

