<?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: Indexed vs search fields,Indexed fields vs search time fields in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Indexed-vs-search-fields-Indexed-fields-vs-search-time-fields/m-p/499924#M61562</link>
    <description>&lt;P&gt;That's exactly what I wrote.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2020 18:09:52 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2020-03-26T18:09:52Z</dc:date>
    <item>
      <title>Indexed vs search fields,Indexed fields vs search time fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Indexed-vs-search-fields-Indexed-fields-vs-search-time-fields/m-p/499917#M61555</link>
      <description>&lt;P&gt;Does KO explorer show which fields are indexed and which not? This has always been a challenge and anything which does this would be helpful.&lt;BR /&gt;
I couldn't find a direct answer in the doc or screenshots, but may have just missed it.&lt;/P&gt;

&lt;P&gt;This is handy to know if you want to manipulate lispy etc. and do other optimisations on searches.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 03:33:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Indexed-vs-search-fields-Indexed-fields-vs-search-time-fields/m-p/499917#M61555</guid>
      <dc:creator>charlesmeo</dc:creator>
      <dc:date>2020-03-25T03:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Indexed vs search fields,Indexed fields vs search time fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Indexed-vs-search-fields-Indexed-fields-vs-search-time-fields/m-p/499918#M61556</link>
      <description>&lt;P&gt;No, the KO Explorer doesn't distinguish between indexed fields and search time fields. It translates your search into normalizedSearch, indexed fields don't play a role there - that's lispy (see &lt;A href="https://conf.splunk.com/watch/conf-online.html?search=fn1003" target="_blank"&gt;https://conf.splunk.com/watch/conf-online.html?search=fn1003&lt;/A&gt; for more).&lt;/P&gt;

&lt;P&gt;From a search perspective it's not easy to answer "is this field indexed or not?", at least not generically. In principle the answer could be different from one event to the next. Things you can do:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;check fields.conf for fields that have explicitly been marked as indexed&lt;/LI&gt;
&lt;LI&gt;check props.conf for INDEXED_EXTRACTIONS&lt;/LI&gt;
&lt;LI&gt;check transforms.conf for stanzas that generate indexed fields&lt;/LI&gt;
&lt;LI&gt;use tstats or the :: syntax to check specific fields in specific events, e.g. &lt;CODE&gt;| tstats count where index=foo sourcetype=bar by maybe_indexed_field&lt;/CODE&gt; will only return results if maybe_indexed_field is indexed. Similarly, if &lt;CODE&gt;index=foo sourcetype=bar field=value&lt;/CODE&gt; yields results but &lt;CODE&gt;index=foo sourcetype=bar field::value&lt;/CODE&gt; does not, &lt;CODE&gt;field&lt;/CODE&gt; is likely not indexed [caveat: some weirdnesses exist with :: around complex values such as spaces, quotes, etc.]&lt;/LI&gt;
&lt;LI&gt;use the walklex command (7.3+, CLI only below that) to list all index-time fields... probably the best approach for discovery: &lt;CODE&gt;| walklex index=_internal type=field&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Finally, you can promote &lt;A href="https://ideas.splunk.com/ideas/E-I-70" target="_blank"&gt;https://ideas.splunk.com/ideas/E-I-70&lt;/A&gt; ("Add an Explain/Debug Mode to display how fields were created") to maybe get an improvement added to core in some future release.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:46:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Indexed-vs-search-fields-Indexed-fields-vs-search-time-fields/m-p/499918#M61556</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2020-09-30T04:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Indexed vs search fields,Indexed fields vs search time fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Indexed-vs-search-fields-Indexed-fields-vs-search-time-fields/m-p/499919#M61557</link>
      <description>&lt;P&gt;I have voted for the Idea as suggested. &lt;/P&gt;

&lt;P&gt;But there's still something here I don't get. I thought indexed fields DID play a role in the lispy. If you happen to know you are dealing with one, you can use the &lt;STRONG&gt;::&lt;/STRONG&gt; operator instead of &lt;STRONG&gt;=&lt;/STRONG&gt;, and the lispy is different.&lt;BR /&gt;
But since there is no easy way to figure out whether a field is indexed or not (for custom fields) you don't have this option.&lt;/P&gt;

