<?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 performance impact &amp;amp; How to find user deploying high impact searches in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-performance-impact-How-to-find-user-deploying-high-impact/m-p/657727#M227162</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a similar situation as yours. I want to find users who perform searches that are resource intensive. Could you share the search strings you used to perform your task?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2023 13:42:14 GMT</pubDate>
    <dc:creator>CK_Gold</dc:creator>
    <dc:date>2023-09-15T13:42:14Z</dc:date>
    <item>
      <title>Search performance impact &amp; How to find user deploying high impact searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-performance-impact-How-to-find-user-deploying-high-impact/m-p/405050#M117106</link>
      <description>&lt;P&gt;Hello Splunkers, I have two questions today, concerning user's queries and performance impact.&lt;/P&gt;

&lt;P&gt;I couldn't find a clear answer in the forum (unless I didn't search very well...).&lt;/P&gt;

&lt;P&gt;Is there any way to find if a user launches a search that has a high impact on my indexers' system performance?&lt;/P&gt;

&lt;P&gt;Several times in the month I have RAM+CPU saturation on my indexers (not on the same and not in the same frequency).&lt;BR /&gt;
At this moment I see many splunkd processes running but I'd like to find out if it is a "heavy" query launched by a user and so to inform him.&lt;/P&gt;

&lt;P&gt;The goal is to educate users by applying Splunk's best practices.&lt;/P&gt;

&lt;P&gt;The last question: &lt;BR /&gt;
Is there any way to restrict users using the "*" character in their queries or stop using it if it's not in the logic "key=value"?&lt;/P&gt;

&lt;P&gt;Thank you in advance.&lt;BR /&gt;
Michael&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 10:58:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-performance-impact-How-to-find-user-deploying-high-impact/m-p/405050#M117106</guid>
      <dc:creator>mvagionakis</dc:creator>
      <dc:date>2019-06-05T10:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Search performance impact &amp; How to find user deploying high impact searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-performance-impact-How-to-find-user-deploying-high-impact/m-p/405051#M117107</link>
      <description>&lt;P&gt;Hi @mvagionakis &lt;/P&gt;

&lt;P&gt;Answer to your first question, to see resource utilization go to &lt;STRONG&gt;Settings &amp;gt; Monitoring Console &amp;gt; Resource Usage&lt;/STRONG&gt; and below search query which shows which user executed search how much CPU and memory it used.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_introspection host=* source=*/resource_usage.log* component=PerProcess data.process_type="search" 
| stats latest(data.pct_cpu) AS resource_usage_cpu latest(data.mem_used) AS resource_usage_mem by data.pid, _time, data.search_props.type,data.search_props.mode, data.search_props.role,data.search_props.user, data.search_props.app, data.search_props.sid
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Answer to your second question is &lt;STRONG&gt;No&lt;/STRONG&gt;, you cannot restrict a user from using &lt;CODE&gt;*&lt;/CODE&gt;. But you can restrict the user to access particular indexes only when they say &lt;CODE&gt;index=*&lt;/CODE&gt; by setting up &lt;STRONG&gt;default searchable indexes&lt;/STRONG&gt;. Settings &amp;gt; Access Controls &amp;gt; Roles &amp;gt; Select User, Indexes searched by default. If you want to restrict some user to completely search the index you can use "Indexes" on the same setting page.&lt;/P&gt;

&lt;P&gt;Hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 13:33:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-performance-impact-How-to-find-user-deploying-high-impact/m-p/405051#M117107</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-06-05T13:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Search performance impact &amp; How to find user deploying high impact searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-performance-impact-How-to-find-user-deploying-high-impact/m-p/405052#M117108</link>
      <description>&lt;P&gt;Hey VatsalJagani,&lt;/P&gt;

&lt;P&gt;that's almost what I need.&lt;BR /&gt;
With your query I can find everything except the user's query but I can find it with another query that I found in this forum.&lt;/P&gt;

&lt;P&gt;Thank you very much.&lt;BR /&gt;
Michael &lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 14:55:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-performance-impact-How-to-find-user-deploying-high-impact/m-p/405052#M117108</guid>
      <dc:creator>mvagionakis</dc:creator>
      <dc:date>2019-06-05T14:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Search performance impact &amp; How to find user deploying high impact searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-performance-impact-How-to-find-user-deploying-high-impact/m-p/405053#M117109</link>
      <description>&lt;P&gt;Nice to here that. You can comment that query to find search query down here so in future it helps other users like us.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 15:01:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-performance-impact-How-to-find-user-deploying-high-impact/m-p/405053#M117109</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-06-05T15:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Search performance impact &amp; How to find user deploying high impact searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-performance-impact-How-to-find-user-deploying-high-impact/m-p/405054#M117110</link>
      <description>&lt;P&gt;There are a few dashboards in &lt;A href="https://splunkbase.splunk.com/app/3796/" target="_blank"&gt;Alerts for Splunk Admins (splunkbase)&lt;/A&gt; or &lt;A href="https://github.com/gjanders/SplunkAdmins" target="_blank"&gt;github&lt;/A&gt; that might help with tracking down the issues here. There are also alerts  / reports to detect dashboard or saved searches with index=* or similar.&lt;/P&gt;

&lt;P&gt;In particular for the dashboards:&lt;BR /&gt;
troubleshooting_indexer_cpu&lt;BR /&gt;
troubleshooting_resource_usage_per_user&lt;BR /&gt;
detect_excessive_search_use&lt;/P&gt;

&lt;P&gt;Saved searches:&lt;BR /&gt;
SearchHeadLevel - Scheduled searches not specifying an index&lt;BR /&gt;
SearchHeadLevel - User - Dashboards searching all indexes&lt;BR /&gt;
SearchHeadLevel - Scheduled Searches without a configured earliest and latest time&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:49:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-performance-impact-How-to-find-user-deploying-high-impact/m-p/405054#M117110</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-09-30T00:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Search performance impact &amp; How to find user deploying high impact searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-performance-impact-How-to-find-user-deploying-high-impact/m-p/657727#M227162</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a similar situation as yours. I want to find users who perform searches that are resource intensive. Could you share the search strings you used to perform your task?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 13:42:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-performance-impact-How-to-find-user-deploying-high-impact/m-p/657727#M227162</guid>
      <dc:creator>CK_Gold</dc:creator>
      <dc:date>2023-09-15T13:42:14Z</dc:date>
    </item>
  </channel>
</rss>

