<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to change bar chart color and the legend label in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-bar-chart-color-and-the-legend-label/m-p/496921#M194716</link>
    <description>&lt;P&gt;Thanks. I believe you might need a second field to split-by to get a similar result. Have you opened and explored the search for the Cisco dashboard you're using as an example?&lt;BR /&gt;
You might need something like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search
| &amp;lt;stats or chart&amp;gt; count by fieldX, severity_id
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 Dec 2019 21:24:05 GMT</pubDate>
    <dc:creator>oscar84x</dc:creator>
    <dc:date>2019-12-04T21:24:05Z</dc:date>
    <item>
      <title>How to change bar chart color and the legend label</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-bar-chart-color-and-the-legend-label/m-p/496918#M194713</link>
      <description>&lt;P&gt;How do I change a bar chart color base on the syslog severity level. Example: Informational to blue color, warning to yellow color and so on and the legend label base on the syslog severity.  &lt;/P&gt;

&lt;P&gt;Below is my syslog severity Dashboard&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8027i51EB0BB5B400D6A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I want my bar chart to look like the Cisco syslog as below.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8028i676F0E5C1E4E95A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Any help would be appreciate it. &lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 19:01:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-bar-chart-color-and-the-legend-label/m-p/496918#M194713</guid>
      <dc:creator>matoulas</dc:creator>
      <dc:date>2019-12-04T19:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to change bar chart color and the legend label</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-bar-chart-color-and-the-legend-label/m-p/496919#M194714</link>
      <description>&lt;P&gt;Could we see what your search looks like?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 19:20:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-bar-chart-color-and-the-legend-label/m-p/496919#M194714</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2019-12-04T19:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to change bar chart color and the legend label</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-bar-chart-color-and-the-legend-label/m-p/496920#M194715</link>
      <description>&lt;P&gt;This is my search query&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;query&amp;gt;index="main" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;| table sourcetype, host, vendorId, enterpriseId, severity_id, facility, severity_name, _time &lt;BR /&gt;
| eval Date/Time=_time &lt;BR /&gt;
| convert timeformat="%m-%d-%Y %H:%M:%S" ctime(Date/Time)&lt;BR /&gt;
| search vendorId="WTI"&lt;BR /&gt;
    &lt;EARLIEST&gt;$time.earliest$&lt;/EARLIEST&gt;&lt;BR /&gt;
    &lt;LATEST&gt;$time.latest$&lt;/LATEST&gt;&lt;/P&gt;

&lt;P&gt;This is the dashboard panel for syslog severity&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;chart&amp;gt;
    &amp;lt;title&amp;gt;Syslog  Severity Distribution&amp;lt;/title&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;| search vendorId=$vendorId$ 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;| stats count by severity_name&lt;BR /&gt;
| rename severity_name AS "Severity Name"&lt;BR /&gt;
          &lt;EARLIEST&gt;-24h@h&lt;/EARLIEST&gt;&lt;BR /&gt;
          &lt;LATEST&gt;now&lt;/LATEST&gt;&lt;BR /&gt;
        &lt;BR /&gt;
        bar&lt;BR /&gt;
        all&lt;BR /&gt;
        progressbar&lt;BR /&gt;
      &lt;BR /&gt;
    &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:11:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-bar-chart-color-and-the-legend-label/m-p/496920#M194715</guid>
      <dc:creator>matoulas</dc:creator>
      <dc:date>2020-09-30T03:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to change bar chart color and the legend label</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-bar-chart-color-and-the-legend-label/m-p/496921#M194716</link>
      <description>&lt;P&gt;Thanks. I believe you might need a second field to split-by to get a similar result. Have you opened and explored the search for the Cisco dashboard you're using as an example?&lt;BR /&gt;
You might need something like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search
| &amp;lt;stats or chart&amp;gt; count by fieldX, severity_id
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Dec 2019 21:24:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-bar-chart-color-and-the-legend-label/m-p/496921#M194716</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2019-12-04T21:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to change bar chart color and the legend label</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-bar-chart-color-and-the-legend-label/m-p/496922#M194717</link>
      <description>&lt;P&gt;I got it to work and by follow the link below.&lt;/P&gt;

&lt;P&gt;| search vendorId=$vendorId$ &lt;BR /&gt;
| stats count(eval(severity_name="emergency")) as emergency&lt;BR /&gt;
count(eval(severity_name="alert")) as alert&lt;BR /&gt;
count(eval(severity_name="critical")) as critical&lt;BR /&gt;
count(eval(severity_name="error")) as error&lt;BR /&gt;
count(eval(severity_name="warning")) as warning&lt;BR /&gt;
count(eval(severity_name="notice")) as notice&lt;BR /&gt;
count(eval(severity_name="informational")) as informational&lt;BR /&gt;
count(eval(severity_name="debugging")) as debugging&lt;BR /&gt;
by severity_name&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.0.0/Viz/BuildandeditdashboardswithSimplifiedXML#Specify_custom_colors_for_fields_in_charts" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.0.0/Viz/BuildandeditdashboardswithSimplifiedXML#Specify_custom_colors_for_fields_in_charts&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/Viz/ChartConfigurationReference#Area.2C_Bubble.2C_Bar.2C_Column.2C_Line.2C_and_Scatter_charts" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.1/Viz/ChartConfigurationReference#Area.2C_Bubble.2C_Bar.2C_Column.2C_Line.2C_and_Scatter_charts&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:21:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-bar-chart-color-and-the-legend-label/m-p/496922#M194717</guid>
      <dc:creator>matoulas</dc:creator>
      <dc:date>2020-09-30T03:21:18Z</dc:date>
    </item>
  </channel>
</rss>

