<?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: Need help in some formatting the result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-some-formatting-the-result/m-p/706522#M239082</link>
    <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;A class="" href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367" target="_self"&gt;&lt;SPAN class=""&gt;bowesmana&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashish0405_1-1733902670475.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33800iE6DC474D768311CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashish0405_1-1733902670475.png" alt="Ashish0405_1-1733902670475.png" /&gt;&lt;/span&gt;,&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;appreciate your help, thank you so much the script works for me&lt;/DIV&gt;</description>
    <pubDate>Wed, 11 Dec 2024 07:38:39 GMT</pubDate>
    <dc:creator>Ashish0405</dc:creator>
    <dc:date>2024-12-11T07:38:39Z</dc:date>
    <item>
      <title>Need help in some formatting the result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-some-formatting-the-result/m-p/706464#M239063</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am Firewall engineer and working on creation of some dashboard.&lt;/P&gt;&lt;P&gt;I have created one dashboard whenever our firewall failover the dashboard will show result as "Active" &amp;amp; " Standby" &amp;amp; "Down" in Guage format.&lt;/P&gt;&lt;P&gt;However I would like to set up the dashboard in this way :&lt;/P&gt;&lt;P&gt;1) whenever firewall failover and it is in "down state"&amp;nbsp; the guage color should be red&lt;/P&gt;&lt;P&gt;2) whenever firewall failover and it is in "Active state"&amp;nbsp; the guage color should be Green&lt;/P&gt;&lt;P&gt;3) whenever firewall failover and it is in "Standby state"&amp;nbsp; the guage color should be Amber&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashish0405_0-1733831914496.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33790i9016DFB9DD40D406/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashish0405_0-1733831914496.png" alt="Ashish0405_0-1733831914496.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know about it and help me with some sample examples to understand&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 11:59:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-some-formatting-the-result/m-p/706464#M239063</guid>
      <dc:creator>Ashish0405</dc:creator>
      <dc:date>2024-12-10T11:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in some formatting the result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-some-formatting-the-result/m-p/706487#M239073</link>
      <description>&lt;P&gt;Is this an XML or Studio dashboard example?&amp;nbsp; What viz are you using? custom vs OOTB?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 15:02:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-some-formatting-the-result/m-p/706487#M239073</guid>
      <dc:creator>dural_yyz</dc:creator>
      <dc:date>2024-12-10T15:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in some formatting the result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-some-formatting-the-result/m-p/706516#M239079</link>
      <description>&lt;P&gt;I'm guessing this is Chris Younger's Number Display Viz - those spinner gauges look familiar&lt;/P&gt;&lt;P&gt;Is this what you're after - this is an example of setting the color field based on the desired colours&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults format=csv data="State_Before,State_After,Cluster_Name
DOWN,STANDBY,Host1
STANDBY,ACTIVE,Host2
STANDBY,DOWN,Host3"
| eval color=case(State_After="DOWN", "#FF0000", State_After="ACTIVE", "#00FF00", State_After="STANDBY", "#FFBF00")
| rename Cluster_Name as value, State_After as title
| table title value color&lt;/LI-CODE&gt;&lt;P&gt;and you end up with this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bowesmana_0-1733895244486.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33799i7BD806AE6A30AE28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bowesmana_0-1733895244486.png" alt="bowesmana_0-1733895244486.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 05:34:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-some-formatting-the-result/m-p/706516#M239079</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-12-11T05:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in some formatting the result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-some-formatting-the-result/m-p/706522#M239082</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;A class="" href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367" target="_self"&gt;&lt;SPAN class=""&gt;bowesmana&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashish0405_1-1733902670475.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33800iE6DC474D768311CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashish0405_1-1733902670475.png" alt="Ashish0405_1-1733902670475.png" /&gt;&lt;/span&gt;,&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;appreciate your help, thank you so much the script works for me&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Dec 2024 07:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-some-formatting-the-result/m-p/706522#M239082</guid>
      <dc:creator>Ashish0405</dc:creator>
      <dc:date>2024-12-11T07:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in some formatting the result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-some-formatting-the-result/m-p/706524#M239083</link>
      <description>&lt;P&gt;I am getting below error while using the script is their any mistake in placing the script shared by you ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previous script :&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------&lt;/P&gt;&lt;P&gt;index=firewall (origin=10.254.17.* OR origin=10.254.252.* OR origin=10.254.253.*) OR *VGUK* OR *VGBR* OR *VGCY* OR *VGIN* OR *VGRU* OR *VGMY* OR *VGKC* OR *EQX* OR *PDN* OR *VSHW* | search "state change: * -&amp;gt; Down" OR "state change: * -&amp;gt; Standby" OR "state change: * -&amp;gt; Active" | rex field=_raw "^(?:[^:\n]*:){5}\s+(?P&amp;lt;State_before&amp;gt;[^ ]+)\s+\-&amp;gt;\s+(?P&amp;lt;State_after&amp;gt;\w+)" | dedup Cluster_name | stats count by host,State_after&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashish0405_0-1733903324702.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33802i4CC9174BFADE1063/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashish0405_0-1733903324702.png" alt="Ashish0405_0-1733903324702.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 07:49:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-some-formatting-the-result/m-p/706524#M239083</guid>
      <dc:creator>Ashish0405</dc:creator>
      <dc:date>2024-12-11T07:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in some formatting the result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-some-formatting-the-result/m-p/706592#M239101</link>
      <description>&lt;P&gt;The use of makeresults is to show examples of how to use a technique, so what you need is the eval statement that sets the field 'color' based on the values of State_after. Add it after your stats command&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval color=case(State_after="DOWN", "#FF0000", State_after="ACTIVE", "#00FF00", State_after="STANDBY", "#FFBF00")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 22:13:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-some-formatting-the-result/m-p/706592#M239101</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-12-11T22:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in some formatting the result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-in-some-formatting-the-result/m-p/706991#M239178</link>
      <description>&lt;P&gt;Thank you !!! it worked !&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 06:55:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-in-some-formatting-the-result/m-p/706991#M239178</guid>
      <dc:creator>Ashish0405</dc:creator>
      <dc:date>2024-12-17T06:55:38Z</dc:date>
    </item>
  </channel>
</rss>

