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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...