Splunk Search

Chart With time as the data points

nwoolley
Engager

I have created  chart with date and end time I need to chart the end times but it doesnt work on visualisation 

 

I need to put start datetime on the X axis  ( start date would be fine actually) and end datetime as the data points (Y axis) 

Any help gratefully received  the word time and chart have revealed too many other issues in splunk base search 

index=billing sourcetype=billing_invoice_poller HikariPool "Start completed."
| bin _time span=1d as day
| convert timeformat="%Y-%m-%d %H:%M:%S" ctime(_time) AS c_time
| stats earliest(c_time) as Start_Time by day
| appendcols [search index=billing sourcetype=billing_invoice_poller HikariPool "Shutdown completed."
| bin _time span=1d as day
| convert timeformat="%Y-%m-%d %H:%M:%S" ctime(_time) AS d_time
| stats latest(d_time) as End_Time by day]
| eval it = strptime(Start_Time, "%Y-%m-%d %H:%M:%S.%3N")
| eval ot = strptime(End_Time, "%Y-%m-%d %H:%M:%S.%3N")
| eval diff = tostring((ot - it), "duration")
| eval diff1 = strptime(diff, "%H:%M:%S")
| eval Total_Run_Time = strftime(diff1, "%H:%M:%S")|sort - Start_Time
| table Start_Time, End_Time

Labels (2)
Tags (1)
0 Karma
1 Solution

tscroggins
Influencer

@nwoolley 

Splunk doesn't provide a simple way to display time values on the y-axis.

Can you provide an annotated visual example of what you're trying to achieve? Perhaps there's an alternative that conveys the same information.

View solution in original post

0 Karma

tscroggins
Influencer

@nwoolley 

Splunk doesn't provide a simple way to display time values on the y-axis.

Can you provide an annotated visual example of what you're trying to achieve? Perhaps there's an alternative that conveys the same information.

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...