<?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: multi pattern string calculation on fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/multi-pattern-string-calculation-on-fields/m-p/197662#M57104</link>
    <description>&lt;P&gt;Append this to your search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...  | rex "Counts=\[(?&amp;lt;Counts&amp;gt;[^\]]+)\]" | eval Counts = replace(Counts, "\w+=", "") | makemv Counts delim="," | eval FormCount = mvcount(Counts) | streamstats count as eventnum | eventstats sum(Counts) as FormTotal by eventnum
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 08 Nov 2014 12:20:56 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-11-08T12:20:56Z</dc:date>
    <item>
      <title>multi pattern string calculation on fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multi-pattern-string-calculation-on-fields/m-p/197661#M57103</link>
      <description>&lt;P&gt;I have log coming in this format. this value is dynamic and keep changing in terms of Form and numbers&lt;BR /&gt;
Counts=[100A=0,100B=1,100C=2,100D=1,100E=3]&lt;/P&gt;

&lt;P&gt;I want to first calculate how many form I have collected in this example &lt;BR /&gt;
FormCount=5&lt;/P&gt;

&lt;P&gt;I want to calculate Total Form calculated &lt;BR /&gt;
FormTotal=7&lt;/P&gt;

&lt;P&gt;Please let me know&lt;/P&gt;</description>
      <pubDate>Sat, 08 Nov 2014 09:30:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multi-pattern-string-calculation-on-fields/m-p/197661#M57103</guid>
      <dc:creator>sumitnagal</dc:creator>
      <dc:date>2014-11-08T09:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: multi pattern string calculation on fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multi-pattern-string-calculation-on-fields/m-p/197662#M57104</link>
      <description>&lt;P&gt;Append this to your search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...  | rex "Counts=\[(?&amp;lt;Counts&amp;gt;[^\]]+)\]" | eval Counts = replace(Counts, "\w+=", "") | makemv Counts delim="," | eval FormCount = mvcount(Counts) | streamstats count as eventnum | eventstats sum(Counts) as FormTotal by eventnum
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 08 Nov 2014 12:20:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multi-pattern-string-calculation-on-fields/m-p/197662#M57104</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-11-08T12:20:56Z</dc:date>
    </item>
  </channel>
</rss>

