<?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: Count per host in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Count-per-host/m-p/574754#M200286</link>
    <description>&lt;P&gt;Hi!! try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your search
| streamstats count by host_name
| eval host_name=host_name.count
| fields - count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rafadvega_0-1636731797517.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16840i5785655E581FF55E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rafadvega_0-1636731797517.png" alt="rafadvega_0-1636731797517.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Nov 2021 15:44:05 GMT</pubDate>
    <dc:creator>rafadvega</dc:creator>
    <dc:date>2021-11-12T15:44:05Z</dc:date>
    <item>
      <title>Count per host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-per-host/m-p/574749#M200283</link>
      <description>&lt;P&gt;I'm trying to rename the IP's of our servers to splunknodes&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;host_ip host_name&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ip-111-11-1-11&lt;/TD&gt;&lt;TD&gt;Searchhead&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ip-111-11-1-12&lt;/TD&gt;&lt;TD&gt;Searchhead&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ip-111-11-1-10&lt;/TD&gt;&lt;TD&gt;Masternode&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ip-111-11-2-11&lt;/TD&gt;&lt;TD&gt;Indexer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ip-111-11-2-12&lt;/TD&gt;&lt;TD&gt;Indexer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ip-111-11-2-10&lt;/TD&gt;&lt;TD&gt;Deploymentserver&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;How do I get it to count the duplicates?:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;host_ip host_name&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="122.922px" height="25px"&gt;ip-111-11-1-11&lt;/TD&gt;&lt;TD width="144.516px" height="25px"&gt;Searchhead1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="122.922px" height="25px"&gt;ip-111-11-1-12&lt;/TD&gt;&lt;TD width="144.516px" height="25px"&gt;Searchhead2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="122.922px" height="25px"&gt;ip-111-11-1-10&lt;/TD&gt;&lt;TD width="144.516px" height="25px"&gt;Masternode&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="122.922px" height="25px"&gt;ip-111-11-2-11&lt;/TD&gt;&lt;TD width="144.516px" height="25px"&gt;Indexer1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="122.922px" height="25px"&gt;ip-111-11-2-12&lt;/TD&gt;&lt;TD width="144.516px" height="25px"&gt;Indexer2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="122.922px" height="25px"&gt;ip-111-11-2-10&lt;/TD&gt;&lt;TD width="144.516px" height="25px"&gt;Deploymentserver&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 15:00:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-per-host/m-p/574749#M200283</guid>
      <dc:creator>EH</dc:creator>
      <dc:date>2021-11-12T15:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count per host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-per-host/m-p/574754#M200286</link>
      <description>&lt;P&gt;Hi!! try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your search
| streamstats count by host_name
| eval host_name=host_name.count
| fields - count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rafadvega_0-1636731797517.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16840i5785655E581FF55E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rafadvega_0-1636731797517.png" alt="rafadvega_0-1636731797517.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 15:44:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-per-host/m-p/574754#M200286</guid>
      <dc:creator>rafadvega</dc:creator>
      <dc:date>2021-11-12T15:44:05Z</dc:date>
    </item>
  </channel>
</rss>

