<?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 find out query along with no of execution times in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Rest-Query-to-find-out-query-along-with-no-of-execution-times/m-p/603245#M209937</link>
    <description>&lt;P&gt;It's a question that pops up quite frequently (auditing index accesses). Might be worth creating an idea on &lt;A href="https://ideas.splunk.com/" target="_blank"&gt;https://ideas.splunk.com/&lt;/A&gt; or supporting existing one if someone already made one.&lt;/P&gt;</description>
    <pubDate>Sat, 25 Jun 2022 08:50:42 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2022-06-25T08:50:42Z</dc:date>
    <item>
      <title>Rest Query to find out query along with no of execution times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rest-Query-to-find-out-query-along-with-no-of-execution-times/m-p/603171#M209914</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to use REST syntax and retrieve the following.&lt;/P&gt;&lt;P&gt;1. Rest Query to retrieve all unique searches performed on a given index and count no of times it was searched&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 14:28:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rest-Query-to-find-out-query-along-with-no-of-execution-times/m-p/603171#M209914</guid>
      <dc:creator>splunkfriend123</dc:creator>
      <dc:date>2022-06-24T14:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rest Query to find out query along with no of execution times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rest-Query-to-find-out-query-along-with-no-of-execution-times/m-p/603173#M209915</link>
      <description>&lt;P&gt;There is no REST command that does all that.&amp;nbsp; You can use REST to search the audit log for all searches, but it won't be by index.&lt;/P&gt;&lt;P&gt;It's possible to parse the search strings to extract index names, but that's not perfect since index names may not be specified in the query itself.&amp;nbsp; They may be in a macro or an eventtype or in the user's default indexes.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 14:43:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rest-Query-to-find-out-query-along-with-no-of-execution-times/m-p/603173#M209915</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-06-24T14:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rest Query to find out query along with no of execution times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rest-Query-to-find-out-query-along-with-no-of-execution-times/m-p/603235#M209932</link>
      <description>&lt;P&gt;&lt;SPAN&gt;for _internal index for example:&lt;BR /&gt;&lt;BR /&gt;|&amp;nbsp;rest&amp;nbsp;/services/saved/searches&amp;nbsp;splunk_server=local&amp;nbsp;count=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;|&amp;nbsp;search&amp;nbsp;cron_schedule!="*&amp;nbsp;*"&amp;nbsp;AND&amp;nbsp;search="*index=_internal*"&lt;BR /&gt;&lt;BR /&gt;when there is no cron schedule for a saved search, it cant execute .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2022 05:39:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rest-Query-to-find-out-query-along-with-no-of-execution-times/m-p/603235#M209932</guid>
      <dc:creator>marysan</dc:creator>
      <dc:date>2022-06-25T05:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rest Query to find out query along with no of execution times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rest-Query-to-find-out-query-along-with-no-of-execution-times/m-p/603243#M209935</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/246600"&gt;@splunkfriend123&lt;/a&gt;&amp;nbsp;there is no way to find the unique searches using REST command.&lt;/P&gt;&lt;P&gt;you could run the below search on audit index to get the details of adhoc, api and any scheduled searches.&lt;/P&gt;&lt;P&gt;index=_audit action="search" search="*" | eval ad-hoc=if(NOT user="splunk-system-user", "Yes", "No") | eval var1=if(match(search,"(?:index=\*|index=\s\*|index\s=\s\*|index=\"\*\"|index =\"\*\"|index = \"\*\")"), "TUNE-ME", "OK") | table user search ad-hoc var1&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2022 08:06:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rest-Query-to-find-out-query-along-with-no-of-execution-times/m-p/603243#M209935</guid>
      <dc:creator>Roy_9</dc:creator>
      <dc:date>2022-06-25T08:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rest Query to find out query along with no of execution times</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rest-Query-to-find-out-query-along-with-no-of-execution-times/m-p/603245#M209937</link>
      <description>&lt;P&gt;It's a question that pops up quite frequently (auditing index accesses). Might be worth creating an idea on &lt;A href="https://ideas.splunk.com/" target="_blank"&gt;https://ideas.splunk.com/&lt;/A&gt; or supporting existing one if someone already made one.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2022 08:50:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rest-Query-to-find-out-query-along-with-no-of-execution-times/m-p/603245#M209937</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-06-25T08:50:42Z</dc:date>
    </item>
  </channel>
</rss>

