<?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: Assign colour's based on the field value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Assign-colour-s-based-on-the-field-value/m-p/331720#M162549</link>
    <description>&lt;P&gt;Hi Unfortunately I think that would only be possible with jQuery. If your Splunk query ensures all series are always present (i.e. 0 instead of null) and also they are always in the same sequence, then you can use CSS Selector as well as the series number of your results will remain the same.&lt;/P&gt;</description>
    <pubDate>Sat, 10 Mar 2018 17:04:19 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-03-10T17:04:19Z</dc:date>
    <item>
      <title>Assign colour's based on the field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Assign-colour-s-based-on-the-field-value/m-p/331716#M162545</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;

&lt;P&gt;I have the below query &lt;/P&gt;

&lt;P&gt;( (index=xxx sourcetype=xxx severity=xxx intelId=xxx  ) )  | eval intelId = case(match(intelId ,"xxx"),"Test1",match(intelId ,"XX"),"Test2") | eval intelId = severity+":"+intelId |  timechart usenull=f span=1d count by intelId &lt;/P&gt;

&lt;P&gt;So this query gives me the information in a chart with serverity+ the field name, for example for INFO it will INFO: Test1.&lt;/P&gt;

&lt;P&gt;I was trying to give colors to the column chart with the following condition &lt;/P&gt;

&lt;P&gt;"{"ERROR:&lt;EM&gt;":0xcc0000,"FATAL:&lt;/EM&gt;":0xff9900,"INFO:&lt;EM&gt;":0x339933,"DEBUG:&lt;/EM&gt;":0x6699ff}"&lt;/P&gt;

&lt;P&gt;My goal is to achieve color based on the severity - But the above option doesn't seem to work.&lt;/P&gt;

&lt;P&gt;Any inputs on this are much appreciated.&lt;/P&gt;

&lt;P&gt;Thanks | RD&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 10:50:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Assign-colour-s-based-on-the-field-value/m-p/331716#M162545</guid>
      <dc:creator>ravidudala</dc:creator>
      <dc:date>2018-03-06T10:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Assign colour's based on the field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Assign-colour-s-based-on-the-field-value/m-p/331717#M162546</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.fieldColors"&amp;gt;
          {"ERROR": 0xFF0000, "FATAL": 0xFF9900 ,"INFO": 0xFF9900, "DEBUG":0x0066FF}
&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Reference: &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.2/Viz/ChartConfigurationReference"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.2/Viz/ChartConfigurationReference&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 14:11:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Assign-colour-s-based-on-the-field-value/m-p/331717#M162546</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-03-06T14:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Assign colour's based on the field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Assign-colour-s-based-on-the-field-value/m-p/331718#M162547</link>
      <description>&lt;P&gt;@ravidudala, Based on your query seems like you have Two series Test1 and Test2 and four SLAs i.e. ERROR FATAL INFO and DEBUG. You can define 8 field colors in this case:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;option name="charting.fieldColors"&amp;gt;{"ERROR:Test1": 0xFF0000, "FATAL:Test1": 0xFF9900 ,"INFO:Test1": 0xFF9900, "DEBUG:Test1":0x0066FF,"ERROR:Test2": 0xFF0000, "FATAL:Test2": 0xFF9900 ,"INFO:Test2": 0xFF9900, "DEBUG:Test2":0x0066FF}&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;charting.fieldColors&lt;/CODE&gt; option looks for complete field name as it is and does not support wildcard characters like asterisk &lt;CODE&gt;*&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 14:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Assign-colour-s-based-on-the-field-value/m-p/331718#M162547</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-06T14:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Assign colour's based on the field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Assign-colour-s-based-on-the-field-value/m-p/331719#M162548</link>
      <description>&lt;P&gt;Hi nike,&lt;/P&gt;

&lt;P&gt;I have tried that - It worked for static fields, But it didn't work for Dynamic fields.&lt;BR /&gt;
Any Suggestions for dynamics fields.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
RD&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 09:34:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Assign-colour-s-based-on-the-field-value/m-p/331719#M162548</guid>
      <dc:creator>ravidudala</dc:creator>
      <dc:date>2018-03-08T09:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Assign colour's based on the field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Assign-colour-s-based-on-the-field-value/m-p/331720#M162549</link>
      <description>&lt;P&gt;Hi Unfortunately I think that would only be possible with jQuery. If your Splunk query ensures all series are always present (i.e. 0 instead of null) and also they are always in the same sequence, then you can use CSS Selector as well as the series number of your results will remain the same.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2018 17:04:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Assign-colour-s-based-on-the-field-value/m-p/331720#M162549</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-10T17:04:19Z</dc:date>
    </item>
  </channel>
</rss>

