Splunk Search

How to compare data for a scheduled search for the past 1 hour with the previous 24 hours?

rodrigorsilva
Communicator

Hi,

I have two scheduled searches that run every 1 hour with retroactive time interval (earliest = -1h). I need to perform a comparison if a certain condition occurs within this range, so I have to increase the retroactive time (earliest = -24h), but still keep the condition of the events that occurred within the 1 hour interval. How do I do this?

0 Karma
1 Solution

dolivasoh
Contributor

Use bucket spanning to set your sample rate to 1 hour

| bucket _time span=1h

View solution in original post

dolivasoh
Contributor

Use bucket spanning to set your sample rate to 1 hour

| bucket _time span=1h

rodrigorsilva
Communicator

Hi,

It works, tks.

Rodrigo Ribeiro

0 Karma
Get Updates on the Splunk Community!

What’s new on Splunk Lantern in August

This month’s Splunk Lantern update gives you the low-down on all of the articles we’ve published over the past ...

Welcome to the Future of Data Search & Exploration

You have more data coming at you than ever before. Over the next five years, the total amount of digital data ...

This Week's Community Digest - Splunk Community Happenings [8.3.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...