Splunk Search

How to create a chart to view Business Transaction counts with line overlays for both highest and lowest data points??

splunkuser354
New Member

I am looking for a chart for the business team to view the transaction counts for last day span hourly (so total of 24 data points) with two overlay graphs that can provide me the highest value of the daily data points seen in last 4 weeks (plus 10%) and lowest daily data point of the last 4 weeks (minus 10%). This would show me a bar graph for the yesterday's hourly volume and line charts (in the same panel) for high and low hourly volume data (+/- 10%).

0 Karma

knielsen
Contributor

There are probably more elegant solutions to this, but this is a possible approach:

index=... earliest=-24h@h latest=@h| timechart span=1h count | join [ search index=... earliest=-4w@h latest=-24h@h | timechart span=1h count | stats max(count) as max min(count) as min | eval max=max*110/100 | eval min=min*90/100 ]

And then set min and max as overlay fields in the visualization.

Hth,
Kai.

0 Karma
Get Updates on the Splunk Community!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

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

Building Momentum: Splunk Developer Program at .conf25

At Splunk, developers are at the heart of innovation. That’s why this year at .conf25, we officially launched ...