<?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 speed up in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509182#M142297</link>
    <description>&lt;P&gt;Thank you all. This is a line with some sensitive data masked:&lt;/P&gt;&lt;P&gt;2020 07 14 10:40:46.866 isi3web NProxyOp x.xxx.x-x-x-x-x.x.x.x.x.x:443 6-INFO : reqF="GET xxx" reqDecF=&amp;lt;NULL&amp;gt; ipF=xxx sCF=200 bSF=568 dTF=68 reqB="GET xxx" adrB=xxx ipB=x.x.x.x sCB=200 dTB=60 dTcB=0 dTsB=1 dTr1B=58 dTr2B=1 dTFrs=0 invS=/* (CustomErrorPages-100) /* (SecurityBaseline-200) (RequestHeaderValidationLength-200) [...]&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jul 2020 06:49:27 GMT</pubDate>
    <dc:creator>paxo</dc:creator>
    <dc:date>2020-07-15T06:49:27Z</dc:date>
    <item>
      <title>Search speed up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509022#M142214</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;silly question but I'm not much practical with Splunk queries. How to speed up a search that is currently taking around half a minute for just a few hundreds of hints? This is the code:&lt;/P&gt;&lt;P&gt;index=* cs_stage=IT cs_component_id=*mynab.nab.wesit.rowini.net* message="*sCB\=200*" AND message="*sCF\=200*" AND reqF="*/rewards/c/d/*" | convert timeformat="%Y-%m-%d" ctime(_time) AS date | stats count by date&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 09:53:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509022#M142214</guid>
      <dc:creator>paxo</dc:creator>
      <dc:date>2020-07-14T09:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Search speed up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509029#M142218</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223686"&gt;@paxo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The search takes so much time, because you use a lot of wildcards.&lt;BR /&gt;Try to avoid them, especially avoid them at the beginning of a string.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/SCS/current/Search/Wildcards" target="_blank"&gt;https://docs.splunk.com/Documentation/SCS/current/Search/Wildcards&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;"The more specific your search terms are, the more efficient your search is."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 10:21:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509029#M142218</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-07-14T10:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Search speed up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509033#M142220</link>
      <description>&lt;P&gt;Try to avoid searches like foo=*bar* as those basically needs check every events in your index(es).&lt;/P&gt;&lt;P&gt;Best optimization is tight time frame then use specific indexes, hosts, source and sourcetypes. Also avoid to use verbose mode.&lt;/P&gt;&lt;P&gt;There are lot of .conf presentations how to optimize searches.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.5/Search/Quicktipsforoptimization" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.5/Search/Quicktipsforoptimization&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://conf.splunk.com/watch/conf-online.html?search=Search%20optimization%20#/" target="_blank"&gt;https://conf.splunk.com/watch/conf-online.html?search=Search%20optimization%20#/&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 10:31:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509033#M142220</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-14T10:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Search speed up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509043#M142225</link>
      <description>&lt;P&gt;Thanks for the hint. The problem is that in this case I have a field message with so many values inside and the one I'm interested are in the middle, like:&lt;/P&gt;&lt;P&gt;message="[...]sCF=200[...]sCB=200[...]"&lt;/P&gt;&lt;P&gt;How can I achieve that result without wildcards?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 11:02:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509043#M142225</guid>
      <dc:creator>paxo</dc:creator>
      <dc:date>2020-07-14T11:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Search speed up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509044#M142226</link>
      <description>&lt;P&gt;Thanks for your answer. In my case I need to check for all successful login, so the point is more about filtering the message that the time frame. I'll check you URLs anyway.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 11:05:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509044#M142226</guid>
      <dc:creator>paxo</dc:creator>
      <dc:date>2020-07-14T11:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Search speed up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509076#M142239</link>
      <description>&lt;P&gt;You could extract fields from the&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;sCF=200,&amp;nbsp; sCB=200 parts of the message.&lt;BR /&gt;&lt;BR /&gt;And/Or try to work with regular expressions - compare search speed with the wildcard option.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Rex" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Rex&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Can you maybe share one or a few events as examples? Remove or change sensitive data if there is any.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 13:43:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509076#M142239</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-07-14T13:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Search speed up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509118#M142251</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/64317"&gt;@rnowitzki&lt;/a&gt;&amp;nbsp;proposed, could you share some events to us, so we can figure out which is the best method to speed up your query?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 18:29:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509118#M142251</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-14T18:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Search speed up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509182#M142297</link>
      <description>&lt;P&gt;Thank you all. This is a line with some sensitive data masked:&lt;/P&gt;&lt;P&gt;2020 07 14 10:40:46.866 isi3web NProxyOp x.xxx.x-x-x-x-x.x.x.x.x.x:443 6-INFO : reqF="GET xxx" reqDecF=&amp;lt;NULL&amp;gt; ipF=xxx sCF=200 bSF=568 dTF=68 reqB="GET xxx" adrB=xxx ipB=x.x.x.x sCB=200 dTB=60 dTcB=0 dTsB=1 dTr1B=58 dTr2B=1 dTFrs=0 invS=/* (CustomErrorPages-100) /* (SecurityBaseline-200) (RequestHeaderValidationLength-200) [...]&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 06:49:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509182#M142297</guid>
      <dc:creator>paxo</dc:creator>
      <dc:date>2020-07-15T06:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Search speed up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509188#M142299</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223686"&gt;@paxo&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Isn't Splunk recognizing all the key/value pairs as fields already? I would assume so.&lt;/P&gt;&lt;P&gt;Can you search in verbose mode and open one of the events and make a screenshot (you could erase the sensitive date with Paint or something). And/or show the fields list on the left side.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 07:21:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509188#M142299</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-07-15T07:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search speed up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509204#M142302</link>
      <description>&lt;P&gt;Oh yes I've just noticed it does recognize the fields. Just one thing: I can't find a way to correctly remove wildcards on reqF field. I have a lot of different paths like: /x/x/x/x/y where x is constant and y is a random string with variable length, how can I remove the reqF=/x/x/x/*? Also I have another field with&amp;nbsp;two possible values like: x.x.x.x-A and&amp;nbsp;x.x.x.x-B, is there any way to insert a regex like&amp;nbsp;x.x.x.x-[A,B]?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 08:35:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509204#M142302</guid>
      <dc:creator>paxo</dc:creator>
      <dc:date>2020-07-15T08:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Search speed up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509217#M142305</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223686"&gt;@paxo&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Difficult to help without the real data. Would need to know what kind of values "x" and "y" can have.&lt;BR /&gt;&lt;BR /&gt;But here is an example that should help you setting it up. You can put it as-is in your search box.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| noop 
| makeresults 
| eval reqF="/x/x/x/x/y"

| rex field=reqF "\/x\/x\/x\/x\/(?&amp;lt;reqF_extract&amp;gt;\w)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It extracts "y" from the &lt;EM&gt;reqF&lt;/EM&gt; field as a new field called &lt;EM&gt;reqF_extract&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 09:17:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509217#M142305</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-07-15T09:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Search speed up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509290#M142316</link>
      <description>&lt;P&gt;Thanks I will go for that solution in that field. Just last question: I also have a field like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN class="t h"&gt;15&lt;/SPAN&gt;-Jul-2020&lt;/SPAN&gt; &lt;SPAN class="t"&gt;08:43:26&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN class="t"&gt;INFO&lt;/SPAN&gt;&lt;SPAN&gt; ] [&lt;/SPAN&gt;&lt;SPAN class="t"&gt;CC:9844566928342GkldsbtTOO1my/wpnDQP8g7J1266Q=&lt;/SPAN&gt;&lt;SPAN&gt;] [&lt;/SPAN&gt;&lt;SPAN class="t"&gt;RC:fasas-9a4a-39a92834-3212523112sa-00000124&lt;/SPAN&gt;&lt;SPAN&gt;] [&lt;/SPAN&gt;&lt;SPAN class="t"&gt;10.240.134.165&lt;/SPAN&gt;&lt;SPAN&gt;] [&lt;/SPAN&gt;&lt;SPAN class="t"&gt;AUDIT&lt;/SPAN&gt;&lt;SPAN&gt;] [&lt;/SPAN&gt;&lt;SPAN class="t"&gt;SHOW_PAGE&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class="t"&gt;jspName=LP1&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Login.jsp&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN class="t"&gt;Agent=&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Mozilla/5.0&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Windows&lt;/SPAN&gt; &lt;SPAN class="t"&gt;NT&lt;/SPAN&gt; &lt;SPAN class="t"&gt;10.0&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN class="t"&gt;WOW64&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN class="t"&gt;AppleWebKit/537.36&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class="t"&gt;KHTML&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class="t"&gt;like&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Gecko&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN class="t"&gt;Chrome/108.0.4103.97&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Safari/538.46&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I need to group by CC like this:&amp;nbsp;&amp;nbsp;"stats count by CC" which obviously doesn't work.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 13:01:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509290#M142316</guid>
      <dc:creator>paxo</dc:creator>
      <dc:date>2020-07-15T13:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Search speed up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509302#M142321</link>
      <description>&lt;P&gt;So you want to count the events by specific Value after "CC:"?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 13:30:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509302#M142321</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-07-15T13:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Search speed up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509305#M142322</link>
      <description>&lt;P&gt;Yes I that field is unique for user and I need to group by user. If I search "CC:something" Splunk recognizes the filed but if I try with "| stats count by CC" it doesn't work.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 13:35:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509305#M142322</guid>
      <dc:creator>paxo</dc:creator>
      <dc:date>2020-07-15T13:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Search speed up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509330#M142330</link>
      <description>&lt;P&gt;That nobody else mentioned this makes me wonder if I'm the one missing something, but do you really need to search all indexes that you have access to (index=*)?&lt;/P&gt;&lt;P&gt;Another basic one that could be easy to overlook is what is the time range you're searching? A search against All time or last 30 days, especially when searching against all indexes) will take much longer than if you really only need data from the last 24 hours.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 15:00:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509330#M142330</guid>
      <dc:creator>danielansell</dc:creator>
      <dc:date>2020-07-15T15:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Search speed up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509331#M142331</link>
      <description>&lt;P&gt;You're right but in this case the index is not even relevant, there's only one. About time range I use to select it from the UI time picker, isn't the same?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 15:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509331#M142331</guid>
      <dc:creator>paxo</dc:creator>
      <dc:date>2020-07-15T15:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Search speed up</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509336#M142335</link>
      <description>&lt;P&gt;Sounds like you're good. UI time picker should be the same as manually specifying a time in the search string.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 15:14:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-speed-up/m-p/509336#M142335</guid>
      <dc:creator>danielansell</dc:creator>
      <dc:date>2020-07-15T15:14:51Z</dc:date>
    </item>
  </channel>
</rss>

