<?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: Is there SPL's worst practice? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491266#M140198</link>
    <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Search/Abouteventcorrelation"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Search/Abouteventcorrelation&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The material is there, but it's not in a place for a novice to look.&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2020 23:31:27 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-05-07T23:31:27Z</dc:date>
    <item>
      <title>Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491261#M140193</link>
      <description>&lt;P&gt;I've seen a lot of &lt;CODE&gt;join&lt;/CODE&gt;, &lt;CODE&gt;transaction&lt;/CODE&gt; and &lt;CODE&gt;append&lt;/CODE&gt; SPLs.&lt;BR /&gt;Using &lt;CODE&gt;timechart&lt;/CODE&gt; to show percentage of each time, it's hard. but everybody wants to do it.&lt;/P&gt;
&lt;P&gt;I think you didn't have to use that SPL.&lt;/P&gt;
&lt;P&gt;There is a best practice, but I don't know &lt;EM&gt;worst practice&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Is there SPL's worst practice? or Can you tell me what's wrong with this way of using it?&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 01:08:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491261#M140193</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-06-06T01:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491262#M140194</link>
      <description>&lt;P&gt;Hi @to4kawa,&lt;BR /&gt;
i didn't find a worst practice guide and I'm agree that it could be useful, especially for the new entries: e.g. all the people that worked with SQL and approach Splunk, start using join command in searches!&lt;BR /&gt;
Anyway a worst practices is surely the opposite of a best practice, and I didn't find a structured guide neither to this, only some hints in a course that I followed at the beginning.&lt;BR /&gt;
And in addition, i don't think that someone in Splunk can say that there's a worst practice: it isn't a good marketing approach!&lt;/P&gt;

&lt;P&gt;In my experience, I try to avoid some features for performace reasons or symply to have a more readable code, these are the main worst practices I avoid:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;I try to avoid &lt;STRONG&gt;transaction&lt;/STRONG&gt; and &lt;STRONG&gt;join&lt;/STRONG&gt; commands every time I can and this is the main worst prectice!&lt;/LI&gt;
&lt;LI&gt;I usually use &lt;STRONG&gt;append&lt;/STRONG&gt; (with attention to the number of subsearch results) without problems.&lt;/LI&gt;
&lt;LI&gt;I don't like &lt;STRONG&gt;automatic lookups&lt;/STRONG&gt; so as not to lose the thread of logic of a search.&lt;/LI&gt;
&lt;LI&gt;I don't like to use &lt;STRONG&gt;DB-Connect&lt;/STRONG&gt; (I use it only if I'm forced!) for security reasons and I prefer to use an export of data on a file.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Then there's something else, but less important:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;i don't like to use &lt;STRONG&gt;Field Extractor&lt;/STRONG&gt;, I prefer to create fields using regexes.&lt;/LI&gt;
&lt;LI&gt;i don't like to have different &lt;STRONG&gt;different eval&lt;/STRONG&gt; for each field transformation, I prefer to have one eval.&lt;/LI&gt;
&lt;LI&gt;i don't like to leave the &lt;STRONG&gt;token's name in the time picker&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;etc...&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 07:19:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491262#M140194</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-05-05T07:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491263#M140195</link>
      <description>&lt;P&gt;Thank you @gcusello&lt;/P&gt;

&lt;P&gt;This may be it, but I'll wait a little longer.&lt;/P&gt;

