<?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 How to count values across multiple similarly named fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-values-across-multiple-similarly-named-fields/m-p/525217#M148186</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Given 2 events:&lt;/P&gt;&lt;P&gt;SummaryDialog Component1=wxt_12 Component2=wyt_1 Component3=wzt_3 Component4=wbt_2&lt;/P&gt;&lt;P&gt;SummaryDialog Component1=wyt_2 Component2=wxt_12 Component3=wbt_2 Component4=wzt_1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get a summary of the occurrences of each unique value regardless of the component:&lt;/P&gt;&lt;P&gt;wbt_2 2&lt;/P&gt;&lt;P&gt;wxt_12 2&lt;/P&gt;&lt;P&gt;wyt_1 1&lt;/P&gt;&lt;P&gt;wyt_2 1&lt;/P&gt;&lt;P&gt;wzt_3 1&lt;/P&gt;&lt;P&gt;wzt_6 1&lt;/P&gt;&lt;P&gt;Naively, I hoped this would work:&lt;/P&gt;&lt;P&gt;index=cls_preprod SummaryDialog | stats count by component*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does not (returns no results).&amp;nbsp; Does anyone have any suggestions?&amp;nbsp; I've been googling for awhile and have not hit upon a viable solution. Note there a N number of components&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;(and forgive me if this is a basic question.. i am very basic splunk user)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Oct 2020 03:46:02 GMT</pubDate>
    <dc:creator>o_cardoso</dc:creator>
    <dc:date>2020-10-18T03:46:02Z</dc:date>
    <item>
      <title>How to count values across multiple similarly named fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-values-across-multiple-similarly-named-fields/m-p/525217#M148186</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Given 2 events:&lt;/P&gt;&lt;P&gt;SummaryDialog Component1=wxt_12 Component2=wyt_1 Component3=wzt_3 Component4=wbt_2&lt;/P&gt;&lt;P&gt;SummaryDialog Component1=wyt_2 Component2=wxt_12 Component3=wbt_2 Component4=wzt_1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get a summary of the occurrences of each unique value regardless of the component:&lt;/P&gt;&lt;P&gt;wbt_2 2&lt;/P&gt;&lt;P&gt;wxt_12 2&lt;/P&gt;&lt;P&gt;wyt_1 1&lt;/P&gt;&lt;P&gt;wyt_2 1&lt;/P&gt;&lt;P&gt;wzt_3 1&lt;/P&gt;&lt;P&gt;wzt_6 1&lt;/P&gt;&lt;P&gt;Naively, I hoped this would work:&lt;/P&gt;&lt;P&gt;index=cls_preprod SummaryDialog | stats count by component*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does not (returns no results).&amp;nbsp; Does anyone have any suggestions?&amp;nbsp; I've been googling for awhile and have not hit upon a viable solution. Note there a N number of components&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;(and forgive me if this is a basic question.. i am very basic splunk user)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2020 03:46:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-values-across-multiple-similarly-named-fields/m-p/525217#M148186</guid>
      <dc:creator>o_cardoso</dc:creator>
      <dc:date>2020-10-18T03:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to count values across multiple similarly named fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-values-across-multiple-similarly-named-fields/m-p/525224#M148190</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex max_match=0 "Component[^=]+=(?&amp;lt;component&amp;gt;\S+)"
| stats count by component&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 18 Oct 2020 07:06:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-values-across-multiple-similarly-named-fields/m-p/525224#M148190</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-18T07:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to count values across multiple similarly named fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-values-across-multiple-similarly-named-fields/m-p/525250#M148197</link>
      <description>&lt;P&gt;works great, thanks!!&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2020 14:30:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-values-across-multiple-similarly-named-fields/m-p/525250#M148197</guid>
      <dc:creator>o_cardoso</dc:creator>
      <dc:date>2020-10-18T14:30:38Z</dc:date>
    </item>
  </channel>
</rss>

