<?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: Is it possible to run query returned from Rest? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-query-returned-from-Rest/m-p/598166#M208295</link>
    <description>&lt;P&gt;For dashboards, you have to double-dollar the variable names&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval search=[| rest splunk_server=local /servicesNS/-/-/saved/searches | where title="SomeAlert" | fields qualifiedSearch | rename qualifiedSearch as query | format "" "" "" "" "" ""]
| map search="| makeresults | map search="$$search$$&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 17 May 2022 18:23:56 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-05-17T18:23:56Z</dc:date>
    <item>
      <title>Is it possible to run query returned from Rest?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-query-returned-from-Rest/m-p/597830#M208173</link>
      <description>&lt;P&gt;I am working on something to return our alerts from rest functions. What I want to do is allow users to historically look at the alert query and see what adjustments can be made to certain items.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| rest "/servicesNS/-/-/saved/searches"
| search title="SomeAlert"
| fields qualifiedSearch&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the search above, I want Splunk to run the qualifiedfieldsearch; which is the search string. Is this something that is possible?&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 20:55:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-query-returned-from-Rest/m-p/597830#M208173</guid>
      <dc:creator>SMM10</dc:creator>
      <dc:date>2022-05-13T20:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to run query returned from Rest?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-query-returned-from-Rest/m-p/597841#M208176</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240523"&gt;@SMM10&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you should see the "sevedsearchcommand" (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Savedsearch" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Savedsearch&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;you could use your search in a panel and on click you could drilldown in another panel or dashboard executing the choosen search.&lt;/P&gt;&lt;P&gt;but the field to pass as parameter is "title" not "qualifiedSearch".&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2022 05:00:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-query-returned-from-Rest/m-p/597841#M208176</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-05-14T05:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to run query returned from Rest?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-query-returned-from-Rest/m-p/597850#M208180</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval search=[| rest splunk_server=local /servicesNS/-/-/saved/searches | where title="SomeAlert" | fields qualifiedSearch | rename qualifiedSearch as query | format "" "" "" "" "" ""]
| map search="| makeresults | map search="$search$&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 14 May 2022 07:11:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-query-returned-from-Rest/m-p/597850#M208180</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-14T07:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to run query returned from Rest?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-query-returned-from-Rest/m-p/598150#M208290</link>
      <description>&lt;P&gt;This worked perfect, thank you! As a follow up if I wanted to use this in a dashboard would I need to do anything to the token. It runs as&amp;nbsp; a search fine but in a dashboard it seems to be waiting for the query token to get set.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 17:31:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-query-returned-from-Rest/m-p/598150#M208290</guid>
      <dc:creator>SMM10</dc:creator>
      <dc:date>2022-05-17T17:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to run query returned from Rest?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-query-returned-from-Rest/m-p/598160#M208291</link>
      <description>&lt;P&gt;Thanks for the input! In this case I want to edit the search before running, so I don't want it to really run as is with an existing job result or even with the current query. I am using it as a historical analysis on alerts to review how they missed or how far off they were during an event that it doesn't capture.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 17:59:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-query-returned-from-Rest/m-p/598160#M208291</guid>
      <dc:creator>SMM10</dc:creator>
      <dc:date>2022-05-17T17:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to run query returned from Rest?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-query-returned-from-Rest/m-p/598166#M208295</link>
      <description>&lt;P&gt;For dashboards, you have to double-dollar the variable names&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval search=[| rest splunk_server=local /servicesNS/-/-/saved/searches | where title="SomeAlert" | fields qualifiedSearch | rename qualifiedSearch as query | format "" "" "" "" "" ""]
| map search="| makeresults | map search="$$search$$&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 17 May 2022 18:23:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-run-query-returned-from-Rest/m-p/598166#M208295</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-17T18:23:56Z</dc:date>
    </item>
  </channel>
</rss>

