<?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: What is this (search_startup_time) field in _audit index ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-is-this-search-startup-time-field-in-audit-index/m-p/320081#M95662</link>
    <description>&lt;P&gt;I sort results by total search run time - from there you can analyse which search by user takes how much time to get completed - &lt;/P&gt;

&lt;P&gt;If this comments/answers help , please upvote / mark as answered&lt;/P&gt;</description>
    <pubDate>Thu, 05 Apr 2018 03:46:05 GMT</pubDate>
    <dc:creator>splunker12er</dc:creator>
    <dc:date>2018-04-05T03:46:05Z</dc:date>
    <item>
      <title>What is this (search_startup_time) field in _audit index ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-this-search-startup-time-field-in-audit-index/m-p/320077#M95658</link>
      <description>&lt;P&gt;Hi Folks&lt;/P&gt;

&lt;P&gt;May I know what is this search_startup_time field in this event from splunk _audit index &amp;amp; also would like to understand relation between exec_time &amp;amp; search_startup_time &lt;/P&gt;

&lt;P&gt;I am looking to find if any ad hoc search got queued and run lately after actual search started time. &lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/236654-screen-shot-2018-04-03-at-91631-pm.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:55:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-this-search-startup-time-field-in-audit-index/m-p/320077#M95658</guid>
      <dc:creator>PowerPacked</dc:creator>
      <dc:date>2020-09-29T18:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: What is this (search_startup_time) field in _audit index ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-this-search-startup-time-field-in-audit-index/m-p/320078#M95659</link>
      <description>&lt;P&gt;&lt;CODE&gt;search_starup_time&lt;/CODE&gt; is the time that parsing is complete and is ready to wait for responses from indexers.&lt;BR /&gt;
&lt;CODE&gt;exec_time&lt;/CODE&gt; is the epoch time when exactly the search was executed by the user&lt;BR /&gt;
&lt;CODE&gt;total_run_time&lt;/CODE&gt; is the time in seconds that has been taken for the job to complete&lt;/P&gt;

&lt;P&gt;Also below are some interesting fields,&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;scanCount&lt;/CODE&gt; - The number of events that are scanned or read off disk&lt;BR /&gt;
&lt;CODE&gt;eventCount&lt;/CODE&gt; - The number of events returned by the search.&lt;BR /&gt;
&lt;CODE&gt;resultCount&lt;/CODE&gt; - The total number of results returned by the search.&lt;BR /&gt;
&lt;CODE&gt;eventAvailableCount&lt;/CODE&gt; - The number of events that are available for export.&lt;BR /&gt;
&lt;CODE&gt;dropCount&lt;/CODE&gt; - In real-time searches only, the number of possible events dropped due to queue size.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 02:23:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-this-search-startup-time-field-in-audit-index/m-p/320078#M95659</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2018-04-05T02:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: What is this (search_startup_time) field in _audit index ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-this-search-startup-time-field-in-audit-index/m-p/320079#M95660</link>
      <description>&lt;P&gt;Thanks for Reply @splunker12er&lt;/P&gt;

&lt;P&gt;Can i also know if Splunk is writing any way to find, if Ad Hoc searches were Queued and run after exec_time.&lt;/P&gt;

&lt;P&gt;I am looking for (Ad Hoc Searches Latency Time)&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 03:27:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-this-search-startup-time-field-in-audit-index/m-p/320079#M95660</guid>
      <dc:creator>PowerPacked</dc:creator>
      <dc:date>2018-04-05T03:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: What is this (search_startup_time) field in _audit index ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-this-search-startup-time-field-in-audit-index/m-p/320080#M95661</link>
      <description>&lt;P&gt;there are 4 status options for the info field...1. completed. 2. cancelled. 3. granted 4. failed&lt;/P&gt;

&lt;P&gt;"&lt;CODE&gt;granted&lt;/CODE&gt;" means that the scheduler or the user was allowed to run the search. The search will run when possible.&lt;BR /&gt;
"&lt;CODE&gt;Completed&lt;/CODE&gt;" - once the job is done you will see this status&lt;/P&gt;

