<?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: How to search information on usage for each search from all the different apps in our Splunk environment? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201838#M58515</link>
    <description>&lt;P&gt;I'm getting the following error when I run twinspop search:  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error in 'rex' command: Encountered the following error while compiling the regex '\s(?:(?:search_id)|(?:sid))=[\'"]?(?&amp;lt;search_id&amp;gt;[^ \'",]+)': Regex: syntax error in subpattern name (missing terminator)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 17 Nov 2016 16:57:11 GMT</pubDate>
    <dc:creator>M2016G0216</dc:creator>
    <dc:date>2016-11-17T16:57:11Z</dc:date>
    <item>
      <title>How to search information on usage for each search from all the different apps in our Splunk environment?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201831#M58508</link>
      <description>&lt;P&gt;Ladies and Gentlemen,&lt;/P&gt;

&lt;P&gt;I have been tasked to write up a search that would give a total usage for each search from all the different apps. I have been digging through the master/deployment head and I have not found anything to work with. Should I be working directly with the search head where all the apps are running? If anyone could help with a good starting point I would be very grateful.&lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;BR /&gt;
Ernie,&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 18:46:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201831#M58508</guid>
      <dc:creator>ECovell</dc:creator>
      <dc:date>2016-08-01T18:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to search information on usage for each search from all the different apps in our Splunk environment?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201832#M58509</link>
      <description>&lt;P&gt;By usage do you mean license usage? &lt;BR /&gt;
If yes then the license usage can be measured by index, host, sourcetype and source. Unless you've a way to map any of these values to an app, I don't think it's possible for measure license usage by app.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 19:34:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201832#M58509</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-08-01T19:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to search information on usage for each search from all the different apps in our Splunk environment?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201833#M58510</link>
      <description>&lt;P&gt;If you are looking for search run time, disk usage, no of runs kind of stuff by each app, You can use the searches below and start exploring the data and do further customization.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /servicesNS/-/-/search/jobs | eval diskUsageMB=diskUsage/1024/1024 | rename eai:acl.owner as user,eai:acl.app AS app_name |search user!="splunk-system-user"  |eval search=if((isnull(label) OR label=""),sid,label)| stats sum(diskUsageMB) as totalDiskUsage by user app_name search |sort - totalDiskUsage

index=_audit source=audittrail info=completed search_id=* user=* NOT (user="splunk-system-user" OR user="n/a" OR search_id=rt_*  OR savedsearch_name="") |rex field=_raw "^.*\__{1}(?P.*)\_\_" |stats  count AS No_Runs,avg(total_run_time) AS avg_run_time by savedsearch_name splunk_server user app_name|eval avg_run_time=round(avg_run_time/60,2)|sort - No_Runs avg_run_time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Aug 2016 07:09:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201833#M58510</guid>
      <dc:creator>Ravan</dc:creator>
      <dc:date>2016-08-02T07:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to search information on usage for each search from all the different apps in our Splunk environment?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201834#M58511</link>
      <description>&lt;P&gt;No sir, I am not looking at license usage, my CSO is looking to clean up the searches and wants to know what searches are used and who is using them.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 10:53:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201834#M58511</guid>
      <dc:creator>ECovell</dc:creator>
      <dc:date>2016-08-02T10:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to search information on usage for each search from all the different apps in our Splunk environment?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201835#M58512</link>
      <description>&lt;P&gt;Thank you very much, the first search gave me a lot of information to work with!!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 12:22:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201835#M58512</guid>
      <dc:creator>ECovell</dc:creator>
      <dc:date>2016-08-02T12:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to search information on usage for each search from all the different apps in our Splunk environment?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201836#M58513</link>
      <description>&lt;P&gt;You are welcome. &lt;/P&gt;

&lt;P&gt;Also you can try the below app which gives slimier trends for monitoring Splunk users and searches ..etc&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/3241/"&gt;https://splunkbase.splunk.com/app/3241/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 06:04:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201836#M58513</guid>
      <dc:creator>Ravan</dc:creator>
      <dc:date>2016-08-03T06:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to search information on usage for each search from all the different apps in our Splunk environment?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201837#M58514</link>
      <description>&lt;P&gt;Trying to improve on this excellent search. I've got duration and delay stats, and count combined into 1 chart by user, app and saved search name:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;((index=_audit source=audittrail) OR index=_internal) savedsearch_name sourcetype!=splunkd_remote_searches  sourcetype!=splunkd_access NOT (splunk_archiver OR "bucket copy trigger")| rex field=_raw "\s(?:(?:search_id)|(?:sid))=[\'\"]?(?&amp;amp;lt;search_id&amp;amp;gt;[^ \'\",]+)"   | stats  max(dispatch_time) as dtime max(scheduled_time) as stime max(total_run_time) AS total_run_time last(app) as app by search_id savedsearch_name host user | eval delay=dtime-stime | stats avg(total_run_time) as avgDur max(total_run_time) as maxDur sum(total_run_time) as totalDur avg(delay) as avgDelay count values(host) as hosts by app savedsearch_name user | sort - count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 06 Aug 2016 00:03:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201837#M58514</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-08-06T00:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to search information on usage for each search from all the different apps in our Splunk environment?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201838#M58515</link>
      <description>&lt;P&gt;I'm getting the following error when I run twinspop search:  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error in 'rex' command: Encountered the following error while compiling the regex '\s(?:(?:search_id)|(?:sid))=[\'"]?(?&amp;lt;search_id&amp;gt;[^ \'",]+)': Regex: syntax error in subpattern name (missing terminator)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Nov 2016 16:57:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201838#M58515</guid>
      <dc:creator>M2016G0216</dc:creator>
      <dc:date>2016-11-17T16:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to search information on usage for each search from all the different apps in our Splunk environment?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201839#M58516</link>
      <description>&lt;P&gt;And, when I run the search suggested by Ravan, I get the following error:  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error in 'rex' command: Encountered the following error while compiling the regex '^.*\__{1}(?P.*)\_\_': Regex: unrecognized character after (?P
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Nov 2016 16:58:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-information-on-usage-for-each-search-from-all-the/m-p/201839#M58516</guid>
      <dc:creator>M2016G0216</dc:creator>
      <dc:date>2016-11-17T16:58:38Z</dc:date>
    </item>
  </channel>
</rss>

