<?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 generate a search that will let me know if Splunk is installed on a host and if the host is sending data or not? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-let-me-know-if-Splunk-is/m-p/248195#M74051</link>
    <description>&lt;P&gt;Hi sravankaripe,&lt;BR /&gt;
If you want to know host that don't send log the solution from @sundareshr is perfect.&lt;BR /&gt;
If you want to have a table with all the host and the indication of which are sending and which aren't sending you could use something like this:&lt;BR /&gt;
|inputlookup hoslist.csv | eval count=0, host=lower(host) | append [  search index=_internal | eval host=lower(host) | stats count by host ]  | stats sum(count) AS Total | rangemap field=Total severe=0-0 low=1-1000000000 default=severe &lt;BR /&gt;
In this way hosts with severe aren't sending and host with low are sending.&lt;BR /&gt;
You could also add a graphical representation using &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;script="table_icons_rangemap.js, stylesheet="table_decorations.css"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that you can take from the Splunk 6.0 Dashboard Examples App (&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;).&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2016 09:41:25 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2016-11-29T09:41:25Z</dc:date>
    <item>
      <title>How to generate a search that will let me know if Splunk is installed on a host and if the host is sending data or not?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-let-me-know-if-Splunk-is/m-p/248192#M74048</link>
      <description>&lt;P&gt;how can i know that a particular host is sending data or not? and how can i know that the Splunk agent is installed in particular host or not? please help me with search query and what we have to observer from the search result.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 15:35:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-let-me-know-if-Splunk-is/m-p/248192#M74048</guid>
      <dc:creator>sravankaripe</dc:creator>
      <dc:date>2016-11-28T15:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search that will let me know if Splunk is installed on a host and if the host is sending data or not?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-let-me-know-if-Splunk-is/m-p/248193#M74049</link>
      <description>&lt;P&gt;i know index=_internal sourcetype=splunkd&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2016 15:37:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-let-me-know-if-Splunk-is/m-p/248193#M74049</guid>
      <dc:creator>sravankaripe</dc:creator>
      <dc:date>2016-11-28T15:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search that will let me know if Splunk is installed on a host and if the host is sending data or not?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-let-me-know-if-Splunk-is/m-p/248194#M74050</link>
      <description>&lt;P&gt;You will first need to create a list of all the hosts in your environment and use that to create a lookup file (csv file should have a field called host)&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/Lookup"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/Lookup&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;ONce you have the lookup, you try this search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup hostlist.csv | field host | search NOT [| metadata type=hosts index=*]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Nov 2016 22:37:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-let-me-know-if-Splunk-is/m-p/248194#M74050</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-11-28T22:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search that will let me know if Splunk is installed on a host and if the host is sending data or not?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-let-me-know-if-Splunk-is/m-p/248195#M74051</link>
      <description>&lt;P&gt;Hi sravankaripe,&lt;BR /&gt;
If you want to know host that don't send log the solution from @sundareshr is perfect.&lt;BR /&gt;
If you want to have a table with all the host and the indication of which are sending and which aren't sending you could use something like this:&lt;BR /&gt;
|inputlookup hoslist.csv | eval count=0, host=lower(host) | append [  search index=_internal | eval host=lower(host) | stats count by host ]  | stats sum(count) AS Total | rangemap field=Total severe=0-0 low=1-1000000000 default=severe &lt;BR /&gt;
In this way hosts with severe aren't sending and host with low are sending.&lt;BR /&gt;
You could also add a graphical representation using &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;script="table_icons_rangemap.js, stylesheet="table_decorations.css"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that you can take from the Splunk 6.0 Dashboard Examples App (&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;).&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 09:41:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-let-me-know-if-Splunk-is/m-p/248195#M74051</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-29T09:41:25Z</dc:date>
    </item>
  </channel>
</rss>

