<?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 based off a time and an ID in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-Group-events-based-off-a-time-and-an-ID/m-p/626253#M217661</link>
    <description>&lt;P&gt;That worked great, thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jan 2023 20:31:40 GMT</pubDate>
    <dc:creator>add53</dc:creator>
    <dc:date>2023-01-06T20:31:40Z</dc:date>
    <item>
      <title>How to create Group events based off a time and an ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-Group-events-based-off-a-time-and-an-ID/m-p/626229#M217655</link>
      <description>&lt;P&gt;I'm fairly new to Splunk and I am having some trouble grouping somethings they way I want&lt;/P&gt;
&lt;P&gt;I have some data which all have a certain ID and a multitude of other values. I want to be able to group this data if they have the same ID, but only group them in a maximum time interval of 24 hours. This I figured out pretty easily, however, the problem is I would also like to see the actual duration of events.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, say I have 10 or so events that all have the same ID and they occur within a 5 minute period, I'd want to group them together. I'd also like to be able to group 10 or so events that have the same ID and occur within a 23 hour period.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've tried using bins, which groups them properly, but then it gives them all the exact same time, so I don't know how to find the exact duration. I've also tried using time charts and transactions with poor results.&lt;/P&gt;
&lt;P&gt;Does anyone have any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 22:30:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-Group-events-based-off-a-time-and-an-ID/m-p/626229#M217655</guid>
      <dc:creator>add53</dc:creator>
      <dc:date>2023-01-06T22:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Group events based off a time and an ID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-Group-events-based-off-a-time-and-an-ID/m-p/626231#M217657</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| bin span=24h _time as time_bucket
| stats min(_time) as earliest max(_time) as latest by time_bucket id
| eval duration = latest - earliest&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 06 Jan 2023 19:05:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-Group-events-based-off-a-time-and-an-ID/m-p/626231#M217657</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-06T19:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Group events based off a time and an ID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-Group-events-based-off-a-time-and-an-ID/m-p/626253#M217661</link>
      <description>&lt;P&gt;That worked great, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 20:31:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-Group-events-based-off-a-time-and-an-ID/m-p/626253#M217661</guid>
      <dc:creator>add53</dc:creator>
      <dc:date>2023-01-06T20:31:40Z</dc:date>
    </item>
  </channel>
</rss>

