<?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: Splunk query or rest API  to list down the advanced xml dashboards in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-query-or-rest-API-to-list-down-the-advanced-xml/m-p/457078#M30002</link>
    <description>&lt;P&gt;This is what i was looking for, thanks a lot&lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2019 15:08:10 GMT</pubDate>
    <dc:creator>rahulbhatia</dc:creator>
    <dc:date>2019-09-03T15:08:10Z</dc:date>
    <item>
      <title>Splunk query or rest API  to list down the advanced xml dashboards</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-query-or-rest-API-to-list-down-the-advanced-xml/m-p/457076#M30000</link>
      <description>&lt;P&gt;I want to create an alert to notify the users if they create a dashboard using advance xml or calling a script &lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 09:49:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-query-or-rest-API-to-list-down-the-advanced-xml/m-p/457076#M30000</guid>
      <dc:creator>rahulbhatia</dc:creator>
      <dc:date>2019-08-20T09:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query or rest API  to list down the advanced xml dashboards</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-query-or-rest-API-to-list-down-the-advanced-xml/m-p/457077#M30001</link>
      <description>&lt;P&gt;I would start with this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest  /servicesNS/-/-/data/ui/views  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;eai:data&lt;/CODE&gt; field should have the dashboard XML, and with that you should be able to regex out what you are looking for.&lt;/P&gt;

&lt;P&gt;I'd probably use evals and do something like this:   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | eval contains_adanced_xml=if(match(eai:data, ".*&amp;lt;module .*"), "1", "0")
 | eval contains_script=if(match(eai:data, "&amp;lt;dashboard script=.*&amp;gt;", "1", "0")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You'll likely need to refine those conditionals a little bit, but once those are good you'd be able to just grab the dashboards that meet either condition and setup an alert.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 12:51:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-query-or-rest-API-to-list-down-the-advanced-xml/m-p/457077#M30001</guid>
      <dc:creator>traxxasbreaker</dc:creator>
      <dc:date>2019-08-20T12:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query or rest API  to list down the advanced xml dashboards</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-query-or-rest-API-to-list-down-the-advanced-xml/m-p/457078#M30002</link>
      <description>&lt;P&gt;This is what i was looking for, thanks a lot&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 15:08:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-query-or-rest-API-to-list-down-the-advanced-xml/m-p/457078#M30002</guid>
      <dc:creator>rahulbhatia</dc:creator>
      <dc:date>2019-09-03T15:08:10Z</dc:date>
    </item>
  </channel>
</rss>

