<?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: Lookup slowing performance ways to optimize in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-slowing-performance-ways-to-optimize/m-p/487750#M136263</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;| savedsearch AR_BaseQuery filter=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is the cause of poor performance.&lt;/P&gt;

&lt;P&gt;please provide sample logs and explain fields.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2020 01:33:54 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-01-16T01:33:54Z</dc:date>
    <item>
      <title>Lookup slowing performance ways to optimize</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-slowing-performance-ways-to-optimize/m-p/487749#M136262</link>
      <description>&lt;P&gt;Hi , I have the following search query that lookups definition file TeamsLookupDef  which has 200 mappings between apifamily and domain, running the query is always going to waiting for queued job to start, any ideas how can this query be improved for performance ?&lt;/P&gt;

&lt;P&gt;Query - &lt;BR /&gt;
| savedsearch AR_BaseQuery filter=*&lt;BR /&gt;
| eventstats count as tc&lt;BR /&gt;
| stats distinct_count(URI) as #APIs, first(tc) as tc by APIFamily&lt;BR /&gt;
| lookup TeamsLookupDef APIFamily as APIFamily output Domain&lt;BR /&gt;
| stats sum(#APIs) as Apis,  first(tc) as tc by Domain&lt;/P&gt;

&lt;P&gt;TeamsLookupDef  definition file for mapping betwene apifamily and domain fields.&lt;BR /&gt;
-APIFamily-             -Domain-&lt;BR /&gt;
/url1/v1                    Unknown&lt;BR /&gt;
/url2/v1                    dp-iis1&lt;BR /&gt;
/url3/v1                    dp-iis2&lt;BR /&gt;
...                                             ...&lt;BR /&gt;
200 mapping entries for definition&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-slowing-performance-ways-to-optimize/m-p/487749#M136262</guid>
      <dc:creator>msrama5</dc:creator>
      <dc:date>2020-09-30T03:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup slowing performance ways to optimize</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-slowing-performance-ways-to-optimize/m-p/487750#M136263</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| savedsearch AR_BaseQuery filter=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is the cause of poor performance.&lt;/P&gt;

&lt;P&gt;please provide sample logs and explain fields.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 01:33:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-slowing-performance-ways-to-optimize/m-p/487750#M136263</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-16T01:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup slowing performance ways to optimize</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-slowing-performance-ways-to-optimize/m-p/487751#M136264</link>
      <description>&lt;P&gt;Following is description of saved search AR_BaseQuery-&lt;BR /&gt;
search environment=test&lt;BR /&gt;
index=iis* NOT "GET / - 80" NOT "GET / - 443" NOT "/ping*" NOT "swagger" $filter$&lt;BR /&gt;
|eval URI=lower(cs_uri_stem)&lt;BR /&gt;
|rex field=URI "(?APIFamily[/\w.]+/v\d+)/"&lt;/P&gt;

&lt;P&gt;cs uri stem is just different uri end points&lt;BR /&gt;
api family is categorizing uri's by api family&lt;BR /&gt;
domain is categorizing api family by domain mapping&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:44:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-slowing-performance-ways-to-optimize/m-p/487751#M136264</guid>
      <dc:creator>msrama5</dc:creator>
      <dc:date>2020-09-30T03:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup slowing performance ways to optimize</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-slowing-performance-ways-to-optimize/m-p/487752#M136265</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=iis* cs_uri_stem=* [|inputlookup TeamsLookupDef 
|fields  APIFamily|return 200 $APIFamily]
|eval URI=lower(cs_uri_stem)
|rex field=URI "(?&amp;lt;APIFamily&amp;gt;[/\w.]+/v\d+)/"
| eventstats count as tc
| stats distinct_count(URI) as #APIs, first(tc) as tc by APIFamily
| lookup TeamsLookupDef APIFamily as APIFamily output Domain
| stats sum(#APIs) as Apis, first(tc) as tc by Domain
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;maybe a little faster.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 02:03:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-slowing-performance-ways-to-optimize/m-p/487752#M136265</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-16T02:03:10Z</dc:date>
    </item>
  </channel>
</rss>

