<?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 to count valuse and display againts another field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-valuse-and-display-againts-another-field/m-p/667526#M228998</link>
    <description>&lt;P&gt;Each row is an event with various fields - if you want to combine the results events by User, try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=logs EventType="logon"
| stats count by User Status
| stats list(Status) as Status list(count) as count by User&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 06 Nov 2023 13:31:05 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-11-06T13:31:05Z</dc:date>
    <item>
      <title>How to count valuse and display againts another field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-valuse-and-display-againts-another-field/m-p/667518#M228992</link>
      <description>&lt;P&gt;Sorry, I am unsure how to describe what I am looking for using Splunk terminology, and I am sure that is why I am having trouble finding the answer.&lt;BR /&gt;&lt;BR /&gt;What I am looking for:&lt;BR /&gt;&lt;BR /&gt;User&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; Status&amp;nbsp;&amp;nbsp; | coun&lt;BR /&gt;---------------------------------&lt;BR /&gt;Mike&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; True&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; False&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;--------------------------------&lt;BR /&gt;Loagn |&amp;nbsp; True&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; False&amp;nbsp;&amp;nbsp;&amp;nbsp; | &amp;nbsp;&amp;nbsp; 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far my search looks like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=logs EventType="logon"
| stats values(Status) as Status count by User&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;It is almost there, but in the count column, it combines the count for True and False and only gives a single number.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 13:08:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-valuse-and-display-againts-another-field/m-p/667518#M228992</guid>
      <dc:creator>Matrix20085</dc:creator>
      <dc:date>2023-11-06T13:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to count valuse and display againts another field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-valuse-and-display-againts-another-field/m-p/667519#M228993</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=logs EventType="logon"
| stats count by User Status&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Nov 2023 13:13:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-valuse-and-display-againts-another-field/m-p/667519#M228993</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-06T13:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to count valuse and display againts another field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-valuse-and-display-againts-another-field/m-p/667523#M228996</link>
      <description>&lt;P&gt;This is where I started, but it lists the User for each Status they have. I was hoping to have the user listed once with all of their different statues next to them.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 13:23:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-valuse-and-display-againts-another-field/m-p/667523#M228996</guid>
      <dc:creator>Matrix20085</dc:creator>
      <dc:date>2023-11-06T13:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to count valuse and display againts another field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-valuse-and-display-againts-another-field/m-p/667526#M228998</link>
      <description>&lt;P&gt;Each row is an event with various fields - if you want to combine the results events by User, try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=logs EventType="logon"
| stats count by User Status
| stats list(Status) as Status list(count) as count by User&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Nov 2023 13:31:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-valuse-and-display-againts-another-field/m-p/667526#M228998</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-06T13:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to count valuse and display againts another field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-valuse-and-display-againts-another-field/m-p/667530#M229000</link>
      <description>&lt;P&gt;Nailed it! Thanks so much.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 13:44:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-valuse-and-display-againts-another-field/m-p/667530#M229000</guid>
      <dc:creator>Matrix20085</dc:creator>
      <dc:date>2023-11-06T13:44:35Z</dc:date>
    </item>
  </channel>
</rss>