&lt;P&gt;Perhaps a future version of KO Explorer could at least inspect fields.conf and let the user know if a field might be indexed? Or is this not worth doing?&lt;BR /&gt;
I am finding lispy quite confusing. I am a splunker of long standing but haven't looked under this particular rock before now.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 23:22:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Indexed-vs-search-fields-Indexed-fields-vs-search-time-fields/m-p/499919#M61557</guid>
      <dc:creator>charlesmeo</dc:creator>
      <dc:date>2020-03-25T23:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Indexed vs search fields,Indexed fields vs search time fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Indexed-vs-search-fields-Indexed-fields-vs-search-time-fields/m-p/499920#M61558</link>
      <description>&lt;P&gt;Indexed fields can play a role in lispy, but the KO Explorer doesn't deal with lispy. Its purpose is knowledge objects, ie search time things. Tags, Eventtypes, calculated fields, field aliases, stuff like that... things that cause normalizedSearch to explode in bad cases. Indexed fields don't matter there.&lt;/P&gt;

&lt;P&gt;A key word in that first sentence is &lt;EM&gt;can&lt;/EM&gt;. Many indexed fields will work even if lispy treats them as search time, ie if &lt;CODE&gt;field=value&lt;/CODE&gt; is translated to a lispy of &lt;CODE&gt;[ AND value ]&lt;/CODE&gt; instead of &lt;CODE&gt;[ AND field::value ]&lt;/CODE&gt; (see linked conf talk for more depth and breadth). As a result, fields.conf will only yield a small fraction of indexed fields.&lt;/P&gt;

&lt;P&gt;I've added two more things to consider to the original answer.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 23:29:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Indexed-vs-search-fields-Indexed-fields-vs-search-time-fields/m-p/499920#M61558</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2020-03-25T23:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Indexed vs search fields,Indexed fields vs search time fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Indexed-vs-search-fields-Indexed-fields-vs-search-time-fields/m-p/499921#M61559</link>
      <description>&lt;P&gt;Accepted the answer, which is of course correct but still leaves open the substance of your Idea.&lt;/P&gt;

&lt;P&gt;I had forgotten about INDEXED_EXTRACTIONS. Of course fields.conf won't give you anywhere near complete coverage. You would potentially need to go out to all the forwarders and see what they're up to as well. Alternatively, this is a good use case for splunking your git repo of splunk configurations I would think.&lt;/P&gt;

&lt;P&gt;But in general it seems, no magic bullets for this. C'est la vie..&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 23:49:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Indexed-vs-search-fields-Indexed-fields-vs-search-time-fields/m-p/499921#M61559</guid>
      <dc:creator>charlesmeo</dc:creator>
      <dc:date>2020-03-25T23:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Indexed vs search fields,Indexed fields vs search time fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Indexed-vs-search-fields-Indexed-fields-vs-search-time-fields/m-p/499922#M61560</link>
      <description>&lt;P&gt;TBH, walklex is close to a magic bullet &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 16:11:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Indexed-vs-search-fields-Indexed-fields-vs-search-time-fields/m-p/499922#M61560</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2020-03-26T16:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Indexed vs search fields,Indexed fields vs search time fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Indexed-vs-search-fields-Indexed-fields-vs-search-time-fields/m-p/499923#M61561</link>
      <description>&lt;P&gt;Au contraire mon frère: as of v7.3.0 &lt;CODE&gt;walklex&lt;/CODE&gt; is also SPL!&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Walklex"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Walklex&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 17:01:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Indexed-vs-search-fields-Indexed-fields-vs-search-time-fields/m-p/499923#M61561</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-26T17:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Indexed vs search fields,Indexed fields vs search time fields</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Indexed-vs-search-fields-Indexed-fields-vs-search-time-fields/m-p/499924#M61562</link>
      <description>&lt;P&gt;That's exactly what I wrote.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 18:09:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Indexed-vs-search-fields-Indexed-fields-vs-search-time-fields/m-p/499924#M61562</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2020-03-26T18:09:52Z</dc:date>
    </item>
  </channel>
</rss>

