<?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: Editing Notable Events is running slow in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196916#M1004</link>
    <description>&lt;P&gt;"Progress" is all I wanted to hear, thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://cdn.meme.am/instances/500x/54068096.jpg" alt="alt text" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Dec 2014 22:37:08 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-12-11T22:37:08Z</dc:date>
    <item>
      <title>Editing Notable Events is running slow</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196909#M997</link>
      <description>&lt;P&gt;I'm experiencing quite slow executions of host:8000/custom/SA-ThreatIntelligence/notable_events/update_status when editing a notable event through the Incident Review view. Here's a Gantt chart of a slow-feeling execution:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://i.imgur.com/LskYPwT.gif" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Built based on &lt;CODE&gt;notable_event_update_rest_handler.log&lt;/CODE&gt; and &lt;CODE&gt;reviewstatuses_rest_handler.log&lt;/CODE&gt;. The biggest offenders are getCorrelationSearches, commentLengthRequired, isUrgencyOverrideAllowed, getStatusLabelMap and getDefaultStatus, the others are just calling those and inheriting their slowness.&lt;BR /&gt;
Those all sound as if they're basically loading configuration - any hint on speeding that up or further debugging?&lt;/P&gt;

&lt;P&gt;Splunk 6.1.4 on Windows 2008R2, running ES 3.1.1.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:06:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196909#M997</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2020-09-28T18:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Editing Notable Events is running slow</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196910#M998</link>
      <description>&lt;P&gt;Update: As documented in #splunk, I've dug a little deeper using commentLengthRequired as my guinea pig.&lt;/P&gt;

&lt;P&gt;Underneath it seems to be calling &lt;CODE&gt;| rest /services/alerts/log_review/comment&lt;/CODE&gt; (not through the search command of course), which is taking up the biggest chunk of the time. I've replicated this on my laptop with just the SA-ThreatIntelligence app enabled to turn off any other noise that might add time... still takes ages for such a simple config call.&lt;/P&gt;

&lt;P&gt;Digging deeper into &lt;CODE&gt;log_review_rest_handler.py&lt;/CODE&gt;, apparently two seconds each are spent doing who knows what before entering either the &lt;CODE&gt;setup&lt;/CODE&gt; or &lt;CODE&gt;handleList&lt;/CODE&gt; method:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;127.0.0.1 - admin [06/Nov/2014:13:12:17.666 +0100] "GET /services/alerts/log_review/comment?count=0 HTTP/1.0" 200 4172 - - - 7813ms
2014-11-06 13:12:19,348 DEBUG In setup
2014-11-06 13:12:19,348 DEBUG Out setup
2014-11-06 13:12:21,598 DEBUG In handleList
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can see I'm calling the REST endpoint at 13:12:17, &lt;CODE&gt;setup&lt;/CODE&gt; gets called two seconds later and finishes in no time. Another two seconds later &lt;CODE&gt;handleList&lt;/CODE&gt; gets called - those four seconds are spent somewhere in between the various layers of Splunkiness, and happen on several of these custom REST calls. In total, they add up to most of the time I'm seeing the &lt;CODE&gt;notable_events/update_status&lt;/CODE&gt; consume.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2014 12:28:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196910#M998</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-11-06T12:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Editing Notable Events is running slow</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196911#M999</link>
      <description>&lt;P&gt;Replacing this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;from splunk.appserver.mrsparkle.lib.util import make_splunkhome_path
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;with this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#from splunk.appserver.mrsparkle.lib.util import make_splunkhome_path

def make_splunkhome_path(args):
    return os.path.join(os.getenv("SPLUNK_HOME"), *args)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(and importing os where necessary) in a dozen or two .py files in &lt;CODE&gt;SA-ThreatIntelligence/bin&lt;/CODE&gt; has shaved eight seconds off the REST call for saving notable events.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 09:44:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196911#M999</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-11-10T09:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Editing Notable Events is running slow</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196912#M1000</link>
      <description>&lt;P&gt;You are correct, the redundant calls should not be performed. Look to a future maintenance release of ES to improve performance (we actually have some other things we are looking into that should improve performance).&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 22:10:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196912#M1000</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2014-11-13T22:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Editing Notable Events is running slow</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196913#M1001</link>
      <description>&lt;P&gt;Looking forward as hard as my eyes can take &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;While you're at it, are there plans to reduce the looking-for-summaries overhead that occurs when launching a search? Apparently all saved searches visible in the current context are examined, taking 30ms-ish per saved search on a testing instance. With hundreds of globally visible saved searches in ES, that adds up to several seconds of overhead for every search. Here's a pastebin, look around line 146ish: &lt;A href="http://pastebin.com/hg3AtJCe"&gt;http://pastebin.com/hg3AtJCe&lt;/A&gt;&lt;BR /&gt;
It doesn't explicitly say "going through all visible saved searches", but I've reproduced that with a naked Splunk. No saved searches, 0.1s for &lt;CODE&gt;| stats count&lt;/CODE&gt; - 75 saved searches, 0.5s - 150 saved searches, 1.0s. Turning them app-visible and running the search in a different app behaves as if the saved searches didn't exist, so the globally visible ones are the issue.&lt;/P&gt;

&lt;P&gt;I fear making that faster underneath is a core Splunk issue rather than ES, so in the meantime - what would happen if one were to make the saved searches underneath a correlation search app-visible only? Didn't get around to test that on a different machine yet &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 22:16:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196913#M1001</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-11-13T22:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Editing Notable Events is running slow</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196914#M1002</link>
      <description>&lt;P&gt;An example of optimization potential, the Incident Review view loads a list of Notable Event owners for the filter in the top left corner via a search... and calls a custom .py endpoint to load a list of Notable Event owners for the log review popup thingy. That'll also help declutter code redundancy... and make customization of that list easier.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 22:19:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196914#M1002</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-11-13T22:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Editing Notable Events is running slow</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196915#M1003</link>
      <description>&lt;P&gt;Hey Luke,&lt;/P&gt;

&lt;P&gt;Any news about that maintenance release?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2014 21:36:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196915#M1003</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-12-11T21:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Editing Notable Events is running slow</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196916#M1004</link>
      <description>&lt;P&gt;"Progress" is all I wanted to hear, thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://cdn.meme.am/instances/500x/54068096.jpg" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2014 22:37:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196916#M1004</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-12-11T22:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Editing Notable Events is running slow</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196917#M1005</link>
      <description>&lt;P&gt;I can't be very specific but I can tell you that it should be soon. I actually reviewed the change-list for this particular problem myself. Sorry for having to be cagey about the dates.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2014 22:38:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196917#M1005</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2014-12-11T22:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Editing Notable Events is running slow</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196918#M1006</link>
      <description>&lt;P&gt;3.2.1 released a few days ago still uses this extremely slow import. A minute of fiddling with a few .py files after updating takes &lt;A href="https://localhost:8000/en-US/custom/SA-ThreatIntelligence/notable_info/all"&gt;https://localhost:8000/en-US/custom/SA-ThreatIntelligence/notable_info/all&lt;/A&gt; from 13.2s to 10s, for example. Still terrible, but it was 32% more terrible before the fiddling...&lt;/P&gt;

&lt;P&gt;Also, it seems there are slow calls being made from the main UI thread synchronously, as complained about by my browser:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://i.imgur.com/gJQKvVD.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jan 2015 01:34:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Editing-Notable-Events-is-running-slow/m-p/196918#M1006</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-01-17T01:34:02Z</dc:date>
    </item>
  </channel>
</rss>

