<?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: finding percentage in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/finding-percentage/m-p/520906#M146740</link>
    <description>&lt;P&gt;Here is one way to combine the two searches.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main
| eval update=if(searchmatch("update*"), Host_Name, NULL) 
| stats dc(update) as updated, dc(Host_Name) as total 
| fillnull value=0 updated 
| eval pct=round((updated*100)/total,2)&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 22 Sep 2020 18:03:38 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-09-22T18:03:38Z</dc:date>
    <item>
      <title>finding percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/finding-percentage/m-p/520853#M146726</link>
      <description>&lt;P&gt;Good Day all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to find the percentage of devices that has updated. The way I would like to do this is to first search index=main | stats dc(Host_Name). This would give me the total number of host names that are sending data to splunk. Out of that I would like to find out what percentage of those is updated. I can search index=main update* | stats dc(Host_Name) and it will give the number of devices that have updated. But how will I find the percentage of devices that have updated? Normally it would be (devices updated/total devices)*100. For this search how do we craft the search?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 13:11:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/finding-percentage/m-p/520853#M146726</guid>
      <dc:creator>rabrahaham</dc:creator>
      <dc:date>2020-09-22T13:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: finding percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/finding-percentage/m-p/520906#M146740</link>
      <description>&lt;P&gt;Here is one way to combine the two searches.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main
| eval update=if(searchmatch("update*"), Host_Name, NULL) 
| stats dc(update) as updated, dc(Host_Name) as total 
| fillnull value=0 updated 
| eval pct=round((updated*100)/total,2)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Sep 2020 18:03:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/finding-percentage/m-p/520906#M146740</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-22T18:03:38Z</dc:date>
    </item>
  </channel>
</rss>

