Dashboards & Visualizations

[Help] Splunk Field Colors

Zyon
Engager

Hi,
I wanted to display the fields of column chart in different colors according to their occurrence, however the colors are not being displayed.

My search:

source="source.log" INBOUND | fields SRC | fields - _* | top 5 SRC | rangemap field=count green=20000-30000 default=gray

My XML:

<?xml version='1.0' encoding='utf-8'?>
<dashboard>
  <label>Test0</label>
  <row>
    <chart>
      <searchString>source="source.log" INBOUND | fields SRC | fields - _* | top 5 SRC | rangemap field=count green=20000-30000 default=gray </searchString>
      <title>Test0</title>
      <option name="charting.chart">column</option>
      <option name="charting.chart.stackMode">stacked</option>
      <option name="classField">range</option>
    </chart>
  </row>
</dashboard>

Thanks!

Tags (1)
0 Karma
1 Solution

HiroshiSatoh
Champion

"classField"でchartの色を変えることは私もできなかった。スタック棒グラフで"range"毎に集計した結果を表示する方法ではダメか?

I was not able to change the color of the chart in "classField". Do not do it in a way that displays the results aggregated to each "range" in the stack bar chart?

|eval green=if(range=="green",count,0) | eval gray=if(range!="green",count,0) | fields - count,range

View solution in original post

0 Karma

HiroshiSatoh
Champion

"classField"でchartの色を変えることは私もできなかった。スタック棒グラフで"range"毎に集計した結果を表示する方法ではダメか?

I was not able to change the color of the chart in "classField". Do not do it in a way that displays the results aggregated to each "range" in the stack bar chart?

|eval green=if(range=="green",count,0) | eval gray=if(range!="green",count,0) | fields - count,range

0 Karma

Zyon
Engager

Thank You, it solved my problem.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...