<?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: Search Logs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-Logs/m-p/171985#M186467</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest/services/search/jobs | fields *search* *duration* *sec*s
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 17 Aug 2015 21:30:49 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-08-17T21:30:49Z</dc:date>
    <item>
      <title>Search Logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Logs/m-p/171984#M186466</link>
      <description>&lt;P&gt;Hi, I wonder whether someone may be able to help me please.&lt;/P&gt;

&lt;P&gt;From the answer I found &lt;A href="http://answers.splunk.com/answers/151378/why-history-command-only-shows-my-searches-not-searches-run-by-all-users.html"&gt;here&lt;/A&gt; I'm using the query below to display searches that have been performed&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;

&lt;P&gt;Could someone perhaps tell me please is there a way be which I can see how long the search took to run.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2015 09:04:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Logs/m-p/171984#M186466</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-08-17T09:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Search Logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Logs/m-p/171985#M186467</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest/services/search/jobs | fields *search* *duration* *sec*s
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Aug 2015 21:30:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Logs/m-p/171985#M186467</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-17T21:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Search Logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Logs/m-p/171986#M186468</link>
      <description>&lt;P&gt;Hi @woodcock thank you for taking the time to come back to me with this.&lt;/P&gt;

&lt;P&gt;I've tried the code snippet you kindly provided, but unfortunately I receive the following error: &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Error in 'rest' command: This command&lt;BR /&gt;
must be the first command of a search.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;So I tried to moving this to the beginning of the search but this also doesn't work.&lt;/P&gt;

&lt;P&gt;Any ideas where I may have gone wrong please?&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 05:28:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Logs/m-p/171986#M186468</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-08-18T05:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Search Logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Logs/m-p/171987#M186469</link>
      <description>&lt;P&gt;My solution is not an extension to your original search but a 100% replacement for it.  I tested it on v6.2.3 and it works just fine as-is.  Use my solution's search string exactly as-is and it should give you everything you need (but in a totally different format).&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 06:17:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Logs/m-p/171987#M186469</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-18T06:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Search Logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Logs/m-p/171988#M186470</link>
      <description>&lt;P&gt;Hi thank you for coming back to me with this, and my apologies for perhaps not making this clearer, but is there a way by which I can integrate the two because I'd like to include the search the user performed and the username?&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 06:36:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Logs/m-p/171988#M186470</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-08-18T06:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Search Logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Logs/m-p/171989#M186471</link>
      <description>&lt;P&gt;Get rid of everything after (and including) the &lt;CODE&gt;|&lt;/CODE&gt; and see what fields are there (there is a username field but I don't recall what the name is).&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 06:41:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Logs/m-p/171989#M186471</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-18T06:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Search Logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Logs/m-p/171990#M186472</link>
      <description>&lt;P&gt;Hi @woodcock that's great.&lt;/P&gt;

&lt;P&gt;Kind regards and many thanks.&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 06:42:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Logs/m-p/171990#M186472</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-08-18T06:42:42Z</dc:date>
    </item>
  </channel>
</rss>

