<?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: Why indexer really needs knowledge objects from SH ? in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Why-indexer-really-needs-knowledge-objects-from-SH/m-p/682528#M9949</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So just to confirm:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"To know what results to return to the SH, the peers need to know the values of the tags, eventtypes, and macros used in the query. "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example:&amp;nbsp; "index=_audit eventtype=splunk_access". Since event type extraction is search-time (not index-time) indexer does not have definition for that event type. Because of this SH need to push to indexer definition for that event type:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[splunk_access]&lt;BR /&gt;search = index=_audit "action=login attempt" NOT "action=search"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Once that is done, indexer will actually expand original SQL query to "index=_audit index=_audit action=login attempt NOT action=search"&amp;nbsp;and will be able to execute the query correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The same would happen with most of the other Knowledge Objects. Including all the search time field extractions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So the summary would be: Search Head needs to push Knowledge Objects to indexer, because for indexer those are "unknown variables/names". Indexer does not have those definitions and does not know how to expand/execute SQL queries using those KOs. This is applicable only to search-time operations/objects defined on SH (index-time related configurations like TRANSFORMS should be already on the indexer).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you please confirm&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;all of this is correct ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;</description>
    <pubDate>Sun, 31 Mar 2024 18:20:02 GMT</pubDate>
    <dc:creator>MichalG1</dc:creator>
    <dc:date>2024-03-31T18:20:02Z</dc:date>
    <item>
      <title>Why indexer really needs knowledge objects from SH ?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Why-indexer-really-needs-knowledge-objects-from-SH/m-p/682409#M9946</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;As per&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.2.0/DistSearch/Limittheknowledgebundlesize" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.2.0/DistSearch/Knowledgebundlereplication&lt;/A&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;The search head needs to distribute this material to its search peers so that they can properly execute queries on its behalf"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"The&amp;nbsp;&lt;STRONG&gt;&lt;A title="Splexicon:Knowledgebundle" href="https://docs.splunk.com/Splexicon:Knowledgebundle" target="_blank" rel="noopener noreferrer"&gt;knowledge bundle&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;consists of a set of files that the search peers ordinarily need in order to perform their searches"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you please give me one example why we really need it ? I had the impression that to return search results to SH indexer just need SPL query and it's locally indexed data + metadata.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;One of my guesses for a good example were: lookup files, but i guess indexer should not need any lookup files since that job is done be search head, not indexer. The same with other KO objects like tags, event types, macros etc...-&amp;gt; those objects should not be needed on the indexer to perform search, those are used by search head to enrich data returned by the indexer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Another theory: we distribute those files not to help with searching, but with parsing and indexing (for example using props.conf and transforms.conf). Maybe that is the case ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Extra question: the conf files delivered in the bundle: if i do understand correctly those settings are in memory only, not modifying any existing conf files on the indexer ? But at the same modifying memory settings for (for example) index.conf ? If so - i should be able to run "splunk btool indexes list" to see something different&amp;nbsp; then "splunk show" -&amp;gt; to compare the diff between current configuration files versus those sent from bundle and applied in memory ? What are the best practices here ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What am i missing ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Michal&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 15:55:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Why-indexer-really-needs-knowledge-objects-from-SH/m-p/682409#M9946</guid>
      <dc:creator>MichalG1</dc:creator>
      <dc:date>2024-03-29T15:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why indexer really needs knowledge objects from SH ?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Why-indexer-really-needs-knowledge-objects-from-SH/m-p/682521#M9948</link>
      <description>&lt;P&gt;Most of the work of a query is done by the indexers so they need to know as much about the search as possible.&amp;nbsp; That is what the knowledge bundle is for.&amp;nbsp; To know what results to return to the SH, the peers need to know the values of the tags, eventtypes, and macros used in the query.&amp;nbsp; The also need to know which fields to extract and how to extract them.&amp;nbsp; It's all part of the map/reduce process where the search activity is divided among many peers to make the query faster.&lt;/P&gt;&lt;P&gt;Information sent in the bundle does not modify the settings in the indexer.&amp;nbsp; The bundle supplements the information the peer read from its .conf files.&amp;nbsp; That supplementary data is not visible to either &lt;FONT face="courier new,courier"&gt;btool&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;splunk show&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2024 14:30:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Why-indexer-really-needs-knowledge-objects-from-SH/m-p/682521#M9948</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-03-31T14:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why indexer really needs knowledge objects from SH ?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Why-indexer-really-needs-knowledge-objects-from-SH/m-p/682528#M9949</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So just to confirm:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"To know what results to return to the SH, the peers need to know the values of the tags, eventtypes, and macros used in the query. "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example:&amp;nbsp; "index=_audit eventtype=splunk_access". Since event type extraction is search-time (not index-time) indexer does not have definition for that event type. Because of this SH need to push to indexer definition for that event type:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[splunk_access]&lt;BR /&gt;search = index=_audit "action=login attempt" NOT "action=search"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Once that is done, indexer will actually expand original SQL query to "index=_audit index=_audit action=login attempt NOT action=search"&amp;nbsp;and will be able to execute the query correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The same would happen with most of the other Knowledge Objects. Including all the search time field extractions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So the summary would be: Search Head needs to push Knowledge Objects to indexer, because for indexer those are "unknown variables/names". Indexer does not have those definitions and does not know how to expand/execute SQL queries using those KOs. This is applicable only to search-time operations/objects defined on SH (index-time related configurations like TRANSFORMS should be already on the indexer).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you please confirm&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;all of this is correct ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2024 18:20:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Why-indexer-really-needs-knowledge-objects-from-SH/m-p/682528#M9949</guid>
      <dc:creator>MichalG1</dc:creator>
      <dc:date>2024-03-31T18:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why indexer really needs knowledge objects from SH ?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Why-indexer-really-needs-knowledge-objects-from-SH/m-p/682532#M9950</link>
      <description>&lt;P&gt;Yes, you understand correctly.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2024 20:37:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Why-indexer-really-needs-knowledge-objects-from-SH/m-p/682532#M9950</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-03-31T20:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why indexer really needs knowledge objects from SH ?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Why-indexer-really-needs-knowledge-objects-from-SH/m-p/682535#M9951</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That behavior of SH seems to be unnecessarily complicated.&lt;/P&gt;&lt;P&gt;Instead of sending all of those KO bundles to indexers, could not SH first expand SPL query (to resolve all of the names/variables which are search-time) and then sent it to indexers ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michal&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2024 20:50:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Why-indexer-really-needs-knowledge-objects-from-SH/m-p/682535#M9951</guid>
      <dc:creator>MichalG1</dc:creator>
      <dc:date>2024-03-31T20:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why indexer really needs knowledge objects from SH ?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Why-indexer-really-needs-knowledge-objects-from-SH/m-p/682536#M9952</link>
      <description>&lt;P&gt;It may be complicated, but I think it's necessary.&amp;nbsp; Perhaps it could be better, though.&lt;/P&gt;&lt;P&gt;Even if the SH did expand the query (and maybe it does) before sending to the peers, that's just a part of what the bundle is used for.&amp;nbsp; Search-time field extractions and lookups done by the indexers make the query more efficient.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2024 21:01:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Why-indexer-really-needs-knowledge-objects-from-SH/m-p/682536#M9952</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-03-31T21:01:40Z</dc:date>
    </item>
  </channel>
</rss>

