Splunk Search

How to remove missing value timestamps for accurate delta calculation

Bart
Explorer

HI,

I'm running a search for two different timeranges, for missing datapoint pair it's creating discrepancy with my calculations.
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.

timedelta.png

Got an idea with below but despite moving around my stats 

| stats count values(marker) as pairstamp by _time
| where count=2

count2.png

Labels (3)
0 Karma

Bart
Explorer

my search is:
earliest="4/1/2024:00:00:00" latest="8/1/2024:00:00:00"

| bin span=1h _time
| addinfo
| eval marker = if(_time < (relative_time(info_min_time,"+1mon@mon")), "April", "July")
| eval _time = if(_time < (relative_time(info_min_time,"+1mon@mon")), _time + 91*24*3600, _time)
...
| where _time>=relative_time(now(), "-1mon@mon")
| stats max(sig_value) as signature by _time marker
| delta signature as diff_delta
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Try using eventstats

| eventstats count by _time
| where count=2
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...