<?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 How to remove missing value timestamps for accurate delta calculation in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-missing-value-timestamps-for-accurate-delta/m-p/695437#M236476</link>
    <description>&lt;P&gt;HI,&lt;/P&gt;
&lt;P&gt;I'm running a search for two different timeranges, for missing datapoint pair it's creating discrepancy with my calculations.&lt;BR /&gt;I need accurate diff so fillnull value is not an option, I would prefer want to remove _time row if it's missing a pair for the same timestamp, any hints appreciated.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="timedelta.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/32081iF0BB554C11EFEC6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="timedelta.png" alt="timedelta.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Got an idea with below but despite moving around my stats&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| stats count values(marker) as pairstamp by _time
| where count=2&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="count2.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/32082i028AC091178AD8C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="count2.png" alt="count2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Aug 2024 17:41:52 GMT</pubDate>
    <dc:creator>Bart</dc:creator>
    <dc:date>2024-08-06T17:41:52Z</dc:date>
    <item>
      <title>How to remove missing value timestamps for accurate delta calculation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-missing-value-timestamps-for-accurate-delta/m-p/695437#M236476</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;
&lt;P&gt;I'm running a search for two different timeranges, for missing datapoint pair it's creating discrepancy with my calculations.&lt;BR /&gt;I need accurate diff so fillnull value is not an option, I would prefer want to remove _time row if it's missing a pair for the same timestamp, any hints appreciated.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="timedelta.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/32081iF0BB554C11EFEC6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="timedelta.png" alt="timedelta.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Got an idea with below but despite moving around my stats&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| stats count values(marker) as pairstamp by _time
| where count=2&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="count2.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/32082i028AC091178AD8C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="count2.png" alt="count2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 17:41:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-missing-value-timestamps-for-accurate-delta/m-p/695437#M236476</guid>
      <dc:creator>Bart</dc:creator>
      <dc:date>2024-08-06T17:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove missing value timestamps for accurate delta calculation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-missing-value-timestamps-for-accurate-delta/m-p/695439#M236478</link>
      <description>&lt;P&gt;my search is:&lt;BR /&gt;earliest="4/1/2024:00:00:00" latest="8/1/2024:00:00:00"&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| bin span=1h _time
| addinfo
| eval marker = if(_time &amp;lt; (relative_time(info_min_time,"+1mon@mon")), "April", "July")
| eval _time = if(_time &amp;lt; (relative_time(info_min_time,"+1mon@mon")), _time + 91*24*3600, _time)
...
| where _time&amp;gt;=relative_time(now(), "-1mon@mon")
| stats max(sig_value) as signature by _time marker
| delta signature as diff_delta&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 06 Aug 2024 17:43:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-missing-value-timestamps-for-accurate-delta/m-p/695439#M236478</guid>
      <dc:creator>Bart</dc:creator>
      <dc:date>2024-08-06T17:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove missing value timestamps for accurate delta calculation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-missing-value-timestamps-for-accurate-delta/m-p/695441#M236479</link>
      <description>&lt;P&gt;Try using eventstats&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eventstats count by _time
| where count=2&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 06 Aug 2024 16:24:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-missing-value-timestamps-for-accurate-delta/m-p/695441#M236479</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-08-06T16:24:17Z</dc:date>
    </item>
  </channel>
</rss>

