Splunk Search

every 5min for the last 15min

LauraBre
Communicator

Hello,

I have this following search:

source="Laura_ACS" earliest=-15m latest=now| eventstats count as "totalVE"| eventstats count(eval(STAT_VE="N")) as "totalVENO"|eval percent=(totalVENO/totalVE)*100 | stats values(totalVENO) AS COMPTEUR, values(percent) AS TAUX|search TAUX=100

I want to calculate this search every 5min for the last 15min. How can I do it?

Thx by advance,

Laura

Tags (1)
0 Karma
1 Solution

LauraBre
Communicator

I resolve my problem: this my actually search:

source="Laura_ACS" earliest=-15m latest=now| bucket _time span=5m | eventstats count as "totalVE" by _time| eventstats count(eval(SD_STAT_PA="N")) as "totalVENO" by _time|eval percent=(totalVENO/totalVE)*100  |stats values(totalVENO) AS COMPTEUR, values(percent) AS TAUX by _time |search TAUX=100

View solution in original post

LauraBre
Communicator

I resolve my problem: this my actually search:

source="Laura_ACS" earliest=-15m latest=now| bucket _time span=5m | eventstats count as "totalVE" by _time| eventstats count(eval(SD_STAT_PA="N")) as "totalVENO" by _time|eval percent=(totalVENO/totalVE)*100  |stats values(totalVENO) AS COMPTEUR, values(percent) AS TAUX by _time |search TAUX=100
Get Updates on the Splunk Community!

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...