Splunk Cloud Platform

Unable to get the correct visualization

chinmay25
Path Finder

I have been editing the following query in order to get the duration for workload.....how ever while creating the visualization we only see duration of the bar chart......i am looking to see if we can get something with regards to the workload and/0r Jobname.

| inputlookup cyclestarttimes.csv
| lookup cycleendtimes.csv CYCLE WORKLOAD
| search WORKLOAD=F91
| where isnotnull(ENDTIME)
| eval STARTC = "2021-08-19"
| eval ENDC = "2021-08-20"
| eval STARTC = strptime(STARTC, "%Y-%m-%d")
| eval ENDC = strptime(ENDC, "%Y-%m-%d")
| eval CYCLEC = strptime(CYCLE, "%Y-%m-%d")
| where CYCLEC >= STARTC AND CYCLEC <= ENDC
| stats values(STARTTIME) as START values(ENDTIME) as STOP by WORKLOAD CYCLE
| eval _time = strptime(START, "%Y-%m-%d %H:%M:%S")
| eval end_time = strptime(STOP, "%Y-%m-%d %H:%M:%S")
| eval duration = (end_time - _time) * 1000
| eval JOBNAME = WORKLOAD
| stats count by _time,duration, WORKLOAD, JOBNAME
| table _time WORKLOAD JOBNAME duration

Labels (1)
0 Karma
Get Updates on the Splunk Community!

Fall Into Learning with New Splunk Education Courses

Every month, Splunk Education releases new courses to help you branch out, strengthen your data science roots, ...

Super Optimize your Splunk Stats Searches: Unlocking the Power of tstats, TERM, and ...

By Martin Hettervik, Senior Consultant and Team Leader at Accelerate at Iver, Splunk MVPThe stats command is ...

How Splunk Observability Cloud Prevented a Major Payment Crisis in Minutes

Your bank's payment processing system is humming along during a busy afternoon, handling millions in hourly ...