<?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 Dashboard to show top non-compliance controls in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/569963#M46823</link>
    <description>&lt;P&gt;Greetings All,&lt;/P&gt;&lt;P&gt;I am very new to splunk and am creating a dashboard to show top non-compliances. For the below data, I want to display top non-compliant controls (example output also mentioned below)&lt;/P&gt;&lt;P&gt;Could anyone please let me know how can I write a search query for the same?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;Event_ID: abc1&lt;/P&gt;&lt;P class="p3"&gt;Compliance_result: Non-Compliant&lt;/P&gt;&lt;P class="p3"&gt;Eval_results: {&lt;/P&gt;&lt;P class="p3"&gt;required_tags: {&lt;/P&gt;&lt;P class="p3"&gt;compliance: Compliant&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p3"&gt;encryption_enabled:{&lt;/P&gt;&lt;P class="p3"&gt;compliance: Non-Compliant&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p3"&gt;public_access:{&lt;/P&gt;&lt;P class="p3"&gt;compliance: Compliant&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p3"&gt;policy_enabled:{&lt;/P&gt;&lt;P class="p3"&gt;compliance: Compliant&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;Event_ID: abc2&lt;/P&gt;&lt;P class="p3"&gt;Compliance_result: Non-Compliant&lt;/P&gt;&lt;P class="p3"&gt;Eval_results: {&lt;/P&gt;&lt;P class="p3"&gt;required_tags: {&lt;/P&gt;&lt;P class="p3"&gt;compliance: Compliant&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p3"&gt;encryption_enabled:{&lt;/P&gt;&lt;P class="p3"&gt;compliance: Non-Compliant&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p3"&gt;public_access:{&lt;/P&gt;&lt;P class="p3"&gt;compliance: Non-Compliant&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p3"&gt;policy_enabled:{&lt;/P&gt;&lt;P class="p3"&gt;compliance: Compliant&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;Generate Table in the below format -&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;Top Non Compliance controls:&lt;/P&gt;&lt;P class="p3"&gt;public_access - 2&lt;/P&gt;&lt;P class="p3"&gt;encryption_enabled -1&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Oct 2021 22:19:54 GMT</pubDate>
    <dc:creator>nehashanker</dc:creator>
    <dc:date>2021-10-06T22:19:54Z</dc:date>
    <item>
      <title>Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/569963#M46823</link>
      <description>&lt;P&gt;Greetings All,&lt;/P&gt;&lt;P&gt;I am very new to splunk and am creating a dashboard to show top non-compliances. For the below data, I want to display top non-compliant controls (example output also mentioned below)&lt;/P&gt;&lt;P&gt;Could anyone please let me know how can I write a search query for the same?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;Event_ID: abc1&lt;/P&gt;&lt;P class="p3"&gt;Compliance_result: Non-Compliant&lt;/P&gt;&lt;P class="p3"&gt;Eval_results: {&lt;/P&gt;&lt;P class="p3"&gt;required_tags: {&lt;/P&gt;&lt;P class="p3"&gt;compliance: Compliant&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p3"&gt;encryption_enabled:{&lt;/P&gt;&lt;P class="p3"&gt;compliance: Non-Compliant&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p3"&gt;public_access:{&lt;/P&gt;&lt;P class="p3"&gt;compliance: Compliant&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p3"&gt;policy_enabled:{&lt;/P&gt;&lt;P class="p3"&gt;compliance: Compliant&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;Event_ID: abc2&lt;/P&gt;&lt;P class="p3"&gt;Compliance_result: Non-Compliant&lt;/P&gt;&lt;P class="p3"&gt;Eval_results: {&lt;/P&gt;&lt;P class="p3"&gt;required_tags: {&lt;/P&gt;&lt;P class="p3"&gt;compliance: Compliant&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p3"&gt;encryption_enabled:{&lt;/P&gt;&lt;P class="p3"&gt;compliance: Non-Compliant&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p3"&gt;public_access:{&lt;/P&gt;&lt;P class="p3"&gt;compliance: Non-Compliant&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p3"&gt;policy_enabled:{&lt;/P&gt;&lt;P class="p3"&gt;compliance: Compliant&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p3"&gt;}&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;Generate Table in the below format -&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;Top Non Compliance controls:&lt;/P&gt;&lt;P class="p3"&gt;public_access - 2&lt;/P&gt;&lt;P class="p3"&gt;encryption_enabled -1&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 22:19:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/569963#M46823</guid>
      <dc:creator>nehashanker</dc:creator>
      <dc:date>2021-10-06T22:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/569992#M46826</link>
      <description>&lt;P&gt;Please share the raw events (anonymised of course), not a formatted version, e.g. are your actual event JSON format, or partially, and, if so, is the JSON already extracted into a field? Please use a code block &amp;lt;/&amp;gt; to share the raw events so it is more accurate and easier to use&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 07:24:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/569992#M46826</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-07T07:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/570027#M46831</link>
      <description>&lt;LI-CODE lang="markup"&gt;additional_metrics: { [+]
   }
   event_id: abc123
   eval_results: { [+]
   }
   compliance_result: Non-Compliant
   timestamp: 2021-10-07 16:27:48.523
   version: jpltest

Upon expanding eval_results - 

eval_results: { [-]
     Required_Tags: { [+]
     }
     Valid_ASV_BA_Tags: { [+]
     }
     check_in_transit_encryption: { [+]
     }
   }

Upon expanding each of the following sections - 

Required_Tags: { [-]
       compliant: Compliant
       controlVersion: 1.0
       evaluationDetails:
       riskRating: Low
     }

Valid_ASV_BA_Tags: { [-]
       compliant: Non-Compliant
       controlVersion: 1.0
       evaluationDetails: Neither the ASV nor BA tag values(case sensitive) were found on the approved list.
       riskRating: Low
     }


check_in_transit_encryption: { [-]
       compliant: Compliant
       controlVersion: 1.0
       evaluationDetails:
       riskRating: Medium
     }&lt;/LI-CODE&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Thanks for looking into the issue. Pasted above is the raw event. The event is in json format, which I have got by searching on index name.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 10:29:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/570027#M46831</guid>
      <dc:creator>nehashanker</dc:creator>
      <dc:date>2021-10-07T10:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/570029#M46833</link>
      <description>&lt;P&gt;This isn't JSON - the names and values should have double quotes around them (as appropriate) and the [-]/[+] are format shortcuts to show expanded/collapsed collections.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 10:38:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/570029#M46833</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-07T10:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/570030#M46834</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Sorry for incorrectly mentioning it as json. But the above format is exactly how I get the data.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 10:41:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/570030#M46834</guid>
      <dc:creator>nehashanker</dc:creator>
      <dc:date>2021-10-07T10:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/570032#M46835</link>
      <description>&lt;P&gt;It could still be JSON - what you have shown looks very much like formatted JSON. Try this and see what you get in the _raw field (which is the raw event data)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| table _raw&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 10:46:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/570032#M46835</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-07T10:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/570039#M46838</link>
      <description>&lt;P&gt;Here is the response by using | table_raw&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{“job_id": “abc123”, "gear_event_id": “aaaa”, "event_id": "7cf6-4ff0", "execution_start": "2021-10-06 13:29:31.143", "execution_end": "2021-10-06 13:29:50.104", "gear_version": "3.0.16", "resource_type": ["sns_topic"], "event_status": "SUCCESS", "compliance_result": "Compliant", “evaluation_results": {"Required_Tags": {"compliant": "Compliant", "controlVersion": "1.0", "evaluationDetails": "", "riskRating": "Low",}, "Valid_ASV_BA_Tags": {"compliant": "Compliant", "controlVersion": "1.0", "evaluationDetails": "Neither the ASV nor BA tag values(case sensitive) were found on the approved list.", "riskRating": "Low","}, "check_in_transit_encryption": {"compliant": "Compliant", "controlVersion": "1.0", "evaluationDetails": "", "riskRating": "Medium", }, "correlation_id": "4362-47fb", "service": “biosevent", "timestamp": "2021-10-06 13:29:31.143", "version": "3.0.16", "duration": 18.961}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 07 Oct 2021 11:03:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/570039#M46838</guid>
      <dc:creator>nehashanker</dc:creator>
      <dc:date>2021-10-07T11:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/570040#M46839</link>
      <description>&lt;P&gt;Some of your double quotes aren't standard double quotes - is this an artefact of your copy/paste or are they really present in the data?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 11:20:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/570040#M46839</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-07T11:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/570041#M46840</link>
      <description>&lt;P&gt;That is definitely a copy/paste error of using notes.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 11:22:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/570041#M46840</guid>
      <dc:creator>nehashanker</dc:creator>
      <dc:date>2021-10-07T11:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/570046#M46841</link>
      <description>&lt;P&gt;I fixed a few other copy/paste issues and changed one of the compliants to noncompliant&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="{\"job_id\": \"abc123\", \"gear_event_id\": \"aaaa\", \"event_id\": \"7cf6-4ff0\", \"execution_start\": \"2021-10-06 13:29:31.143\", \"execution_end\": \"2021-10-06 13:29:50.104\", \"gear_version\": \"3.0.16\", \"resource_type\": [\"sns_topic\"], \"event_status\": \"SUCCESS\", \"compliance_result\": \"Compliant\", \"evaluation_results\": {\"Required_Tags\": {\"compliant\": \"Compliant\", \"controlVersion\": \"1.0\", \"evaluationDetails\": \"\", \"riskRating\": \"Low\"}, \"Valid_ASV_BA_Tags\": {\"compliant\": \"Compliant\", \"controlVersion\": \"1.0\", \"evaluationDetails\": \"Neither the ASV nor BA tag values(case sensitive) were found on the approved list.\", \"riskRating\": \"Low\"}, \"check_in_transit_encryption\": {\"compliant\": \"Non-Compliant\", \"controlVersion\": \"1.0\", \"evaluationDetails\": \"\", \"riskRating\": \"Medium\" }, \"correlation_id\": \"4362-47fb\", \"service\": \"biosevent\", \"timestamp\": \"2021-10-06 13:29:31.143\", \"version\": \"3.0.16\", \"duration\": 18.961}}" 
| spath evaluation_results 
| spath input=evaluation_results 
| foreach *.compliant 
    [| eval Compliance=if('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'="Compliant",if(isnull(Compliance),"&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;",mvappend(Compliance,"&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;")),Compliance)
    | eval NonCompliance=if('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'="Compliant",NonCompliance,if(isnull(NonCompliance),"&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;",mvappend(NonCompliance,"&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;")))]
| top NonCompliance&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 07 Oct 2021 12:12:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/570046#M46841</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-07T12:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/570204#M46846</link>
      <description>&lt;P&gt;Thank you so so much. I just tried it out and gave the exact visualization I was looking for!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 12:16:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/570204#M46846</guid>
      <dc:creator>nehashanker</dc:creator>
      <dc:date>2021-10-08T12:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/580857#M47586</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&amp;nbsp;Sorry for opening the old thread again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can I add a new column - gear_name for the below input:&lt;BR /&gt;I tried tweaking your query to add a new column but no success. So thought I will ask on this thread again.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="{\"job_id\": \"abc123\", \"gear_event_id\": \"aaaa\", \"event_id\": \"7cf6-4ff0\", \"execution_start\": \"2021-10-06 13:29:31.143\", \"execution_end\": \"2021-10-06 13:29:50.104\", \"gear_version\": \"3.0.16\",\"gear_name\": \"sns\", \"resource_type\": [\"sns_topic\"], \"event_status\": \"SUCCESS\", \"compliance_result\": \"Compliant\", \"evaluation_results\": {\"Required_Tags\": {\"compliant\": \"Compliant\", \"controlVersion\": \"1.0\", \"evaluationDetails\": \"\", \"riskRating\": \"Low\"}, \"Valid_ASV_BA_Tags\": {\"compliant\": \"Compliant\", \"controlVersion\": \"1.0\", \"evaluationDetails\": \"Neither the ASV nor BA tag values(case sensitive) were found on the approved list.\", \"riskRating\": \"Low\"}, \"check_in_transit_encryption\": {\"compliant\": \"Non-Compliant\", \"controlVersion\": \"1.0\", \"evaluationDetails\": \"\", \"riskRating\": \"Medium\" }, \"correlation_id\": \"4362-47fb\", \"service\": \"biosevent\", \"timestamp\": \"2021-10-06 13:29:31.143\", \"version\": \"3.0.16\", \"duration\": 18.961}}" &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 22:20:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/580857#M47586</guid>
      <dc:creator>nehashanker</dc:creator>
      <dc:date>2022-01-12T22:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/580858#M47587</link>
      <description>&lt;P&gt;I am not sure what you are asking for - the gear_name field doesn't appear affect the previous search&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 22:39:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/580858#M47587</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-12T22:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/580879#M47596</link>
      <description>&lt;P&gt;Sorry for the confusion. I want to display the controlVersion along with the name of the control.&amp;nbsp;&lt;/P&gt;&lt;P&gt;current output:&lt;/P&gt;&lt;P&gt;NonCompliance(Name)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Count&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;percentage&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected output:&lt;/P&gt;&lt;P&gt;NonCompliance(Name)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Count&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;percentage&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; controlVersion&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 04:33:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/580879#M47596</guid>
      <dc:creator>nehashanker</dc:creator>
      <dc:date>2022-01-13T04:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/580898#M47601</link>
      <description>&lt;P&gt;You are going to need to concatenate the control version to the tag name, then split it off afterwards&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="{\"job_id\": \"abc123\", \"gear_event_id\": \"aaaa\", \"event_id\": \"7cf6-4ff0\", \"execution_start\": \"2021-10-06 13:29:31.143\", \"execution_end\": \"2021-10-06 13:29:50.104\", \"gear_version\": \"3.0.16\",\"gear_name\": \"sns\", \"resource_type\": [\"sns_topic\"], \"event_status\": \"SUCCESS\", \"compliance_result\": \"Compliant\", \"evaluation_results\": {\"Required_Tags\": {\"compliant\": \"Compliant\", \"controlVersion\": \"1.0\", \"evaluationDetails\": \"\", \"riskRating\": \"Low\"}, \"Valid_ASV_BA_Tags\": {\"compliant\": \"Compliant\", \"controlVersion\": \"1.0\", \"evaluationDetails\": \"Neither the ASV nor BA tag values(case sensitive) were found on the approved list.\", \"riskRating\": \"Low\"}, \"check_in_transit_encryption\": {\"compliant\": \"Non-Compliant\", \"controlVersion\": \"1.0\", \"evaluationDetails\": \"\", \"riskRating\": \"Medium\" }, \"correlation_id\": \"4362-47fb\", \"service\": \"biosevent\", \"timestamp\": \"2021-10-06 13:29:31.143\", \"version\": \"3.0.16\", \"duration\": 18.961}}"
| spath evaluation_results 
| spath gear_name
| spath input=evaluation_results 
| foreach *.compliant 
    [| eval Compliance=if('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'="Compliant",if(isnull(Compliance),"&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;".":".'&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;.controlVersion',mvappend(Compliance,"&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;".":".'&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;.controlVersion')),Compliance)
    | eval NonCompliance=if('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'="Compliant",NonCompliance,if(isnull(NonCompliance),"&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;".":".'&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;.controlVersion',mvappend(NonCompliance,"&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;".":".'&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;.controlVersion')))]
| top NonCompliance
| eval controlVersion=mvindex(split(NonCompliance,":"),1)
| eval NonCompliance=mvindex(split(NonCompliance,":"),0)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 13 Jan 2022 07:48:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/580898#M47601</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-13T07:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/580973#M47607</link>
      <description>&lt;P&gt;Thank you so much for your response. I didn't know that we should concatenate first and then split. This worked, but I am seeing duplicate values (only count and percentages).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 15:40:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/580973#M47607</guid>
      <dc:creator>nehashanker</dc:creator>
      <dc:date>2022-01-13T15:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/580979#M47608</link>
      <description>&lt;P&gt;Is it possible that controlVersion does not exist for all results?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 16:23:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/580979#M47608</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-13T16:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/580990#M47610</link>
      <description>&lt;P&gt;That may not be the case. All the run's have&amp;nbsp;&lt;SPAN&gt;controlVersion.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 17:31:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/580990#M47610</guid>
      <dc:creator>nehashanker</dc:creator>
      <dc:date>2022-01-13T17:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/581005#M47611</link>
      <description>&lt;P&gt;What results are you getting (I don't understand what you mean by duplicates)?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 18:34:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/581005#M47611</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-13T18:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard to show top non-compliance controls</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/584095#M47874</link>
      <description>&lt;P&gt;Sorry, I was getting repetitive count of some of the values. That seems to be an error in the data.&lt;BR /&gt;However, I tried adding a new column and modified the query which you had sent, but seems to be throwing an error. The intention is to show 'Risk Rating'.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;| spath evaluation_results &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;| spath gear_name&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;| spath input=evaluation_results &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;| foreach *.compliant &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[| eval &lt;/SPAN&gt;&lt;SPAN&gt;Compliance&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"Compliant"&lt;/SPAN&gt;&lt;SP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SPAN&gt;'&amp;lt;&amp;lt;MATCHSEG2&amp;gt;&amp;gt;.riskRating'&lt;/SPAN&gt;&lt;SPAN&gt;, mvappend(&lt;/SPAN&gt;&lt;SPAN&gt;NonCompliance&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;"&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;":"&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;'&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;.controlVersion'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;lt;&amp;lt;MATCHSEG2&amp;gt;&amp;gt;"&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;":"&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;'&amp;lt;&amp;lt;MATCHSEG2&amp;gt;&amp;gt;.riskRating'&lt;/SPAN&gt;&lt;SPAN&gt;)))]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;| top &lt;/SPAN&gt;&lt;SPAN&gt;NonCompliance&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;| eval controlVersion=mvindex(split(&lt;/SPAN&gt;&lt;SPAN&gt;NonCompliance&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;":"&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;| eval riskRating=mvindex(split(&lt;/SPAN&gt;&lt;SPAN&gt;NonCompliance&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;":"&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;| eval &lt;/SPAN&gt;&lt;SPAN&gt;NonCompliance&lt;/SPAN&gt;&lt;SPAN&gt;=mvindex(split(&lt;/SPAN&gt;&lt;SPAN&gt;NonCompliance&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;":"&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 11:42:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-to-show-top-non-compliance-controls/m-p/584095#M47874</guid>
      <dc:creator>nehashanker</dc:creator>
      <dc:date>2022-02-08T11:42:55Z</dc:date>
    </item>
  </channel>
</rss>

