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!

SplunkTrust | Where Are They Now - Michael Uschmann

The Background Five years ago, Splunk published several videos showcasing members of the SplunkTrust to share ...

Admin Your Splunk Cloud, Your Way

Join us to maximize different techniques to best tune Splunk Cloud. In this Tech Enablement, you will get ...

Cloud Platform | Discontinuing support for TLS version 1.0 and 1.1

Overview Transport Layer Security (TLS) is a security communications protocol that lets two computers, ...