<?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 can I count which different lines in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-which-different-lines/m-p/499414#M140159</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base search&amp;gt;
| stats count as Count by Region, Disabled
| eventstats sum(Count) as Total by Region
| eval "State Percentages"=round(Count*100/Total,2) | fields - Total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Would something like this work?&lt;/P&gt;</description>
    <pubDate>Fri, 15 May 2020 05:33:36 GMT</pubDate>
    <dc:creator>ragedsparrow</dc:creator>
    <dc:date>2020-05-15T05:33:36Z</dc:date>
    <item>
      <title>How can I count which different lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-which-different-lines/m-p/499413#M140158</link>
      <description>&lt;P&gt;My Data as following&lt;BR /&gt;AA || Disabled || Region&lt;BR /&gt;&lt;A href="mailto:11@abc.com" target="_blank"&gt;11@abc.com&lt;/A&gt; || Yes || HK&lt;BR /&gt;&lt;A href="mailto:12@abc.com" target="_blank"&gt;12@abc.com&lt;/A&gt; || No || US&lt;BR /&gt;&lt;A href="mailto:13@abc.com" target="_blank"&gt;13@abc.com&lt;/A&gt; || No || US&lt;BR /&gt;&lt;A href="mailto:14@abc.com" target="_blank"&gt;14@abc.com&lt;/A&gt; || No || UK&lt;BR /&gt;&lt;A href="mailto:15@abc.com" target="_blank"&gt;15@abc.com&lt;/A&gt; || Yes || UK&lt;BR /&gt;&lt;A href="mailto:16@abc.com" target="_blank"&gt;16@abc.com&lt;/A&gt; || No || UK&lt;BR /&gt;&lt;A href="mailto:17@abc.com" target="_blank"&gt;17@abc.com&lt;/A&gt; || No || UK&lt;BR /&gt;&lt;A href="mailto:18@abc.com" target="_blank"&gt;18@abc.com&lt;/A&gt; || No || HK&lt;BR /&gt;&lt;A href="mailto:19@abc.com" target="_blank"&gt;19@abc.com&lt;/A&gt; || Yes || HK&lt;/P&gt;
&lt;P&gt;I would like to count as following&lt;BR /&gt;% of account disable and enable in different region&lt;/P&gt;
&lt;P&gt;| stats count(eval(status=="No")) as var1 by CountryRegion, count(eval(status=="Yes")) as var2 by CountryRegion ???&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 00:03:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-which-different-lines/m-p/499413#M140158</guid>
      <dc:creator>keyu921</dc:creator>
      <dc:date>2020-06-06T00:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I count which different lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-which-different-lines/m-p/499414#M140159</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base search&amp;gt;
| stats count as Count by Region, Disabled
| eventstats sum(Count) as Total by Region
| eval "State Percentages"=round(Count*100/Total,2) | fields - Total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Would something like this work?&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 05:33:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-which-different-lines/m-p/499414#M140159</guid>
      <dc:creator>ragedsparrow</dc:creator>
      <dc:date>2020-05-15T05:33:36Z</dc:date>
    </item>
  </channel>
</rss>

