Splunk Search

I have a order data, I need to trend the order for last 15 days, plotting three values high, low and current in a same graph

petersamueljohn
New Member

I have a order data, I need to trend the order for last 15 days, plotting three values high, low and current in a same graph
index=abc
sourcetype=logg
Ordertype= retail or online
and I need to trend with high low and today's value in last 15 days.

Tags (1)
0 Karma

to4kawa
Ultra Champion
| makeresults 
| eval _raw="AM,Version=08_07,NumberOfRequests=7511,LastRequestTime=3/19/2020 11:19:34 AM,InactiveTimeSpan=0.0 minutes
AM,Version=08_07,NumberOfRequests=1,LastRequestTime=3/19/2020 11:19:34 AM,InactiveTimeSpan=0.0 minutes
AM,Version=08_07,NumberOfRequests=7,LastRequestTime=3/19/2020 11:18:45 AM,InactiveTimeSpan=0.8 minutes"
| rex max_match=0 "NumberOfRequests=(?<numberofrequests>\d+)"
| rex "LastRequestTime=(?<date>\S+)"
| stats sum(numberofrequests) as total min(numberofrequests) as low max(numberofrequests) as high by date

and I need to trend with high low and today's value in last 15 days.
There is no log, so you can do it.

0 Karma

petersamueljohn
New Member

AM,Version=08_07,NumberOfRequests=7511,LastRequestTime=3/19/2020 11:19:34 AM,InactiveTimeSpan=0.0 minutes
AM,Version=08_07,NumberOfRequests=1,LastRequestTime=3/19/2020 11:19:34 AM,InactiveTimeSpan=0.0 minutes
AM,Version=08_07,NumberOfRequests=7,LastRequestTime=3/19/2020 11:18:45 AM,InactiveTimeSpan=0.8 minutes

this is for single event, i need to show the current value , which is the sum(numberofrequests) for the latest minute

0 Karma
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 ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...