<?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: Rest Query to fetch all unsaved searches along with userid ( optional ) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-write-a-Rest-Query-to-fetch-all-unsaved-searches-along/m-p/603434#M104993</link>
    <description>&lt;P&gt;I'm not aware of a REST command for that specific use case, but you can use REST to run a search for unsaved (ad-hoc) searches.&amp;nbsp; Start with this search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_audit source=audittrail sourcetype=audittrail action=search savedsearch_name=""&lt;/LI-CODE&gt;&lt;P&gt;Finding searches against a specific index is challenging.&amp;nbsp; Index names may or may not be specified in the query text.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2022 18:41:21 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-06-27T18:41:21Z</dc:date>
    <item>
      <title>How do I write a Rest Query to fetch all unsaved searches along with userid ( optional )</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-write-a-Rest-Query-to-fetch-all-unsaved-searches-along/m-p/603394#M104985</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;While exploring Splunk documentation and few scenarios ,&lt;BR /&gt;&lt;BR /&gt;noticed that there is Rest approach to extract&amp;nbsp; saved one.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;But i would like to extract unsaved ( adhoc ) searches performed to understand patterns and load&lt;/P&gt;&lt;P&gt;1. Unsaved searches performed on given index or all indexes along with the query used.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found below threads which can be used to fetch saved searches&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-list-of-all-saved-searches-from-all-apps-using/m-p/162615" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-list-of-all-saved-searches-from-all-apps-using/m-p/162615&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Listing-all-saved-searches-from-all-apps-via-REST-without/m-p/508688" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Splunk-Search/Listing-all-saved-searches-from-all-apps-via-REST-without/m-p/508688&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is there any Rest based query which can be used for extracting to find adhoc searches performed on splunk to understand load patterns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 10:24:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-write-a-Rest-Query-to-fetch-all-unsaved-searches-along/m-p/603394#M104985</guid>
      <dc:creator>splunkfriend123</dc:creator>
      <dc:date>2022-06-28T10:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rest Query to fetch all unsaved searches along with userid ( optional )</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-write-a-Rest-Query-to-fetch-all-unsaved-searches-along/m-p/603427#M104992</link>
      <description>&lt;P&gt;Can you just setup MC (monitoring console) and use it to see those searches?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 17:28:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-write-a-Rest-Query-to-fetch-all-unsaved-searches-along/m-p/603427#M104992</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-06-27T17:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rest Query to fetch all unsaved searches along with userid ( optional )</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-write-a-Rest-Query-to-fetch-all-unsaved-searches-along/m-p/603434#M104993</link>
      <description>&lt;P&gt;I'm not aware of a REST command for that specific use case, but you can use REST to run a search for unsaved (ad-hoc) searches.&amp;nbsp; Start with this search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_audit source=audittrail sourcetype=audittrail action=search savedsearch_name=""&lt;/LI-CODE&gt;&lt;P&gt;Finding searches against a specific index is challenging.&amp;nbsp; Index names may or may not be specified in the query text.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 18:41:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-write-a-Rest-Query-to-fetch-all-unsaved-searches-along/m-p/603434#M104993</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-06-27T18:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rest Query to fetch all unsaved searches along with userid ( optional )</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-write-a-Rest-Query-to-fetch-all-unsaved-searches-along/m-p/603555#M105016</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your quickresponse.&lt;BR /&gt;&lt;BR /&gt;Currently i am looking for Rest based query.&lt;/P&gt;&lt;P&gt;With below query i am able to find saved searches , not sure how to tweak below query to cater my need to fetch unsaved / adhoc searches performed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query to fetch saved searches :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| rest /servicesNS/-/-/saved/searches splunk_server=local&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-list-of-all-saved-searches-from-all-apps-using/m-p/162615" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/How-can-I-get-a-list-of-all-saved-searches-from-all-apps-using/m-p/162615&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 10:17:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-write-a-Rest-Query-to-fetch-all-unsaved-searches-along/m-p/603555#M105016</guid>
      <dc:creator>splunkfriend123</dc:creator>
      <dc:date>2022-06-28T10:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rest Query to fetch all unsaved searches along with userid ( optional )</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-write-a-Rest-Query-to-fetch-all-unsaved-searches-along/m-p/603594#M105020</link>
      <description>&lt;P&gt;As I wrote earlier, there is no REST command to fetch ad-hoc searches.&amp;nbsp; You can, however, use REST to submit a new search job (using the query provided earlier) to extract ad-hoc search info from the logs.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 12:42:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-write-a-Rest-Query-to-fetch-all-unsaved-searches-along/m-p/603594#M105020</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-06-28T12:42:48Z</dc:date>
    </item>
  </channel>
</rss>

