<?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: Add Color to Specific Text within a Field in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Add-Color-to-Specific-Text-within-a-Field/m-p/627997#M51491</link>
    <description>&lt;P&gt;Thanks, Manjunathmeti.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2023 14:39:19 GMT</pubDate>
    <dc:creator>itsmevic70</dc:creator>
    <dc:date>2023-01-23T14:39:19Z</dc:date>
    <item>
      <title>Add Color to Specific Text within a Field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Add-Color-to-Specific-Text-within-a-Field/m-p/627813#M51465</link>
      <description>&lt;P&gt;I'm creating a ServiceNow Dashboard in Splunk, and there is a particular column called "dv_priority" that I'd like to assign a color code to.&amp;nbsp; For example, their are four values assigned to dv_priority field, it's either going to "1 - Critical" ,&amp;nbsp; "2 - High" , "3 - Moderate" , "4 - Low", "5 - Informational"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;I'd like to color code these values, for example "1 - Critical" (Red), "2 - High" (Orange), "3 - Moderate" (Yellow) and "4 - Low" (Purple) and "5 - Informational" (Green).&lt;BR /&gt;&lt;BR /&gt;What would be the best approach SPL-wise in doing this with the below query?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=servicenow sourcetype=* NOT dv_state IN("Closed", "Resolved", "Cancelled")
| eval dv_number = if(isnull(dv_number), task_effective_number, dv_number)
       | eval dv_number = if((isnull(dv_number) OR len('dv_number') == 0), DV_NUMBER, dv_number)
       | eval number = if((isnull(number) OR len('number') == 0), dv_number, number)
       | eval number = if((isnull(number) OR len('number') == 0), NUMBER, number)
       | eval number = if((isnull(number) OR len('number') == 0), "Error", number)
       | eval number = if(number!=dv_number, dv_number, number)
       | eval dv_u_subcategory = if((isnull(dv_u_subcategory) OR len('dv_u_subcetegory') == 0), DV_U_SUBCATEGORY, dv_u_subcategory)
       | eval dv_u_category = if((isnull(dv_u_category) OR len('dv_u_category')==0), DV_U_CATEGORY, dv_u_category)
| eval dv_business_service = if(((isnull(dv_business_service) OR len('dv_u_business_service')==0) AND dv_category="MDR Analytics"), "Detect", dv_business_service)
       | eval dv_business_service = if(((isnull(dv_business_service) OR len('dv_u_business_service')==0) AND dv_category="MDR Engineering"), "Engineering", dv_business_service)
       | eval dv_business_service = if((isnull(dv_business_service) OR len('dv_u_business_service')==0), DV_BUSINESS_SERVICE, dv_business_service)
       | eval dv_business_service = if(((isnull(dv_business_service) OR len('dv_business_service')==0) AND dv_u_category="Notable" AND dv_u_subcategory="Security"), "Detect", dv_business_service)
       | eval dv_business_service = if((isnull(dv_business_service) OR len('dv_u_business_service')==0), "Error", dv_business_service)
       | eval dv_business_service = if(dv_u_category="Infrastructure", "Engineering", dv_business_service)
       | eval state = if((isnull(state) OR len('state')==0), STATE, state)
| eval dv_state = if((isnull(dv_state) AND state=1), "New", dv_state)
       | eval dv_state = if((isnull(dv_state) AND state=3), "Closed", dv_state)
       | eval dv_state = if((isnull(dv_state) AND state=6), "Resolved", dv_state)
       | eval dv_state = if((isnull(dv_state) AND state=11), "On-Hold", dv_state)
       | eval dv_state = if((isnull(dv_state) AND state=18), "In Progress - Customer", dv_state)
       | eval dv_state = if((isnull(dv_state) AND state=7), "Cancelled", dv_state)
       | eval dv_state = if((isnull(dv_state) AND state=10), "In Progress - dw", dv_state)
       | eval dv_state = if((isnull(dv_state) OR len('dv_state')==0), DV_STATE, dv_state)
       | eval dv_state = if((isnull(dv_state) OR len('dv_state')==0), "Error", dv_state)
       | eval dv_state = if(dv_state="Error" AND (isnotnull(closed_at) OR len('closed_at') == 0), "Resolved", dv_state)
       | eval dv_short_description = if((isnull(dv_short_description) OR len('dv_short_description') == 0), short_description, dv_short_description)
       | eval dv_short_description = if((isnull(dv_short_description) OR len('dv_short_description') == 0), case, dv_short_description)
       | eval dv_short_description = if((isnull(dv_short_description) OR len('dv_short_description') == 0), DV_SHORT_DESCRIPTION, dv_short_description)
| eval dv_category = if(dv_business_service="Detect", "MDR Analytics", dv_category)
       | eval closed_at = if((isnull(closed_at) OR len('closed_at')==0), CLOSED_AT, closed_at)
       | eval u_mttn = if((isnull(u_mttn) OR len('u_mttn')==0), U_MTTN, u_mttn)
       | eval u_mttca_2 = if((isnull(u_mttca_2) OR len('u_mttca_2')==0), U_MTTCA_2, u_mttca_2)
       | eval u_mttcv = if((isnull(u_mttcv) OR len('u_mttcv')==0), U_MTTCV, u_mttcv)
       | eval u_mttdi = if((isnull(u_mttdi) OR len('u_mttdi')==0), U_MTTDI, u_mttdi)
       | eval u_mttrv = if((isnull(u_mttrv) OR len('u_mttrv')==0), U_MTTRV, u_mttrv)
       | eval u_mttc = if((isnull(u_mttc) OR len('u_mttc')==0), U_MTTC, u_mttc)
       | table _time, number, dv_state, dv_priority, dv_u_category, dv_short_description,dv_assigned_to,dv_assignment_group, opened_at
| where dv_assignment_group="Security"
| sort - _time
| sort - dv_state
| dedup number&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 15:49:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Add-Color-to-Specific-Text-within-a-Field/m-p/627813#M51465</guid>
      <dc:creator>itsmevic70</dc:creator>
      <dc:date>2023-01-23T15:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add Color to Specific Text within a Field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Add-Color-to-Specific-Text-within-a-Field/m-p/627960#M51482</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/251552"&gt;@itsmevic70&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Check this app from Splunk,&amp;nbsp;&lt;A href="https://splunkbase.splunk.com/app/1603" target="_self"&gt;&lt;FONT size="4"&gt;Splunk Dashboard Examples&lt;/FONT&gt;&lt;/A&gt;. It has a dashboard with your use case.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 09:52:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Add-Color-to-Specific-Text-within-a-Field/m-p/627960#M51482</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2023-01-23T09:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Add Color to Specific Text within a Field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Add-Color-to-Specific-Text-within-a-Field/m-p/627997#M51491</link>
      <description>&lt;P&gt;Thanks, Manjunathmeti.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 14:39:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Add-Color-to-Specific-Text-within-a-Field/m-p/627997#M51491</guid>
      <dc:creator>itsmevic70</dc:creator>
      <dc:date>2023-01-23T14:39:19Z</dc:date>
    </item>
  </channel>
</rss>

