<?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: Group events by specific field and generate timechart for both groups in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Grouping-events-by-specific-field-and-generate-timechart-for/m-p/651405#M225207</link>
    <description>&lt;P&gt;You can use the grouping you explained with some splunk commands to accomplish that.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| windbag 
| eval group = if(lang="Euro","groupA","groupB") 
| timechart count by group&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This is just an example with random data that you can try in your environment . You can change your grouping conditions in the if statement to your field1=your unique value.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2023 05:11:59 GMT</pubDate>
    <dc:creator>diogofgm</dc:creator>
    <dc:date>2023-07-21T05:11:59Z</dc:date>
    <item>
      <title>Grouping events by specific field and generate timechart for both groups?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-events-by-specific-field-and-generate-timechart-for/m-p/651399#M225205</link>
      <description>&lt;P&gt;There is a complicated requirement for me, the splunk beginner. Hope you can give me some advice.&lt;/P&gt;
&lt;P&gt;The splunk version: 9.0.2303.201&lt;BR /&gt;&lt;BR /&gt;Since there are a lot of logs(events) that meet my search&amp;nbsp;requirement, I want to generate a time chart with those logs.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I want to group those logs by a&amp;nbsp;specific field named "field1":&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;For events in group A&lt;/STRONG&gt;, their "field1" value is unique when compared with all other events;&lt;BR /&gt;&lt;STRONG&gt;For events in&amp;nbsp;group B&lt;/STRONG&gt;,&amp;nbsp;their "field1" value has been repeated once when compared with other events, which means when I search the value of&amp;nbsp;"field1"(group B),&amp;nbsp; it will return two events.&lt;BR /&gt;&lt;BR /&gt;Based on this premise,&amp;nbsp; I want to count the event that happened times of both&amp;nbsp;two groups, and display them in a timeline(time chart), what can I do?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 17:26:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-events-by-specific-field-and-generate-timechart-for/m-p/651399#M225205</guid>
      <dc:creator>Sanshan</dc:creator>
      <dc:date>2023-07-21T17:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Group events by specific field and generate timechart for both groups</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-events-by-specific-field-and-generate-timechart-for/m-p/651403#M225206</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258928"&gt;@Sanshan&lt;/a&gt;&amp;nbsp;Would you be able to share example with values? Also, an image with the expected chart would be helpful to answer&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 05:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-events-by-specific-field-and-generate-timechart-for/m-p/651403#M225206</guid>
      <dc:creator>meetmshah</dc:creator>
      <dc:date>2023-07-21T05:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Group events by specific field and generate timechart for both groups</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-events-by-specific-field-and-generate-timechart-for/m-p/651405#M225207</link>
      <description>&lt;P&gt;You can use the grouping you explained with some splunk commands to accomplish that.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| windbag 
| eval group = if(lang="Euro","groupA","groupB") 
| timechart count by group&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This is just an example with random data that you can try in your environment . You can change your grouping conditions in the if statement to your field1=your unique value.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 05:11:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-events-by-specific-field-and-generate-timechart-for/m-p/651405#M225207</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2023-07-21T05:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Group events by specific field and generate timechart for both groups</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-events-by-specific-field-and-generate-timechart-for/m-p/651408#M225208</link>
      <description>&lt;P&gt;Sure, the "&lt;SPAN&gt;field1&lt;/SPAN&gt;" has a value of random UUID to mark a single trigger behavior.&lt;BR /&gt;But in some cases, it returns two times' logs with the same&amp;nbsp;UUID, so I really need to separate the two situations(A: A unique&amp;nbsp;UUID only appeared in one event; B: In two different events, they have the same UUID).&lt;BR /&gt;&lt;BR /&gt;For the chart:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="timechart.jpeg" style="width: 200px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26385i3A0F34159933041C/image-size/small?v=v2&amp;amp;px=200" role="button" title="timechart.jpeg" alt="timechart.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 05:40:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-events-by-specific-field-and-generate-timechart-for/m-p/651408#M225208</guid>
      <dc:creator>Sanshan</dc:creator>
      <dc:date>2023-07-21T05:40:28Z</dc:date>
    </item>
  </channel>
</rss>

