<?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 Check if a date is within interval of another record in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Check-if-a-date-is-within-interval-of-another-record/m-p/570194#M198735</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have the following data and would like to check, for those records with the same ID, if one record has CREATED_DATE within CREATED_DATE and RESOLVED_DATE of another one. So in the example, the first record in blue was created on 10-4 and resolved on 10-07, where the second record with the same ID was created on 10-05 while the other one was open. Can we do this kind of check in Splunk?&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="24px"&gt;ID&lt;/TD&gt;&lt;TD height="24px"&gt;CREATED_DATE&lt;/TD&gt;&lt;TD height="24px"&gt;RESOLVED_DATE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="24px"&gt;&lt;FONT color="#0000FF"&gt;123&lt;/FONT&gt;&lt;/TD&gt;&lt;TD height="24px"&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;2021-10-04 19:30:35&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD height="24px"&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;2021-10-07 15:13:16&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;123&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;&lt;SPAN&gt;2021-10-05 16:11:25&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;&lt;SPAN&gt;2021-10-15 12:05:32&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;456&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;2021-03-05 10:10:13&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;2021-05-05 11:05:21&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We'd need another column, say CHECK, that says "overlap" when the second record was created between the range of the first one, with the same ID.&lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;/P&gt;</description>
    <pubDate>Fri, 08 Oct 2021 10:47:19 GMT</pubDate>
    <dc:creator>yvassilyeva</dc:creator>
    <dc:date>2021-10-08T10:47:19Z</dc:date>
    <item>
      <title>Check if a date is within interval of another record</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-if-a-date-is-within-interval-of-another-record/m-p/570194#M198735</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have the following data and would like to check, for those records with the same ID, if one record has CREATED_DATE within CREATED_DATE and RESOLVED_DATE of another one. So in the example, the first record in blue was created on 10-4 and resolved on 10-07, where the second record with the same ID was created on 10-05 while the other one was open. Can we do this kind of check in Splunk?&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="24px"&gt;ID&lt;/TD&gt;&lt;TD height="24px"&gt;CREATED_DATE&lt;/TD&gt;&lt;TD height="24px"&gt;RESOLVED_DATE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="24px"&gt;&lt;FONT color="#0000FF"&gt;123&lt;/FONT&gt;&lt;/TD&gt;&lt;TD height="24px"&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;2021-10-04 19:30:35&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD height="24px"&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;2021-10-07 15:13:16&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;123&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;&lt;SPAN&gt;2021-10-05 16:11:25&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;&lt;SPAN&gt;2021-10-15 12:05:32&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;456&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;2021-03-05 10:10:13&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;2021-05-05 11:05:21&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We'd need another column, say CHECK, that says "overlap" when the second record was created between the range of the first one, with the same ID.&lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 10:47:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-if-a-date-is-within-interval-of-another-record/m-p/570194#M198735</guid>
      <dc:creator>yvassilyeva</dc:creator>
      <dc:date>2021-10-08T10:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a date is within interval of another record</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-if-a-date-is-within-interval-of-another-record/m-p/570203#M198738</link>
      <description>&lt;LI-CODE lang="markup"&gt;| sort 0 ID CREATED_DATE
| streamstats values(RESOLVED_DATE) as PREVIOUS_RESOLVED_DATE current=f window=1 by ID
| eval overlap=if(isnotnull(PREVIOUS_RESOLVED_DATE) AND CREATED_DATE &amp;lt; PREVIOUS_RESOLVED_DATE, "Overlap", null())&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 08 Oct 2021 12:15:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-if-a-date-is-within-interval-of-another-record/m-p/570203#M198738</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-08T12:15:45Z</dc:date>
    </item>
  </channel>
</rss>

