<?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: Timechart showing if servers are communicating with Splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-showing-if-servers-are-communicating-with-Splunk/m-p/361558#M106785</link>
    <description>&lt;P&gt;Hi  tc641,&lt;BR /&gt;
to you want to know servers that can communicate with Splunk or servers that are communicating with Splunk?&lt;/P&gt;

&lt;P&gt;If the first, you can see all the server in the deployment server or find servers that sent logs in the last (e.g.) one month, running a search like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=_internal earliest=-1mon latest=now | dedup host | sort host | table host 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If instead the second, you should do the following steps:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;create a lookup &lt;CODE&gt;perimeter.csv&lt;/CODE&gt; with one field "host"&lt;/LI&gt;
&lt;LI&gt;populate it with all the servers in your perimeter: manually or scheduling a search lithe this &lt;CODE&gt;| metasearch index=_internal earliest=-1mon latest=now | dedup host | sort host | table host | outputlookup perimeter.csv&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;run a search like the following &lt;CODE&gt;| metasearch index=_internal | host=upper(host) | stats count by host | append [ | inputlookup perimeter.csv | eval count=0, host=upper(host) | fields host count ] | stats sum(count) AS Total by host&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;In this way servers with Total=0 are missing and Total &amp;gt; 0 are present&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2017 14:50:25 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-08-10T14:50:25Z</dc:date>
    <item>
      <title>Timechart showing if servers are communicating with Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-showing-if-servers-are-communicating-with-Splunk/m-p/361556#M106783</link>
      <description>&lt;P&gt;Our Splunk expert is away &lt;span class="lia-unicode-emoji" title=":face_with_open_mouth:"&gt;😮&lt;/span&gt;&lt;BR /&gt;
I want to see the total number servers that can communicate with splunk i.e. they are on the forwarder manager. on the y-axis and time on the x axis.&lt;/P&gt;

&lt;P&gt;I have attempted a few searches e.g&lt;BR /&gt;
 | metadata type=hosts&lt;BR /&gt;
 | chart count by recentTime&lt;/P&gt;

&lt;P&gt;but this doesn't give me what I want really at all  : ( &lt;/P&gt;

&lt;P&gt;I would appreciate any help. &lt;/P&gt;

&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 13:05:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-showing-if-servers-are-communicating-with-Splunk/m-p/361556#M106783</guid>
      <dc:creator>tc641</dc:creator>
      <dc:date>2017-08-10T13:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart showing if servers are communicating with Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-showing-if-servers-are-communicating-with-Splunk/m-p/361557#M106784</link>
      <description>&lt;P&gt;This will give you what you want but if you've too many hosts, it won't look pretty.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts | table host recentTime | rename recentTime as _time | timechart dc(host) as hosts limit=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For better suggestion, please describe what you're expect as the output.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 14:38:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-showing-if-servers-are-communicating-with-Splunk/m-p/361557#M106784</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-08-10T14:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart showing if servers are communicating with Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-showing-if-servers-are-communicating-with-Splunk/m-p/361558#M106785</link>
      <description>&lt;P&gt;Hi  tc641,&lt;BR /&gt;
to you want to know servers that can communicate with Splunk or servers that are communicating with Splunk?&lt;/P&gt;

&lt;P&gt;If the first, you can see all the server in the deployment server or find servers that sent logs in the last (e.g.) one month, running a search like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=_internal earliest=-1mon latest=now | dedup host | sort host | table host 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If instead the second, you should do the following steps:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;create a lookup &lt;CODE&gt;perimeter.csv&lt;/CODE&gt; with one field "host"&lt;/LI&gt;
&lt;LI&gt;populate it with all the servers in your perimeter: manually or scheduling a search lithe this &lt;CODE&gt;| metasearch index=_internal earliest=-1mon latest=now | dedup host | sort host | table host | outputlookup perimeter.csv&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;run a search like the following &lt;CODE&gt;| metasearch index=_internal | host=upper(host) | stats count by host | append [ | inputlookup perimeter.csv | eval count=0, host=upper(host) | fields host count ] | stats sum(count) AS Total by host&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;In this way servers with Total=0 are missing and Total &amp;gt; 0 are present&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 14:50:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-showing-if-servers-are-communicating-with-Splunk/m-p/361558#M106785</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-08-10T14:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart showing if servers are communicating with Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-showing-if-servers-are-communicating-with-Splunk/m-p/361559#M106786</link>
      <description>&lt;P&gt;Hi  tc641,&lt;BR /&gt;
to you want to know servers that can communicate with Splunk or servers that are communicating with Splunk?&lt;/P&gt;

&lt;P&gt;If the first, you can see all the server in the deployment server or find servers that sent logs in the last (e.g.) one month, running a search like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=_internal earliest=-1mon latest=now | dedup host | sort host | table host 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If instead the second, you should do the following steps:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;create a lookup &lt;CODE&gt;perimeter.csv&lt;/CODE&gt; with one field "host"&lt;/LI&gt;
&lt;LI&gt;populate it with all the servers in your perimeter: manually or scheduling a search lithe this &lt;CODE&gt;| metasearch index=_internal earliest=-1mon latest=now | dedup host | sort host | table host | outputlookup perimeter.csv&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;run a search like the following &lt;CODE&gt;| metasearch index=_internal | host=upper(host) | stats count by host | append [ | inputlookup perimeter.csv | eval count=0, host=upper(host) | fields host count ] | stats sum(count) AS Total by host&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;In this way servers with Total=0 are missing and Total &amp;gt; 0 are present&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 14:50:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-showing-if-servers-are-communicating-with-Splunk/m-p/361559#M106786</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-08-10T14:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart showing if servers are communicating with Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-showing-if-servers-are-communicating-with-Splunk/m-p/361560#M106787</link>
      <description>&lt;P&gt;here's one way...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats dc(host) as hostcount WHERE index=_internal by _time span=1h 
| timechart span=1d avg(hostcount)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's some other useful ones...&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/294769/how-to-get-a-progressive-chart-of-hosts-added-over.html"&gt;https://answers.splunk.com/answers/294769/how-to-get-a-progressive-chart-of-hosts-added-over.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 15:02:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-showing-if-servers-are-communicating-with-Splunk/m-p/361560#M106787</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-08-10T15:02:30Z</dc:date>
    </item>
  </channel>
</rss>

