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!

A Four-Part Event Series: Full Stack Observability For the AI Era

As AI reshapes applications, infrastructure, and the way teams operate, the traditional boundaries of ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...