Dashboards & Visualizations

Using rangemap in dashboard

gpanicker
Explorer

I am trying to use rangemap in a dashboard. The below sample always displays the default (10000+) range no matter what the duration values are.But the query as such displays correct results in splunk. Is there something wrong with the dashboard code I am using.I am using Splunk 4.2






<h1>Transactions Search by Duration</h1>


Last 60 minutes
True

index=exp sourcetype="xxx"| rangemap field=duration low=0-10000 default=10000+ | stats count by range | sort range

True
False


15
results

results
row




Tags (1)

dwaddle
SplunkTrust
SplunkTrust

Any time I run into issues like this, I'll first attempt wrapping the search string in an XML CDATA tag. Certain characters are special to XML and cannot be inside of an XML tag without causing parser confusion. So, try this...

<param name="search"><![CDATA[index=exp sourcetype="xxx"| rangemap field=duration low=0-10000 default=10000+ | stats count by range | sort range]]></param>

gpanicker
Explorer

Thanks for the suggestion.. But it didnt work. Any other suggestions ??

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...