<?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 Why is it slower to write key=value when searching? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-it-slower-to-write-key-value-when-searching/m-p/757640#M243201</link>
    <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;A)&amp;nbsp;index=main 192.168.172.10&lt;/P&gt;&lt;P&gt;B) index=main src_ip=192.168.172.10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought B) was faster.&lt;/P&gt;&lt;P&gt;Because the index is the same&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on lispy&lt;/P&gt;&lt;P&gt;A)The following is the case for.&lt;/P&gt;&lt;PRE&gt;[ AND 10 168 172 192 index::main ]&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;In this case, I need to find all the data with 192, 168, 172,10 in it, I thought this cost was higher.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;B) in the case of&lt;/P&gt;&lt;PRE&gt;[ AND index::main [ OR src_ip::192.168.172.10 [ AND sourcetype::fgt_traffic [ OR srcip::192.168.172.10 [ AND 10 168 172 192 ] ] ] [ AND 10 168 172 192 ] [ AND sourcetype::xmlwineventlog:microsoft-windows-sysmon/operational [ OR sourceip::192.168.172.10 [ AND 10 168 172 192 ] ] ] ] ]&lt;/PRE&gt;&lt;P&gt;As a result, I think the "field extraction" function automatically recognizes the src_ip field and maps the corresponding sourcetype value, and generates lispy.&lt;/P&gt;&lt;P&gt;Q1) So shouldn't B) be faster because there is a sourcetype specified that needs to be explored that much?&lt;SPAN&gt;The actual search time was much faster in A).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Q2)&amp;nbsp;&lt;SPAN&gt;And I'm curious about the process of lispy being created.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sat, 24 Jan 2026 11:46:42 GMT</pubDate>
    <dc:creator>munang</dc:creator>
    <dc:date>2026-01-24T11:46:42Z</dc:date>
    <item>
      <title>Why is it slower to write key=value when searching?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-it-slower-to-write-key-value-when-searching/m-p/757640#M243201</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;A)&amp;nbsp;index=main 192.168.172.10&lt;/P&gt;&lt;P&gt;B) index=main src_ip=192.168.172.10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought B) was faster.&lt;/P&gt;&lt;P&gt;Because the index is the same&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on lispy&lt;/P&gt;&lt;P&gt;A)The following is the case for.&lt;/P&gt;&lt;PRE&gt;[ AND 10 168 172 192 index::main ]&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;In this case, I need to find all the data with 192, 168, 172,10 in it, I thought this cost was higher.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;B) in the case of&lt;/P&gt;&lt;PRE&gt;[ AND index::main [ OR src_ip::192.168.172.10 [ AND sourcetype::fgt_traffic [ OR srcip::192.168.172.10 [ AND 10 168 172 192 ] ] ] [ AND 10 168 172 192 ] [ AND sourcetype::xmlwineventlog:microsoft-windows-sysmon/operational [ OR sourceip::192.168.172.10 [ AND 10 168 172 192 ] ] ] ] ]&lt;/PRE&gt;&lt;P&gt;As a result, I think the "field extraction" function automatically recognizes the src_ip field and maps the corresponding sourcetype value, and generates lispy.&lt;/P&gt;&lt;P&gt;Q1) So shouldn't B) be faster because there is a sourcetype specified that needs to be explored that much?&lt;SPAN&gt;The actual search time was much faster in A).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Q2)&amp;nbsp;&lt;SPAN&gt;And I'm curious about the process of lispy being created.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 24 Jan 2026 11:46:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-it-slower-to-write-key-value-when-searching/m-p/757640#M243201</guid>
      <dc:creator>munang</dc:creator>
      <dc:date>2026-01-24T11:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why is it slower to write key=value when searching?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-it-slower-to-write-key-value-when-searching/m-p/757645#M243202</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/248607"&gt;@munang&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Splunk is aware of fields through fields.conf, props.conf, and other settings.&lt;/P&gt;&lt;P&gt;Search A can be optimized with the TERM() function:&lt;/P&gt;&lt;P&gt;index=main TERM(192.168.172.10)&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[ AND 192.168.172.10 index::main ]&lt;/LI-CODE&gt;&lt;P&gt;All events with 192.168.1.172.10 as an indexed term will be returned.&lt;/P&gt;&lt;P&gt;If src_ip is an indexed field, search B can be optimized using the :: operator or by modifying fields.conf (see &lt;A href="https://help.splunk.com/en/splunk-enterprise/administer/admin-manual/10.2/configuration-file-reference/10.2.0-configuration-file-reference/fields.conf" target="_self"&gt;fields.conf.spec&lt;/A&gt; for more information):&lt;/P&gt;&lt;P&gt;index=main src_ip::192.168.172.10&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[ AND index::main src_ip::192.168.172.10 ]&lt;/LI-CODE&gt;&lt;P&gt;If src_ip is not an indexed field but 192.168.172.10 is an indexed term, you can optimize by combining the = operator and the TERM() function:&lt;/P&gt;&lt;P&gt;index=main src_ip=192.168.172.10 TERM(192.168.172.10)&lt;/P&gt;&lt;P&gt;The lispy will vary with your configured field extractions, field aliases, etc., but it will begin with the IP address as an indexed term:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[ AND 192.168.172.10 index::main [ ... ] ]&lt;/LI-CODE&gt;&lt;P&gt;If the IP address is an indexed term but src_ip is not equal to the IP address, the event will be scanned but not returned.&lt;/P&gt;&lt;P&gt;Search terms are segmented similarly to indexed terms. See &lt;A href="https://help.splunk.com/en/splunk-enterprise/administer/admin-manual/10.2/configuration-file-reference/10.2.0-configuration-file-reference/segmenters.conf" target="_self"&gt;segmenters.conf.spec&lt;/A&gt;, &lt;A href="https://help.splunk.com/en/splunk-enterprise/search/search-manual/10.2/search-primer/event-segmentation-and-searching" target="_blank"&gt;https://help.splunk.com/en/splunk-enterprise/search/search-manual/10.2/search-primer/event-segmentation-and-searching&lt;/A&gt;, and &lt;A href="https://help.splunk.com/en/splunk-enterprise/administer/manage-indexers-and-indexer-clusters/10.2/indexing-overview/index-time-versus-search-time" target="_blank"&gt;https://help.splunk.com/en/splunk-enterprise/administer/manage-indexers-and-indexer-clusters/10.2/indexing-overview/index-time-versus-search-time&lt;/A&gt; for more information.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jan 2026 19:31:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-it-slower-to-write-key-value-when-searching/m-p/757645#M243202</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2026-01-24T19:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why is it slower to write key=value when searching?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-it-slower-to-write-key-value-when-searching/m-p/757647#M243203</link>
      <description>&lt;P&gt;Apparently src_ip is a field which is:&lt;/P&gt;&lt;P&gt;1) set as indexed field&lt;/P&gt;&lt;P&gt;2) is aliased from other fields in two sourcetypes.&lt;/P&gt;&lt;P&gt;This leads Splunk to look for the indexed fields. But since by default Splunk assumes the value of the indexed field is included in the raw message as well you're getting those ANDs of the separate tokens (that deals with the raw part) and the indexed field value (that's the :: token).&lt;/P&gt;&lt;P&gt;BTW, the fastest search in your case would be&lt;/P&gt;&lt;PRE&gt;index=main TERM(192.168.172.10)&lt;/PRE&gt;&lt;P&gt;BTW, check the specific stages' execution cost and reaults count.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jan 2026 20:44:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-it-slower-to-write-key-value-when-searching/m-p/757647#M243203</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2026-01-24T20:44:31Z</dc:date>
    </item>
  </channel>
</rss>

