Splunk Search

Graphing network I/O over _time on a timechart, how to create an overlay to highlight a specific period in _time value?

angelacb
New Member

I'm graphing out network I/O over _time on a timechart (Area Chart). Is there any easy way to have an overlay to highlight a specific period in _time? For instance, if I have a constant value of "6", it would highlight "YYYY-mm-06 00:00:00" to "YYYY-mm-06 23:59:59" sections on the graph output (top to bottom regardless of the max-values of network I/O) whenever the _time contains the day value of "6"?

0 Karma

thomrs
Communicator

You could use a case statement on the day field to add a new. field with a value just for that day and add that value to your your graph. Then use use splunks native overlay to display the line.

index = _*  |  eval hr=strftime(_time, "%H")| eval hl=case(hr==12, -1 ) | timechart span=15m   dc(sourcetype), max(hl)

There are a number of D3 viz hat might work to, need some JavaScript skill to go that way.

0 Karma
Get Updates on the Splunk Community!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...