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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...