<?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: Identify Number of Forwarders in Splunk environment in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Identify-Number-of-Forwarders-in-Splunk-environment/m-p/398728#M14432</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;| tstats count where index=* groupby host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Might show you the hosts sending data in, it won't be exact but should give you an idea, if you use this version:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count where index=_* groupby host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You will see all the internal Splunk hosts by looking for internal logs...&lt;/P&gt;</description>
    <pubDate>Thu, 22 Nov 2018 22:03:09 GMT</pubDate>
    <dc:creator>gjanders</dc:creator>
    <dc:date>2018-11-22T22:03:09Z</dc:date>
    <item>
      <title>Identify Number of Forwarders in Splunk environment</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Identify-Number-of-Forwarders-in-Splunk-environment/m-p/398724#M14428</link>
      <description>&lt;P&gt;Hello Everyone . I have one doubt. In the Splunk Architect, my organization is using..it is mentioned 4 forwarders with their server name. But when i am running any query i am seeing more than 50 hosts. Is it correct understanding that Number of Forwarders = Number of Hosts and how to check the correct result ?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 15:43:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Identify-Number-of-Forwarders-in-Splunk-environment/m-p/398724#M14428</guid>
      <dc:creator>ramprakash</dc:creator>
      <dc:date>2018-11-20T15:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Number of Forwarders in Splunk environment</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Identify-Number-of-Forwarders-in-Splunk-environment/m-p/398725#M14429</link>
      <description>&lt;P&gt;When you use a deployment server, you can list the deployment clients (servers/forwarders connected to this deployment server) on the command line with&lt;/P&gt;

&lt;P&gt;splunk list deploy-clients&lt;BR /&gt;
-&amp;gt; the type in your splunk user and password and you will get a list.&lt;/P&gt;

&lt;P&gt;For simplicity you can do&lt;BR /&gt;
splunk list deploy-clients | grep "dns"&lt;BR /&gt;
-&amp;gt; which will only show the dns names of the listed deployment clients&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 09:43:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Identify-Number-of-Forwarders-in-Splunk-environment/m-p/398725#M14429</guid>
      <dc:creator>jbrocks</dc:creator>
      <dc:date>2018-11-21T09:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Number of Forwarders in Splunk environment</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Identify-Number-of-Forwarders-in-Splunk-environment/m-p/398726#M14430</link>
      <description>&lt;P&gt;&lt;EM&gt;In the Splunk Architect, my organization is using..it is mentioned 4 forwarders with their server name.&lt;/EM&gt; &lt;BR /&gt;
i think, they are 4 heavy forwarders (or, maybe, 4 search heads or indexers)&lt;/P&gt;

&lt;P&gt;But when i am running any query i am seeing more than 50 hosts. &lt;BR /&gt;
probably, 50 hosts are the forwarders, that is correct. small/medium projects usually have around 50 forwarders. &lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Is it correct understanding that Number of Forwarders = Number of Hosts&lt;/EM&gt; &lt;BR /&gt;
Yes, to be more precisely, &lt;BR /&gt;
Number of Forwarders = Number of Hosts Splunk monitors or gets the log files from. &lt;/P&gt;

&lt;P&gt;and how to check the correct result ?&lt;BR /&gt;
on the first answer, jbrocks updated 2 commands. &lt;/P&gt;

&lt;P&gt;As you are a new user, you can upvote the answers, you can select an answer and "accept" it as the answer, so that this question will be moved to answered queue. Happy Splunking!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 09:51:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Identify-Number-of-Forwarders-in-Splunk-environment/m-p/398726#M14430</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2018-11-21T09:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Number of Forwarders in Splunk environment</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Identify-Number-of-Forwarders-in-Splunk-environment/m-p/398727#M14431</link>
      <description>&lt;P&gt;I appreciated the answer but I don't have admin access to run these commands&lt;BR /&gt;
I checked the architecture again and they are using 4 Universal forwarders. Is there any search query ? so that i can provide you the result.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 13:23:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Identify-Number-of-Forwarders-in-Splunk-environment/m-p/398727#M14431</guid>
      <dc:creator>ramprakash</dc:creator>
      <dc:date>2018-11-22T13:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Number of Forwarders in Splunk environment</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Identify-Number-of-Forwarders-in-Splunk-environment/m-p/398728#M14432</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| tstats count where index=* groupby host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Might show you the hosts sending data in, it won't be exact but should give you an idea, if you use this version:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count where index=_* groupby host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You will see all the internal Splunk hosts by looking for internal logs...&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 22:03:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Identify-Number-of-Forwarders-in-Splunk-environment/m-p/398728#M14432</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2018-11-22T22:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Number of Forwarders in Splunk environment</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Identify-Number-of-Forwarders-in-Splunk-environment/m-p/398729#M14433</link>
      <description>&lt;P&gt;The below logic will list all the forwarders in your deployment, versions, first/last seen, etc.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*metrics.log group=tcpin_connections splunk_server=* 
| eval host=if(isnull(hostname), sourceHost,hostname) 
| search (host=*) AND (host!="(ALL)")
| eval connectionType=case(fwdType=="uf","univ fwder", fwdType=="lwf", "lightwt fwder",fwdType=="full", "heavy fwder", connectionType=="cooked" or connectionType=="cookedSSL","Splunk fwder", connectionType=="raw" or connectionType=="rawSSL","legacy fwder") 
| eval Ver=if(isnull(version),"pre 4.2",version) 
| fields connectionType sourceIp host kb tcp_eps tcp_KBps splunk_server Ver
| stats min(_time) as first_time, max(_time) as last_time, max(tcp_KBps) as max_tcp_KBps, avg(tcp_KBps) as avg_tcp_KBps, avg(tcp_eps) as avg_tcp_eps, sum(kb) as sum_kb by host sourceIp Ver 
| dedup host
| eval sum_mb = round(sum_kb/1024,0) 
| fields - sum_kb 
| eval avg_tcp_KBps = round(avg_tcp_KBps,0)
| eval max_tcp_KBps = round(max_tcp_KBps,0)
| eval class=case(
avg_tcp_KBps&amp;gt;0 AND avg_tcp_KBps&amp;lt;=128, "Standard Hosts",
avg_tcp_KBps&amp;gt;128 AND avg_tcp_KBps&amp;lt;=256, "Better Hosts",
avg_tcp_KBps&amp;gt;256, "Special Hosts")
| convert ctime(*time) 
| rename first_time as "First seen", last_time as "Last seen", avg_tcp_KBps as "AVG KB/s", avg_tcp_eps as "AVG Events/s per 30 seconds", sum_mb as "Total MB", max_tcp_KBps as "Peak Kbps" connectionType AS "Forwarder Type" sourceIp as "Source IP" host AS "Host" Ver As "Splunk Version"
| sort - "Peak Kbps"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 25 Nov 2018 03:19:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Identify-Number-of-Forwarders-in-Splunk-environment/m-p/398729#M14433</guid>
      <dc:creator>MikeElliott</dc:creator>
      <dc:date>2018-11-25T03:19:07Z</dc:date>
    </item>
  </channel>
</rss>

