<?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 Triggering searches in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Triggering-searches/m-p/576304#M8607</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still trying to figure out the framework of how things work (please note I am not admin).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a dashboard which has some radio buttons which trigger specific searches and the results are displayed in the dashboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to trigger these searches ad hoc in the Search webpage. So I need to:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Get a search alias/link/id for each of the searches in the dashboard&lt;/LI&gt;&lt;LI&gt;Use these aliases to trigger the same search manually&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would prefer to use a REST API command directly in my PowerBI, is that possible?&lt;/P&gt;&lt;P&gt;If not, I would still prefer to use a REST API command in the Search webpage&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, the following does not work for me:&lt;/P&gt;&lt;P&gt;| rest /services/data/ui/views/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this works:&lt;/P&gt;&lt;P&gt;| rest splunk_server=local servicesNS/-/-/data/ui/views/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me with the right code please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 25 Nov 2021 11:07:46 GMT</pubDate>
    <dc:creator>SplnkUse</dc:creator>
    <dc:date>2021-11-25T11:07:46Z</dc:date>
    <item>
      <title>Triggering searches</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Triggering-searches/m-p/576304#M8607</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still trying to figure out the framework of how things work (please note I am not admin).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a dashboard which has some radio buttons which trigger specific searches and the results are displayed in the dashboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to trigger these searches ad hoc in the Search webpage. So I need to:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Get a search alias/link/id for each of the searches in the dashboard&lt;/LI&gt;&lt;LI&gt;Use these aliases to trigger the same search manually&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would prefer to use a REST API command directly in my PowerBI, is that possible?&lt;/P&gt;&lt;P&gt;If not, I would still prefer to use a REST API command in the Search webpage&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, the following does not work for me:&lt;/P&gt;&lt;P&gt;| rest /services/data/ui/views/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this works:&lt;/P&gt;&lt;P&gt;| rest splunk_server=local servicesNS/-/-/data/ui/views/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me with the right code please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 11:07:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Triggering-searches/m-p/576304#M8607</guid>
      <dc:creator>SplnkUse</dc:creator>
      <dc:date>2021-11-25T11:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering searches</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Triggering-searches/m-p/576366#M8614</link>
      <description>&lt;P&gt;Not all dashboards have links to their searches (IME, most do not).&amp;nbsp; Instead, the searches are inline.&lt;/P&gt;&lt;P&gt;To replicate a dashboard using the API, you'd have to use the &lt;FONT face="courier new,courier"&gt;data/ui/views&lt;/FONT&gt; call to get the eai:data field.&amp;nbsp; Then you'll need to parse that field to extract the &lt;FONT face="courier new,courier"&gt;&amp;lt;input&amp;gt;&lt;/FONT&gt; elements (so you know what the inputs are) and the &lt;FONT face="courier new,courier"&gt;&amp;lt;panel&amp;gt;&lt;/FONT&gt; elements.&amp;nbsp; Each will contain a &lt;FONT face="courier new,courier"&gt;&amp;lt;search&amp;gt;&lt;/FONT&gt;, which may be an in-line search or may invoke a savedsearch using either the &lt;FONT face="courier new,courier"&gt;loadjob&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;savedsearch&lt;/FONT&gt; command.&lt;/P&gt;&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;&amp;lt;input&amp;gt;&lt;/FONT&gt; elements will define one or more tokens.&amp;nbsp; Any search that uses a token will not run until that token is defined.&amp;nbsp; This is the "trigger" you've noticed.&amp;nbsp; Your code will have to get the proper input from the user so it can set the tokens needed by the searches.&lt;/P&gt;&lt;P&gt;Once the tokens are defined, you can fill in the missing parts of the searches and use the REST API to invoke them.&amp;nbsp; The API will return a search ID, which you will use to periodically poll Splunk to see if the search has completed or not.&amp;nbsp; Once the search is complete, you can use another API call to retrieve the results.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 21:23:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Triggering-searches/m-p/576366#M8614</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-11-25T21:23:28Z</dc:date>
    </item>
  </channel>
</rss>

