<?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: Stats issue with multivalue field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Stats-issue-with-multivalue-field/m-p/499979#M140828</link>
    <description>&lt;P&gt;I ended up using:&lt;/P&gt;

&lt;P&gt;| makemv delim="," cve&lt;BR /&gt;
| mvexpand cve&lt;/P&gt;</description>
    <pubDate>Wed, 25 Mar 2020 16:20:59 GMT</pubDate>
    <dc:creator>mbasharat</dc:creator>
    <dc:date>2020-03-25T16:20:59Z</dc:date>
    <item>
      <title>Stats issue with multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-issue-with-multivalue-field/m-p/499976#M140825</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am tracking my assets with vulnerabilities. My minimized sample query is:&lt;/P&gt;

&lt;P&gt;index=vuln&lt;BR /&gt;
| stats dc(dns) as impacted_asset_count by Vuln_ID, CVE&lt;/P&gt;

&lt;P&gt;When stats populate, it shows that one vulnerability is affecting multiple assets and several Vuln_IDs have multiple CVEs.&lt;/P&gt;

&lt;P&gt;Sample:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/287665-1.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;As you notice, there are multiple CVEs in some Vuln IDs. I need to have CVEs seperated/expanded/extracted as they are multivalue field and then have correct stats. Each CVE is impacting more than one assets so, I need it like this:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/287666-2.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Thanks in-advance!!!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:42:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-issue-with-multivalue-field/m-p/499976#M140825</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2020-09-30T04:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Stats issue with multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-issue-with-multivalue-field/m-p/499977#M140826</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=vuln
| stats dc(dns) as impacted_asset_count values(Vuln_ID) as Vuln_ID by CVE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is better.&lt;BR /&gt;
&lt;CODE&gt;by&lt;/CODE&gt; extracts multi values&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 06:48:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-issue-with-multivalue-field/m-p/499977#M140826</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-25T06:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Stats issue with multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-issue-with-multivalue-field/m-p/499978#M140827</link>
      <description>&lt;P&gt;Hi @ to4kawa&lt;/P&gt;

&lt;P&gt;This does not do it because cve is a multivalue field. AT minimum, it has one CVE and there are several vuln ids which have more than one CVE as shown in first screenshot. cves need to be extracted using regex or eval and then do stats will do it looks like. I will need regex or eval pls.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 13:31:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-issue-with-multivalue-field/m-p/499978#M140827</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2020-03-25T13:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Stats issue with multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-issue-with-multivalue-field/m-p/499979#M140828</link>
      <description>&lt;P&gt;I ended up using:&lt;/P&gt;

&lt;P&gt;| makemv delim="," cve&lt;BR /&gt;
| mvexpand cve&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 16:20:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-issue-with-multivalue-field/m-p/499979#M140828</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2020-03-25T16:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Stats issue with multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-issue-with-multivalue-field/m-p/499980#M140829</link>
      <description>&lt;P&gt;I see, my answer is updated&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 20:56:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-issue-with-multivalue-field/m-p/499980#M140829</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-25T20:56:33Z</dc:date>
    </item>
  </channel>
</rss>

