Dashboards & Visualizations

Sorting the values for the chart

splunkpoornima
Communicator

| savedsearch "searchduration" | join TaskBP [ | savedsearch "searchavgduration" ]|eval Diff=duration-Avgduration|table TaskBP Diff|

after running this query ,i got the output as

TaskNmae Diff

A -345

B -122

C 867

D 111

What i need is i want to plot the chart so that the negative charts sholud be upside down and the positive values should be upside Top

Tags (2)
0 Karma

Gilberto_Castil
Splunk Employee
Splunk Employee

If the fields are clearly defined and the fields have the appropriate data, then you can use the following to complement your search:

| chart list(Diff) AS Diff by TaskName

That should do it. Let us know if this works.

0 Karma

splunkpoornima
Communicator

hi Glib,

i tried it shows the TaskName and the List od Diff values ..but it shows some error as "chart has limited size due to that some values got ignored and truncated"

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Best Practices: Splunk auto adjust pipeline queue

When you enable autoAdjustQueue in Splunk, maxSize should be understood as the queue size Splunk starts with ...

Laser Bananas and Edge Hubs: Exploring Operational Technology (OT) Data Through a ...

  OT is a different environment to traditional IT and can have interesting challenges when interfacing the ...

Event Series: Mastering AI Tokenomics and Splunk Agent Observability

Beyond the Black Box: Correlating AI Performance and Tokenomics with Splunk Agent Observability   As ...