Dashboards & Visualizations

Can you help me color coordinate different charts in a dashboard?

pascoaljo
New Member

Dear Team

Could you please help me to get the same color in the charts, below the line chart... each one with the color of the line, in the Line Chart.

The code I have so far:

(host=jp) source="/home/jp/pings/targets/googledns.txt" OR source="/home/jp/pings/targets/defaultGateway.txt"  OR source="/home/jp/pings/targets/l3dns.txt"  OR source="/home/jp/pings/targets/sapo.txt"
| timechart avg(time) by source
| rename /home/jp/pings/targets/googledns.txt as "Google DNS" | rename /home/jp/pings/targets/defaultGateway.txt as "Default Gateway" | rename /home/jp/pings/targets/l3dns.txt as "L3 DNS" | rename /home/jp/pings/targets/sapo.txt as "sapo"

This code reads the data from 4 different .txt files in real time. The data is a ping to four different IPs.

Also the Legend on the right is customized.

alt text

Thank you in advance.

Best regards
JP

0 Karma

somesoni2
Revered Legend

Is the name of the series (renamed source in your query) static? If they are, you should be able to assign specific color to them in chart configurations. See charting.fieldColors attribute in below link.

http://docs.splunk.com/Documentation/Splunk/7.1.3/Viz/ChartConfigurationReference#General_chart_prop...

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...