<?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 write a simple search query to add another set of host name along with the current present host name? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-simple-search-query-to-add-another-set-of-host/m-p/336944#M99969</link>
    <description>&lt;P&gt;Hi Hemanth&lt;/P&gt;

&lt;P&gt;If the query is same just use the OR operator for the host like mentioned below,&lt;/P&gt;

&lt;P&gt;index=------ host=hs* OR host=vms* -----query--------&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2017 11:33:45 GMT</pubDate>
    <dc:creator>pragi_eashwar</dc:creator>
    <dc:date>2017-06-06T11:33:45Z</dc:date>
    <item>
      <title>How to write a simple search query to add another set of host name along with the current present host name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-simple-search-query-to-add-another-set-of-host/m-p/336943#M99968</link>
      <description>&lt;P&gt;Hi All, I have used the below query to capture the splunk service status (Up or Down) via splunkd.log. This query is working fine, but we have added few more splunk instance to the current environment and we need to capture these splunk service status along with the old splunk instances.  My requirement is to include the newly build splunk host details to pull their service status.&lt;/P&gt;

&lt;P&gt;Newly build host starts with the letter  &lt;STRONG&gt;vms&lt;/STRONG&gt; , so how to add this host name along with host name  &lt;STRONG&gt;hs&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Query details : &lt;BR /&gt;
index=_internal host=hs* sourcetype=splunkd source="/opt/splunk/var/log/splunk/splunkd.log" "ShutdownHandler - shutting down level" OR "TailingProcessor - Shutting down with*" | stats earliest(_time) AS Earliest, values(linecount) as Failures by host | convert ctime(Earliest)|addcoltotals label="Total" labelfield="Total_Number_of_Failures&lt;/P&gt;

&lt;P&gt;thanks in advance. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:23:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-simple-search-query-to-add-another-set-of-host/m-p/336943#M99968</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-29T14:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a simple search query to add another set of host name along with the current present host name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-simple-search-query-to-add-another-set-of-host/m-p/336944#M99969</link>
      <description>&lt;P&gt;Hi Hemanth&lt;/P&gt;

&lt;P&gt;If the query is same just use the OR operator for the host like mentioned below,&lt;/P&gt;

&lt;P&gt;index=------ host=hs* OR host=vms* -----query--------&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 11:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-simple-search-query-to-add-another-set-of-host/m-p/336944#M99969</guid>
      <dc:creator>pragi_eashwar</dc:creator>
      <dc:date>2017-06-06T11:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a simple search query to add another set of host name along with the current present host name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-simple-search-query-to-add-another-set-of-host/m-p/336945#M99970</link>
      <description>&lt;P&gt;Hi Hemnaath, Please check - &lt;BR /&gt;
&lt;PRE&gt;index=_internal host=hs* OR host=vms* sourcetype=splunkd source="/opt/splunk/var/log/splunk/splunkd.log" "ShutdownHandler - shutting down level" OR "TailingProcessor - Shutting down with*" | stats earliest(_time) AS Earliest, values(linecount) as Failures by host | convert ctime(Earliest)|addcoltotals label="Total" labelfield="Total_Number_of_Failures&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:19:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-simple-search-query-to-add-another-set-of-host/m-p/336945#M99970</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-09-29T14:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a simple search query to add another set of host name along with the current present host name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-simple-search-query-to-add-another-set-of-host/m-p/336946#M99971</link>
      <description>&lt;P&gt;thanks it worked, at same time could please tell me where we need to use  OR operator and AND operator appropriately in SPL query.  thanks in advance. &lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 12:48:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-simple-search-query-to-add-another-set-of-host/m-p/336946#M99971</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-06-08T12:48:06Z</dc:date>
    </item>
  </channel>
</rss>

