<?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: Analysis on splunk users in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Analysis-on-splunk-users/m-p/236229#M176175</link>
    <description>&lt;P&gt;This should start you down the right path:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action=search info=granted search=* NOT "search_id='scheduler" NOT "search='|history" NOT "user=splunk-system-user" NOT "search='typeahead" NOT "search='| metadata type=* | search totalCount&amp;gt;0" | stats count by user search _time | sort _time | convert ctime(_time) | stats list(_time) as time list(search) as search by user
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 22 Nov 2016 23:18:55 GMT</pubDate>
    <dc:creator>mrgibbon</dc:creator>
    <dc:date>2016-11-22T23:18:55Z</dc:date>
    <item>
      <title>Analysis on splunk users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Analysis-on-splunk-users/m-p/236228#M176174</link>
      <description>&lt;P&gt;Analysis on splunk users, for this i need to display&lt;/P&gt;

&lt;P&gt;_time   host         user   total_run_time  searchQueryUsed  Url&lt;/P&gt;

&lt;P&gt;Please help me with splunk query&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:51:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Analysis-on-splunk-users/m-p/236228#M176174</guid>
      <dc:creator>sravankaripe</dc:creator>
      <dc:date>2020-09-29T11:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis on splunk users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Analysis-on-splunk-users/m-p/236229#M176175</link>
      <description>&lt;P&gt;This should start you down the right path:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action=search info=granted search=* NOT "search_id='scheduler" NOT "search='|history" NOT "user=splunk-system-user" NOT "search='typeahead" NOT "search='| metadata type=* | search totalCount&amp;gt;0" | stats count by user search _time | sort _time | convert ctime(_time) | stats list(_time) as time list(search) as search by user
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Nov 2016 23:18:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Analysis-on-splunk-users/m-p/236229#M176175</guid>
      <dc:creator>mrgibbon</dc:creator>
      <dc:date>2016-11-22T23:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis on splunk users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Analysis-on-splunk-users/m-p/236230#M176176</link>
      <description>&lt;P&gt;index=&lt;EM&gt;audit action=search (id=* OR search_id=&lt;EM&gt;) | eval search_id = if(isnull(search_id), id, search_id) | replace '&lt;/EM&gt;' with * in search_id  | search search_id!=rt&lt;/EM&gt;*  | rex "search='(?.&lt;EM&gt;?)', autojoin"  | 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 first(apiStartTime) as "Earliest time" first(apiEndTime) as "Latest time" values(host) as host by search_id | search search_id=&lt;/EM&gt; search=search* OR search=rtsearch*| sort - total_run_time  | fields - search_id | join user [search index=&lt;EM&gt;internal  user=tk* sourcetype=splunkd_ui_access | rex field=referer "(?Phttps?:\/\/[\w\d./&lt;/EM&gt;-]+)\?.*"] | dedup search  | head 10 | table host user url total_run_time search&lt;/P&gt;

&lt;P&gt;i got  results but it took long time to execute and i am executing it for last 15 mins . can any one help me out in increase the performance. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:52:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Analysis-on-splunk-users/m-p/236230#M176176</guid>
      <dc:creator>sravankaripe</dc:creator>
      <dc:date>2020-09-29T11:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis on splunk users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Analysis-on-splunk-users/m-p/236231#M176177</link>
      <description>&lt;P&gt;thanks but url is missing on which you gave.&lt;/P&gt;

&lt;P&gt;i have _time host user total_run_time searchQueryUsed fields in the index=_audit&lt;BR /&gt;
and url user on index=_internal.&lt;BR /&gt;
i have joined based on the field name user.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:52:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Analysis-on-splunk-users/m-p/236231#M176177</guid>
      <dc:creator>sravankaripe</dc:creator>
      <dc:date>2020-09-29T11:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis on splunk users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Analysis-on-splunk-users/m-p/236232#M176178</link>
      <description>&lt;P&gt;Try this. Not sure where you are getting &lt;CODE&gt;total_run_time&lt;/CODE&gt;, but this should give you everything else and hopefully a bit faster.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=_internal user=* sourcetype=splunkd_ui_access) OR (index=_audit action=search (search="\'rtsearch*" OR search="\'search*") AND search_id="*" AND search_id!=rt* AND id!=rt*) 
| eval search_id = coalesce(search_id, id) 
| rex field=referer "(?P&amp;lt;ref&amp;gt;https?[^\?]+)" 
| eventstats latest(ref) as ref by user 
| where index="_audit" 
| stats latest(ref) as ref min(_time) as _time max(total_run_time) as total_run_time first(search) as search first(apiStartTime) as "Earliest time" first(apiEndTime) as "Latest time" values(host) as host by search_id
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Nov 2016 17:12:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Analysis-on-splunk-users/m-p/236232#M176178</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-11-23T17:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis on splunk users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Analysis-on-splunk-users/m-p/236233#M176179</link>
      <description>&lt;P&gt;Can you edit your post and use the code sample button?&lt;BR /&gt;
The above doesn't work, I think its missing a few things &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 23:06:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Analysis-on-splunk-users/m-p/236233#M176179</guid>
      <dc:creator>mrgibbon</dc:creator>
      <dc:date>2016-11-23T23:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis on splunk users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Analysis-on-splunk-users/m-p/236234#M176180</link>
      <description>&lt;P&gt;Yeah, it wasnt a complete answer, but a guide in the right direction, teach a man to fish and all that. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 23:06:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Analysis-on-splunk-users/m-p/236234#M176180</guid>
      <dc:creator>mrgibbon</dc:creator>
      <dc:date>2016-11-23T23:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Analysis on splunk users</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Analysis-on-splunk-users/m-p/236235#M176181</link>
      <description>&lt;P&gt;The query seems to executing fast. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 14:05:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Analysis-on-splunk-users/m-p/236235#M176181</guid>
      <dc:creator>sravankaripe</dc:creator>
      <dc:date>2016-11-25T14:05:17Z</dc:date>
    </item>
  </channel>
</rss>