&lt;P&gt;a job can be delayed or queued depending of the prioritization, or execution windows or concurrent search limits, etc. like (&lt;CODE&gt;NOT "search_id='scheduler" NOT "search='|history" NOT "search='typeahead" NOT "search='| metadata type=*&lt;/CODE&gt; )&lt;/P&gt;

&lt;P&gt;You can below query to see the searches run by users, with mainly the query , search_id, total_run_time, info, etc.. also you can modify the filter to exclude searches you are not interested&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit NOT(user="splunk-system-user" OR user="admin") action=search info!="granted"|table search_id,search,scan_count,event_count,result_count,available_count,drop_count,is_realtime,exec_time,search_et,search_lt,api_et,api_lt,searched_buckets,total_run_time,info,user|eval Run_Time=toString(total_run_time,"duration")|eval exec_time=strftime(exec_time,"%d/%b/%y %H:%M:%S"),search_et=strftime(search_et,"%d/%b/%y %H:%M:%S"),search_lt=strftime(search_lt,"%d/%b/%y %H:%M:%S")|RENAME Run_Time as "Search Run Time",exec_time as "Search Exec.Time",search_et as "Search Data From", search_lt as "Search Data To"|fields - total_run_time,api_et,api_lt,available_count,drop_count,is_realtime|sort 0 -"Search Run Time"|join search_id [search index=_audit NOT(user="splunk-system-user" OR user="admin") action=search info=granted search=* NOT "search_id='scheduler" NOT "search='|history" NOT "search='typeahead" NOT "search='| metadata type=* | search totalCount&amp;gt;0"|fields search_id, search]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:52:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-this-search-startup-time-field-in-audit-index/m-p/320080#M95661</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2020-09-29T18:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: What is this (search_startup_time) field in _audit index ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-this-search-startup-time-field-in-audit-index/m-p/320081#M95662</link>
      <description>&lt;P&gt;I sort results by total search run time - from there you can analyse which search by user takes how much time to get completed - &lt;/P&gt;

&lt;P&gt;If this comments/answers help , please upvote / mark as answered&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 03:46:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-this-search-startup-time-field-in-audit-index/m-p/320081#M95662</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2018-04-05T03:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: What is this (search_startup_time) field in _audit index ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-this-search-startup-time-field-in-audit-index/m-p/320082#M95663</link>
      <description>&lt;P&gt;Thanks Again &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/116107"&gt;@splunker12er&lt;/a&gt;&lt;/P&gt;

&lt;P&gt;I am not looking at how much time it took for a search to complete.&lt;/P&gt;

&lt;P&gt;I am looking at if any searches got queued and whats the que time &lt;/P&gt;

&lt;P&gt;for example:  this search shows what is the execution latency (Que Time) of Scheduled Searches&lt;/P&gt;

&lt;P&gt;index=_internal sourcetype=scheduler (status="completed" OR status="skipped" OR status="deferred")&lt;BR /&gt;
          | eval window_time = if(isnotnull(window_time), window_time, 0)&lt;BR /&gt;
          | eval execution_latency = max(dispatch_time - (scheduled_time + window_time), 0)&lt;BR /&gt;
          | timechart span=1h partial=f avg(execution_latency) AS avg_exec_latency, count(eval(status=="completed" OR status=="skipped")) AS total_exec, count(eval(status=="skipped")) AS skipped_exec&lt;BR /&gt;
          | eval skip_ratio = round(skipped_exec / total_exec * 100, 2)&lt;BR /&gt;
          | eval avg_exec_latency = round(avg_exec_latency, 2) | fields _time, avg_exec_latency&lt;/P&gt;

&lt;P&gt;But am not able to find one similar for Ad Hoc searches&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:56:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-this-search-startup-time-field-in-audit-index/m-p/320082#M95663</guid>
      <dc:creator>PowerPacked</dc:creator>
      <dc:date>2020-09-29T18:56:25Z</dc:date>
    </item>
  </channel>
</rss>

