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!

Exporting Splunk Apps

Join us on Monday, October 21 at 11 am PT | 2 pm ET!With the app export functionality, app developers and ...

Cisco Use Cases, ITSI Best Practices, and More New Articles from Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Build Your First SPL2 App!

Watch the recording now!.Do you want to SPL™, too? SPL2, Splunk's next-generation data search and preparation ...