<?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 Searches in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Searches/m-p/687773#M234575</link>
    <description>&lt;P&gt;Thanks for the response can i get a query that helps to show how much searches are been ran per indexes volume&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2024 17:04:31 GMT</pubDate>
    <dc:creator>whitecat001</dc:creator>
    <dc:date>2024-05-16T17:04:31Z</dc:date>
    <item>
      <title>Splunk Searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Searches/m-p/687768#M234572</link>
      <description>&lt;P&gt;Pls what is the rest endpoint for searches that users are running&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 16:38:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Searches/m-p/687768#M234572</guid>
      <dc:creator>whitecat001</dc:creator>
      <dc:date>2024-05-16T16:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Searches/m-p/687769#M234573</link>
      <description>&lt;P&gt;For running jobs - try this from the GUI - see the link for curl base CLI command&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server=local /services/search/jobs 
| fields author title, updated, search, runDuration, provenance, latestTime, owner eai:acl.app, diskUsage 
| rename author AS user eai:acl.app AS app title AS search_code 
| eval diskUsage_MB = round(diskUsage/1024/1024,2) 
| table user search_code, updated, search, runDuration, provenance, latestTime, owner, app diskUsage_MB&lt;/LI-CODE&gt;&lt;P&gt;Here's the Rest API and others&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.2.1/RESTREF/RESTsearch#search.2Fjobs" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.2.1/RESTREF/RESTsearch#search.2Fjobs&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 16:41:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Searches/m-p/687769#M234573</guid>
      <dc:creator>deepakc</dc:creator>
      <dc:date>2024-05-16T16:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Searches/m-p/687773#M234575</link>
      <description>&lt;P&gt;Thanks for the response can i get a query that helps to show how much searches are been ran per indexes volume&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 17:04:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Searches/m-p/687773#M234575</guid>
      <dc:creator>whitecat001</dc:creator>
      <dc:date>2024-05-16T17:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Searches/m-p/687775#M234576</link>
      <description>&lt;P&gt;Maybe this is what you need. &lt;STRONG&gt;Note&lt;/STRONG&gt;, as far as I know there are no fields that show the index used by a search,&amp;nbsp; that show the index used by searches, so you have to &lt;STRONG&gt;extract&lt;/STRONG&gt; that from the SPL code,&amp;nbsp; and index= can be all over the place in the code and also in macros,&amp;nbsp; so its tricky, but may be this will work for you.&lt;BR /&gt;&lt;BR /&gt;This shows the count of searches by index_used&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server=local /services/search/jobs 
| fields author title, updated, search, runDuration, provenance, latestTime, owner eai:acl.app, diskUsage 
| rename author AS user eai:acl.app AS app title AS search_code 
| rex field=search_code "(?&amp;lt;index_used&amp;gt;index\s*=\s*[^ ]+|index\s+IN|search\s*=\s*index=|search\s*=\s*inputlookup\s+in|index\s*=_\*)" 
| stats count(search_code) AS volume_of_searches_ran BY index_used
| sort - volume_of_searches_ran&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 17:58:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Searches/m-p/687775#M234576</guid>
      <dc:creator>deepakc</dc:creator>
      <dc:date>2024-05-16T17:58:40Z</dc:date>
    </item>
  </channel>
</rss>

