<?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: having stats count and stats values combined in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/having-stats-count-and-stats-values-combined/m-p/698415#M57245</link>
    <description>&lt;P&gt;Just put the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;values(attack_type) as "Types of attack"&lt;/PRE&gt;&lt;P&gt;into the first stats.&lt;/P&gt;&lt;P&gt;You can't do 2 stats like that as you don't have the attack_type anymore after the first stats&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2024 16:15:12 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2024-09-06T16:15:12Z</dc:date>
    <item>
      <title>having stats count and stats values combined</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/having-stats-count-and-stats-values-combined/m-p/698413#M57244</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to obtain a table like this :&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="197.75px" height="47px"&gt;FQDN&lt;/TD&gt;&lt;TD width="197.75px" height="47px"&gt;uri&lt;/TD&gt;&lt;TD width="197.75px" height="47px"&gt;list of&amp;nbsp; attack_types&lt;/TD&gt;&lt;TD width="197.75px" height="47px"&gt;attack_number&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="197.75px" height="77px"&gt;&lt;A href="http://www.test.com" target="_blank"&gt;www.test.com&lt;/A&gt;&lt;/TD&gt;&lt;TD width="197.75px" height="77px"&gt;/index&lt;/TD&gt;&lt;TD width="197.75px" height="77px"&gt;&lt;P&gt;Information Leakage&lt;/P&gt;&lt;P&gt;Path Traversal&lt;/P&gt;&lt;/TD&gt;&lt;TD width="197.75px" height="77px"&gt;57&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="197.75px" height="25px"&gt;&lt;A href="http://www.test.com" target="_blank"&gt;www.test.com&lt;/A&gt;&lt;/TD&gt;&lt;TD width="197.75px" height="25px"&gt;/test&lt;/TD&gt;&lt;TD width="197.75px" height="25px"&gt;Path Traversal&lt;/TD&gt;&lt;TD width="197.75px" height="25px"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="197.75px" height="40px"&gt;prod.com&lt;/TD&gt;&lt;TD width="197.75px" height="40px"&gt;/sample&lt;/TD&gt;&lt;TD width="197.75px" height="40px"&gt;&lt;P&gt;Abuse of Functionality&lt;/P&gt;&lt;P&gt;Forceful Browsing&lt;/P&gt;&lt;P&gt;Command Execution&lt;/P&gt;&lt;/TD&gt;&lt;TD width="197.75px" height="40px"&gt;&lt;P&gt;10&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can obtain the table without the list of attack_types, but I can't figure out how to add the values function.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats count as attack_number by FQDN,uri 
| stats values(attack_type) as "Types of attack"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;For each FQDN/uri I want to have the number of attacks, and all the attack_types seen.&lt;/P&gt;&lt;P&gt;It seems obvious, but I'm missing it.&lt;/P&gt;&lt;P&gt;Can someone help me ?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 16:13:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/having-stats-count-and-stats-values-combined/m-p/698413#M57244</guid>
      <dc:creator>Merryvor</dc:creator>
      <dc:date>2024-09-06T16:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: having stats count and stats values combined</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/having-stats-count-and-stats-values-combined/m-p/698415#M57245</link>
      <description>&lt;P&gt;Just put the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;values(attack_type) as "Types of attack"&lt;/PRE&gt;&lt;P&gt;into the first stats.&lt;/P&gt;&lt;P&gt;You can't do 2 stats like that as you don't have the attack_type anymore after the first stats&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 16:15:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/having-stats-count-and-stats-values-combined/m-p/698415#M57245</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-09-06T16:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: having stats count and stats values combined</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/having-stats-count-and-stats-values-combined/m-p/698416#M57246</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I actually tried this before&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats count as attack_number by FQDN,uri values(attack_type) as "Types of attack"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;but it didn't return anything.&lt;/P&gt;&lt;P&gt;However this is working :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(attack_type) as "Types of attack" count as attack_number by FQDN,uri &lt;/LI-CODE&gt;&lt;P&gt;I guess this way the by clause applies to both count and values function.&lt;/P&gt;&lt;P&gt;seems logic now that I see it !&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 16:22:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/having-stats-count-and-stats-values-combined/m-p/698416#M57246</guid>
      <dc:creator>Merryvor</dc:creator>
      <dc:date>2024-09-06T16:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: having stats count and stats values combined</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/having-stats-count-and-stats-values-combined/m-p/698418#M57247</link>
      <description>&lt;P&gt;Yes, you're right - the logic for stats is stats - followed by as many aggregations you want and then the by clause.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 16:29:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/having-stats-count-and-stats-values-combined/m-p/698418#M57247</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-09-06T16:29:52Z</dc:date>
    </item>
  </channel>
</rss>

