<?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: Finding searches for a user in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Finding-searches-for-a-user/m-p/51605#M12497</link>
    <description>&lt;P&gt;Tried index=_* AND index=* sourcetype=searches over 24 hours .  0 results.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Mar 2013 14:21:33 GMT</pubDate>
    <dc:creator>rmorlen</dc:creator>
    <dc:date>2013-03-06T14:21:33Z</dc:date>
    <item>
      <title>Finding searches for a user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-searches-for-a-user/m-p/51603#M12495</link>
      <description>&lt;P&gt;Pre-Splunk 5 I could find a list of searches for a user by doing something like:&lt;/P&gt;

&lt;P&gt;index=_internal sourcetype=searches username&lt;/P&gt;

&lt;P&gt;What is the Splunk 5 equivalent?&lt;/P&gt;

&lt;P&gt;How about getting a count of all searches run for a day?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 14:40:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-searches-for-a-user/m-p/51603#M12495</guid>
      <dc:creator>rmorlen</dc:creator>
      <dc:date>2013-03-05T14:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Finding searches for a user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-searches-for-a-user/m-p/51604#M12496</link>
      <description>&lt;P&gt;take a look in look in index=_audit&lt;/P&gt;

&lt;P&gt;[edit]&lt;BR /&gt;
it's not as simple &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;you may want to take a look at the SOS app, it has nice dashboards on the search usage (for ad-hoc searches and scheduled searches)&lt;/P&gt;

&lt;P&gt;# ad-hoc searches look in the _audit&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=_audit action=search (id=* OR search_id=*) | eval search_id = if(isnull(search_id), id, search_id) | replace '*' with * in search_id |  rex "search='(?&amp;lt;search&amp;gt;.*?)', autojoin" | search search_id!=scheduler_* | convert num(total_run_time) | eval user = if(user="n/a", null(), user) | stats min(_time) as _time first(user) as user max(total_run_time) as total_run_time first(search) as search by search_id | search search=search* search!=*_internal* search!=*_audit* | chart median(total_run_time) as "Median search time" perc95(total_run_time) as "95th Percentile search time" sum(total_run_time) as "Total search time" count as "Search count" max(_time) as "Last use" by user | fieldformat "Last use" = strftime('Last use', "%F %T.%Q %:z")&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;# scheduled searches you can look in the _internal index&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=_internal source=*scheduler.log*&lt;BR /&gt;
                      | stats min(run_time) as "Min runtime (seconds)", median(run_time) as median_runtime, max(run_time) as max_runtime, count(eval(status!="continued")) AS total_exec, count(eval(status=="success")) as "Successful executions", count(eval(status=="skipped")) AS "Skipped executions" by app, savedsearch_name, user&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 15:43:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-searches-for-a-user/m-p/51604#M12496</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-03-05T15:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Finding searches for a user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-searches-for-a-user/m-p/51605#M12497</link>
      <description>&lt;P&gt;Tried index=_* AND index=* sourcetype=searches over 24 hours .  0 results.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2013 14:21:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-searches-for-a-user/m-p/51605#M12497</guid>
      <dc:creator>rmorlen</dc:creator>
      <dc:date>2013-03-06T14:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Finding searches for a user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-searches-for-a-user/m-p/51606#M12498</link>
      <description>&lt;P&gt;Thank you for this&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 13:06:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-searches-for-a-user/m-p/51606#M12498</guid>
      <dc:creator>rsathish47</dc:creator>
      <dc:date>2016-04-01T13:06:48Z</dc:date>
    </item>
  </channel>
</rss>

