<?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: i have to exclude particular  host from this query? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/i-have-to-exclude-particular-host-from-this-query/m-p/336598#M174919</link>
    <description>&lt;P&gt;Hi karthi2809,&lt;/P&gt;

&lt;P&gt;I'm not sure about to filter &lt;STRONG&gt;index=xx_prod&lt;/STRONG&gt; but you can exclude particular host by using below query.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts | where host!="hostname"
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I hope it will help you.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Apr 2017 12:13:21 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2017-04-17T12:13:21Z</dc:date>
    <item>
      <title>i have to exclude particular  host from this query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/i-have-to-exclude-particular-host-from-this-query/m-p/336597#M174918</link>
      <description>&lt;P&gt;| metadata type=hosts index=xx_prod| eval age = now() - recentTime | eval status= case(age &amp;lt; 1800,"Running",age &amp;gt; 1800,"DOWN") | convert ctime(recentTime) AS LastActiveOn&lt;BR /&gt;
| eval age=tostring(age,"duration") | eval host = upper(host)&lt;BR /&gt;
| table host age LastActiveOn status &lt;BR /&gt;
| rename host as "Forwarder Name", age as "Last Heartbeat(min)",LastActiveOn as "Last Active On",status as Status&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 11:05:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/i-have-to-exclude-particular-host-from-this-query/m-p/336597#M174918</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2017-04-17T11:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: i have to exclude particular  host from this query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/i-have-to-exclude-particular-host-from-this-query/m-p/336598#M174919</link>
      <description>&lt;P&gt;Hi karthi2809,&lt;/P&gt;

&lt;P&gt;I'm not sure about to filter &lt;STRONG&gt;index=xx_prod&lt;/STRONG&gt; but you can exclude particular host by using below query.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts | where host!="hostname"
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I hope it will help you.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 12:13:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/i-have-to-exclude-particular-host-from-this-query/m-p/336598#M174919</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-04-17T12:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: i have to exclude particular  host from this query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/i-have-to-exclude-particular-host-from-this-query/m-p/336599#M174920</link>
      <description>&lt;P&gt;| metadata type=hosts &lt;STRONG&gt;| search host!="YourHost"&lt;/STRONG&gt; | eval age = now() - recentTime | eval status= case(age &amp;lt; 1800,"Running",age &amp;gt; 1800,"DOWN") | convert ctime(recentTime) AS LastActiveOn&lt;BR /&gt;
| eval age=tostring(age,"duration") | eval host = upper(host)&lt;BR /&gt;
| table host age LastActiveOn status &lt;BR /&gt;
| rename host as "Forwarder Name", age as "Last Heartbeat(min)",LastActiveOn as "Last Active On",status as Status&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 12:13:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/i-have-to-exclude-particular-host-from-this-query/m-p/336599#M174920</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-04-17T12:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: i have to exclude particular  host from this query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/i-have-to-exclude-particular-host-from-this-query/m-p/336600#M174921</link>
      <description>&lt;P&gt;Not sure if understand the question properly  , but the the usual search NOT will work right ..?&lt;/P&gt;

&lt;P&gt;| metadata type=hosts index=xx_prod| &lt;STRONG&gt;search NOT (host=host1 OR host=host2)&lt;/STRONG&gt; |eval age = now() - recentTime | eval status= case(age &amp;lt; 1800,"Running",age &amp;gt; 1800,"DOWN") | convert ctime(recentTime) AS LastActiveOn&lt;BR /&gt;
| eval age=tostring(age,"duration") | eval host = upper(host)&lt;BR /&gt;
| table host age LastActiveOn status &lt;BR /&gt;
| rename host as "Forwarder Name", age as "Last Heartbeat(min)",LastActiveOn as "Last Active On",status as Status&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 12:17:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/i-have-to-exclude-particular-host-from-this-query/m-p/336600#M174921</guid>
      <dc:creator>Ravan</dc:creator>
      <dc:date>2017-04-17T12:17:40Z</dc:date>
    </item>
  </channel>
</rss>

