<?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 Group by a substring within a event results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Group-by-a-substring-within-a-event-results/m-p/581680#M202630</link>
    <description>&lt;P&gt;I am actually new to splunk and trying to learn . Is there a way to group by the results based on a particular string. Although i found some of the answers here already, but its confusing for me. It will be really helpful if someone can answer based on my use case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the sample log that i am getting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[2022-01-19T13:30:15.664+00:00] [odi] [ERROR] [ODI-1134] [oracle.odi.agent] [tid: 304720] [ecid: 0000NtmXuVIC^qqMwMmZMG1XqvzZ000cRu,0:68:129:176:208:135] [oracle.odi.runtime.MrepExtId: 1501670917734] [oracle.odi.runtime.AgentName: OracleDIAgent2] [oracle.odi.runtime.ExecPhase: ExecuteTask] [oracle.odi.runtime.OdiUser: _odi] [oracle.odi.runtime.WrepName: WORKREP] [oracle.odi.runtime.ScenarioName: WEB_BOOKINGS_MV] [oracle.odi.runtime.ScenarioVer: 001] [oracle.odi.runtime.LoadPlanName: wfl_WebDataSet_MV_Refresh_2TimesAD] &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to group the results based on&amp;nbsp;&lt;SPAN class=""&gt;oracle.odi.runtime&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;LoadPlanName and find the latest log of it. Could someone please assist.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 15:28:50 GMT</pubDate>
    <dc:creator>akash_burnwal</dc:creator>
    <dc:date>2022-01-19T15:28:50Z</dc:date>
    <item>
      <title>Group by a substring within a event results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-by-a-substring-within-a-event-results/m-p/581680#M202630</link>
      <description>&lt;P&gt;I am actually new to splunk and trying to learn . Is there a way to group by the results based on a particular string. Although i found some of the answers here already, but its confusing for me. It will be really helpful if someone can answer based on my use case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the sample log that i am getting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[2022-01-19T13:30:15.664+00:00] [odi] [ERROR] [ODI-1134] [oracle.odi.agent] [tid: 304720] [ecid: 0000NtmXuVIC^qqMwMmZMG1XqvzZ000cRu,0:68:129:176:208:135] [oracle.odi.runtime.MrepExtId: 1501670917734] [oracle.odi.runtime.AgentName: OracleDIAgent2] [oracle.odi.runtime.ExecPhase: ExecuteTask] [oracle.odi.runtime.OdiUser: _odi] [oracle.odi.runtime.WrepName: WORKREP] [oracle.odi.runtime.ScenarioName: WEB_BOOKINGS_MV] [oracle.odi.runtime.ScenarioVer: 001] [oracle.odi.runtime.LoadPlanName: wfl_WebDataSet_MV_Refresh_2TimesAD] &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to group the results based on&amp;nbsp;&lt;SPAN class=""&gt;oracle.odi.runtime&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;LoadPlanName and find the latest log of it. Could someone please assist.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 15:28:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-by-a-substring-within-a-event-results/m-p/581680#M202630</guid>
      <dc:creator>akash_burnwal</dc:creator>
      <dc:date>2022-01-19T15:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a substring within a event results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-by-a-substring-within-a-event-results/m-p/581684#M202634</link>
      <description>&lt;P&gt;Has this field already been extracted?&lt;/P&gt;&lt;P&gt;What do you mean by group?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 15:34:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-by-a-substring-within-a-event-results/m-p/581684#M202634</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-19T15:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a substring within a event results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-by-a-substring-within-a-event-results/m-p/581695#M202639</link>
      <description>&lt;P&gt;No, the field is not extracted. what i meant by grouping is based on&amp;nbsp;&lt;SPAN class=""&gt;oracle.odi.runtime&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;LoadPlanName string i want to filter the results. So consider that , i have 3 results as mentioned above which had [oracle.odi.runtime&lt;SPAN&gt;.&lt;/SPAN&gt;LoadPlanName : "abc"]&amp;nbsp; and for [oracle.odi.runtime&lt;SPAN&gt;.&lt;/SPAN&gt;LoadPlanName : "cde"] i have another 3 results. In this case, i want to fetch only the latest log for each of them.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 15:58:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-by-a-substring-within-a-event-results/m-p/581695#M202639</guid>
      <dc:creator>akash_burnwal</dc:creator>
      <dc:date>2022-01-19T15:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a substring within a event results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-by-a-substring-within-a-event-results/m-p/581700#M202641</link>
      <description>&lt;P&gt;You could try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\[oracle\.odi\.runtime\.LoadPlanNam: (?&amp;lt;LoadPlanName&amp;gt;[^\]]*)\]"
| stats latest(_raw) as _raw by LoadPlanName&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Jan 2022 16:21:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-by-a-substring-within-a-event-results/m-p/581700#M202641</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-19T16:21:42Z</dc:date>
    </item>
  </channel>
</rss>

