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!

Splunk App for Anomaly Detection End of Life Announcment

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...