&lt;P&gt;help  @woodcock &lt;BR /&gt;
I became who I am because you told me『 not to use the `transaction'.』&lt;/P&gt;

&lt;P&gt;and @kamlesh_vaghela&lt;/P&gt;

&lt;P&gt;I remember the first time I tried your query, I thought, "Wow".&lt;BR /&gt;
Do you have an opinion?&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 07:55:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491263#M140195</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-05T07:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491264#M140196</link>
      <description>&lt;P&gt;hello @gcusello&lt;/P&gt;

&lt;P&gt;I don't like automatic lookups so as not to lose the thread of logic of a search.&lt;/P&gt;

&lt;P&gt;About this one worst practice, I understand that this facility has a performance impact but this is always being catered on the intro courses.  What alternatives will you recommend should we avoid automatic lookups aside from using &lt;CODE&gt;| inputlookup&lt;/CODE&gt; ?&lt;/P&gt;

&lt;P&gt;Sorry for this question under a comment.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 22:27:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491264#M140196</guid>
      <dc:creator>lloydknight</dc:creator>
      <dc:date>2020-05-05T22:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491265#M140197</link>
      <description>&lt;P&gt;Hi @lloydknight,&lt;BR /&gt;
I don't use automatic lookups, I prefer to use in searches the lookup command.&lt;/P&gt;

&lt;P&gt;my hint is only related to automatic lookups not to lookups.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 06:15:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491265#M140197</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-05-06T06:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491266#M140198</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Search/Abouteventcorrelation"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Search/Abouteventcorrelation&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The material is there, but it's not in a place for a novice to look.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 23:31:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491266#M140198</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-07T23:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491267#M140199</link>
      <description>&lt;P&gt;&lt;A href="https://conf.splunk.com/watch/conf-online.html?search=worst#"&gt;https://conf.splunk.com/watch/conf-online.html?search=worst#&lt;/A&gt; has a list of things... but not really focussed on SPL.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://conf.splunk.com/watch/conf-online.html?search=fn1003#"&gt;https://conf.splunk.com/watch/conf-online.html?search=fn1003#&lt;/A&gt; has filtering bad practices and how to avoid them.&lt;BR /&gt;
&lt;A href="https://conf.splunk.com/session/2015/conf2015_MMueller_Consist_Deploying_OptimizingSplunkKnowledge.pdf"&gt;https://conf.splunk.com/session/2015/conf2015_MMueller_Consist_Deploying_OptimizingSplunkKnowledge.pdf&lt;/A&gt; has knowledge objects / CIM normalization bad practices and how to avoid them. [side note, recent versions aren't as bad as it used to be]&lt;/P&gt;

&lt;P&gt;On the topic of event correlation there's also this: &lt;A href="https://answers.splunk.com/answers/129424/how-to-compare-fields-over-multiple-sourcetypes-without-join-append-or-use-of-subsearches.html"&gt;https://answers.splunk.com/answers/129424/how-to-compare-fields-over-multiple-sourcetypes-without-join-append-or-use-of-subsearches.html&lt;/A&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Can you tell me what's wrong with this way of using it?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Wrong with what way in particular?&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 08:06:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491267#M140199</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2020-05-08T08:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491268#M140200</link>
      <description>&lt;P&gt;I'd say using automatic lookups is good practice.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;avoids duplication of SPL when the lookup is used in multiple searches&lt;/LI&gt;
&lt;LI&gt;reduces the knowledge a searcher needs to have, they can just look at the events and see the output fields instead of having to know about the lookup file&lt;/LI&gt;
&lt;LI&gt;usually no negative performance impact&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 08 May 2020 08:10:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491268#M140200</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2020-05-08T08:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491269#M140201</link>
      <description>&lt;P&gt;Thanks @martin_mueller&lt;BR /&gt;
That's using &lt;CODE&gt;timechart&lt;/CODE&gt; in comparison to a week ago, I guess.&lt;/P&gt;

&lt;P&gt;The reason I asked this question this time is,&lt;/P&gt;

&lt;P&gt;what do I do with &lt;CODE&gt;transaction&lt;/CODE&gt; | &lt;CODE&gt;join&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;I say &lt;CODE&gt;No, you don't have to use that.&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;I think it's because a lot of beginners ask questions, but I wonder if we can do something about it.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 08:47:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491269#M140201</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-08T08:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491270#M140202</link>
      <description>&lt;P&gt;Hello my friend,&lt;/P&gt;

&lt;P&gt;Your post have been the most insightful. I'll like to add one thing. I recommend Bloodhound app for Splunk to my customers, which specifically designed for identifying user's bad practices , in order to enhance the performances in their environment. A great app to look at what you're looking.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/3541/"&gt;https://splunkbase.splunk.com/app/3541/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 11:03:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491270#M140202</guid>
      <dc:creator>shivanshu1593</dc:creator>
      <dc:date>2020-05-08T11:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491271#M140203</link>
      <description>&lt;P&gt;I wouldn't say "don't use transaction", I'd say "use transaction for appropriate cases with smart settings". The docs flowchart you linked to covers some of this.&lt;BR /&gt;
In addition to the flowchart, if you have a very high cardinality ID with very short durations a &lt;CODE&gt;transaction ID startswith=something&lt;/CODE&gt; will be faster than a &lt;CODE&gt;stats by ID&lt;/CODE&gt; because &lt;CODE&gt;transaction&lt;/CODE&gt; can discard completed IDs from memory while &lt;CODE&gt;stats&lt;/CODE&gt; has to keep all of them in memory indefinitely.&lt;/P&gt;

&lt;P&gt;I also wouldn't say "don't use join", I'd say "use join for appropriate cases". The answers link I posted covers a lot of this.&lt;BR /&gt;
There are cases where &lt;CODE&gt;join&lt;/CODE&gt; is the right answer, for example you have a complex search that gets some additional fields from a fast tstats. Trying to merge the two into one OR-stats-search often is counterproductive, and a pattern of &lt;CODE&gt;search | complex stuff | stats | join [tstats]&lt;/CODE&gt; can be the best solution.&lt;/P&gt;

&lt;P&gt;In short, it depends.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 11:18:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491271#M140203</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2020-05-08T11:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491272#M140204</link>
      <description>&lt;P&gt;Along these lines &lt;A href="https://splunkbase.splunk.com/app/2632/"&gt;Search Activity&lt;/A&gt; , also my own app &lt;A href="https://splunkbase.splunk.com/app/3796/"&gt;Alerts for Splunk Admins&lt;/A&gt; has a few alerts/reports for detecting worst practices such as index=* or similar...&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 11:51:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491272#M140204</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-05-08T11:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491273#M140205</link>
      <description>&lt;P&gt;I didn't know that.&lt;BR /&gt;
Thank you. @shivanshu1593&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 12:52:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491273#M140205</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-08T12:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491274#M140206</link>
      <description>&lt;P&gt;I don't want to ban them all myself.&lt;BR /&gt;
But there are too many wrong uses of it.&lt;/P&gt;

&lt;P&gt;For example,&lt;BR /&gt;
First: &lt;CODE&gt;transaction&lt;/CODE&gt; the mail log.&lt;BR /&gt;
we can't get results no matter how long it takes.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 12:58:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491274#M140206</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-08T12:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491275#M140207</link>
      <description>&lt;P&gt;No worries, my friend.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 13:06:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491275#M140207</guid>
      <dc:creator>shivanshu1593</dc:creator>
      <dc:date>2020-05-08T13:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491276#M140208</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Search/Quicktipsforoptimization"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Search/Quicktipsforoptimization&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It's the opposite of this.&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2020 02:02:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491276#M140208</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-09T02:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491277#M140209</link>
      <description>&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/822035/how-to-increase-chart-column-number-more-than-3000.html"&gt;https://answers.splunk.com/answers/822035/how-to-increase-chart-column-number-more-than-3000.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It's not right to use it for something like this in the first place.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 00:32:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491277#M140209</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-12T00:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491278#M140210</link>
      <description>&lt;P&gt;@to4kawa use case is a use case. We would not be able to recommend more than 1000 data points in a chart as we would not be able to interpret. But there could be ML/IoT/Research based use cases where 4K*3K correlation is required to be visualized. So this is not a question of worst practice, it is a question on use case!&lt;/P&gt;

&lt;P&gt;This is the answer where I have made that recommendation: &lt;A href="https://answers.splunk.com/answers/821286/horizontal-scroll-bar-in-column-chart.html#answer-820293"&gt;https://answers.splunk.com/answers/821286/horizontal-scroll-bar-in-column-chart.html#answer-820293&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 04:44:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491278#M140210</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-05-12T04:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491279#M140211</link>
      <description>&lt;P&gt;I see. That's certainly true.&lt;/P&gt;

&lt;P&gt;It is decided by &lt;CODE&gt;join&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;p.s.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=3000
| streamstats count
| transpose 0 header_field=count
| appendpipe [|makeresults count=5000
| streamstats count]
| filldown
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there a computer that can run this? &lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 05:01:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491279#M140211</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-12T05:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is there SPL's worst practice?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491280#M140212</link>
      <description>&lt;P&gt;That's why best practices. &lt;/P&gt;

&lt;P&gt;A chain of only Map-Reduce commands can leverage processing of reduced data set on each Search Peer. Divide and Conquer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Search/Writebettersearches#Parallel_processing_example"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Search/Writebettersearches#Parallel_processing_example&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;On my personal laptop I ran following SPL to generate 15M events: &lt;CODE&gt;This search has completed and has returned 15,000,000 results by scanning 0 events in 95.403 seconds&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=5000
| streamstats count as sno
| eval label="event_".sno, event=mvrange(1,3001,1)
| stats count by event label
| eval label=label."_".event,data=random()
| fields label data
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 May 2020 06:49:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-SPL-s-worst-practice/m-p/491280#M140212</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-05-12T06:49:28Z</dc:date>
    </item>
  </channel>
</rss>

