<?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 group values of the same field and display timechart counts for each group month over month? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-of-the-same-field-and-display-timechart/m-p/206045#M59932</link>
    <description>&lt;P&gt;If you put .* in front of and behind CyFin , what happens?&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2016 20:51:01 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2016-11-02T20:51:01Z</dc:date>
    <item>
      <title>How to group values of the same field and display timechart counts for each group month over month?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-of-the-same-field-and-display-timechart/m-p/206042#M59929</link>
      <description>&lt;P&gt;I first need to group values of the same field...&lt;/P&gt;

&lt;P&gt;Group1 (values match A1, A2, A3,...)&lt;BR /&gt;
Group2 (values match B1, B2, B3,...)&lt;BR /&gt;
Group3 (values match C1, C2, C3,...)&lt;/P&gt;

&lt;P&gt;...then, I need to display the counts for each group (Group1, Group2, Group3) month-over-month.&lt;/P&gt;

&lt;P&gt;Thanks for any assistance!&lt;BR /&gt;
Trista&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 17:05:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-of-the-same-field-and-display-timechart/m-p/206042#M59929</guid>
      <dc:creator>tmaltizo</dc:creator>
      <dc:date>2016-11-01T17:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to group values of the same field and display timechart counts for each group month over month?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-of-the-same-field-and-display-timechart/m-p/206043#M59930</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; ...| eval group1=if(match(fieldName,"A.*"),1,0) | eval group2=if(match(fieldName,"B.*"),1,0) | eval group3=if(match(fieldName,"C.*"),1,0) | stats count by group*



 The A.*, B.*, &amp;amp; C.* should be regular expressions that match the value of FieldName to the desired/correct group number.


 The stats group* will do the count for each group. 


 The "..." Is where you put your foot search.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;FieldName should be the name of the field that contains the data &lt;/P&gt;

&lt;P&gt;Let me know if that helps!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 01:31:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-of-the-same-field-and-display-timechart/m-p/206043#M59930</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-11-02T01:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to group values of the same field and display timechart counts for each group month over month?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-of-the-same-field-and-display-timechart/m-p/206044#M59931</link>
      <description>&lt;P&gt;Thanks for your response @jkat54!&lt;/P&gt;

&lt;P&gt;I tried running specifically the following...&lt;/P&gt;

&lt;P&gt;... | eval group1=if(match(message_subject,"&lt;EM&gt;CyFin&lt;/EM&gt;"),1,0) | stats count by group*&lt;/P&gt;

&lt;P&gt;I'm getting the error below...&lt;/P&gt;

&lt;P&gt;Error in 'eval' command: Regex: nothing to repeat&lt;BR /&gt;
The search job has failed due to an error. You may be able to view the job in the Job Inspector.&lt;/P&gt;

&lt;P&gt;Please advise.....&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 20:21:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-of-the-same-field-and-display-timechart/m-p/206044#M59931</guid>
      <dc:creator>tmaltizo</dc:creator>
      <dc:date>2016-11-02T20:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to group values of the same field and display timechart counts for each group month over month?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-of-the-same-field-and-display-timechart/m-p/206045#M59932</link>
      <description>&lt;P&gt;If you put .* in front of and behind CyFin , what happens?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 20:51:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-of-the-same-field-and-display-timechart/m-p/206045#M59932</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-11-02T20:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to group values of the same field and display timechart counts for each group month over month?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-of-the-same-field-and-display-timechart/m-p/206046#M59933</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199197"&gt;@jkat54&lt;/a&gt;&lt;/P&gt;

&lt;P&gt;I'm getting numbers for each of the following searches. I just want to put them together in one search and output each count....&lt;/P&gt;

&lt;P&gt;Note that asterisks are in the front and back of each string within the quotes and no backslashes.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;index=index message_subject="[CyFin" | stats count(message_subject)&lt;/LI&gt;
&lt;LI&gt;index=index message_subject="[CyberIntel Confidential]" | stats count(message_subject)&lt;/LI&gt;
&lt;LI&gt;index=index message_subject="[TNT-" | stats count(message_subject)&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Thanks for your continued help!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:40:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-of-the-same-field-and-display-timechart/m-p/206046#M59933</guid>
      <dc:creator>tmaltizo</dc:creator>
      <dc:date>2020-09-29T11:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to group values of the same field and display timechart counts for each group month over month?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-of-the-same-field-and-display-timechart/m-p/206047#M59934</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; index=index message_subject="example1" OR message_subject="example2" OR message_subject="example3" | stats count by message_subject
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Nov 2016 00:44:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-of-the-same-field-and-display-timechart/m-p/206047#M59934</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-11-04T00:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to group values of the same field and display timechart counts for each group month over month?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-of-the-same-field-and-display-timechart/m-p/521966#M147166</link>
      <description>&lt;P&gt;If they are all in the same index you can do this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;index=index | stats count by message_subject&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;index=index message_subject="[TNT-" OR message_subject="[CyberIntel Confidential]" OR message_subject="[CyFin" | stats count by message_subject&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If they are in different indexes, you can do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;index=index1 message_subject="[TNT-" OR index=index2 message_subject="[CyberIntel Confidential]" OR index=index3 message_subject="[CyFin" | stats count by message_subject&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:51:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-of-the-same-field-and-display-timechart/m-p/521966#M147166</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2020-09-29T11:51:55Z</dc:date>
    </item>
  </channel>
</rss>

