<?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 Need some clarification on search-time _meta field extraction. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-some-clarification-on-search-time-meta-field-extraction/m-p/409332#M118087</link>
    <description>&lt;P&gt;I have got a question about using _meta fields in the  /opt/splunkforwarder/etc/system/local/inputs.conf&lt;BR /&gt;
of a Splunk Universal Forwarder (deployed on an AWS EC2 Instance)&lt;/P&gt;

&lt;P&gt;In our inputs.conf of the Splunk Universal Forwarder in developement we use one _meta field, &lt;CODE&gt;vendor&lt;/CODE&gt;, e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default] 
host = $decideOnStartup
_meta =  vendor::devops
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In our organization the Indexers and Search Heads are managed by a dedicated tooling team. I did NOT requested the tooling team to update The fields.conf on the Search Head with e.g. the following statements&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[vendor]
INDEXED=true;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I execute the following search in the Search &amp;amp; Reporting Splunk App&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os host="ip-10-106-152-169.aws.misin.zbi" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I see in Selected Fields the following fields, &lt;CODE&gt;host&lt;/CODE&gt;, &lt;CODE&gt;source&lt;/CODE&gt;, &lt;CODE&gt;sourcetype&lt;/CODE&gt; and &lt;CODE&gt;vendor&lt;/CODE&gt;.  The default fields host, source and sourcetype are index time extracted fields, but I don’t understand how the vendor field is extracted by Splunk because the fields.conf on the Search Head was not updated yet.   &lt;/P&gt;

&lt;P&gt;Can anybody explain why the &lt;CODE&gt;vendor&lt;/CODE&gt; _meta field is automatically extracted when I execute the search  &lt;EM&gt;index=os host="ip-10-106-152-169.aws.misin.zbi"&lt;/EM&gt;,  without updating the fields.conf in the Search Head.   &lt;/P&gt;

&lt;P&gt;I also noticed that the following search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os host="ip-10-106-152-169.aws.misin.zbi” vendor=devops 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;gives no result, but if I change the search to this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os host="ip-10-106-152-169.aws.misin.zbi” vendor::devops 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get the same result set as the search  &lt;EM&gt;index=os host="ip-10-106-152-169.aws.misin.zbi"&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Nov 2018 07:38:04 GMT</pubDate>
    <dc:creator>AndreAtNN</dc:creator>
    <dc:date>2018-11-22T07:38:04Z</dc:date>
    <item>
      <title>Need some clarification on search-time _meta field extraction.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-some-clarification-on-search-time-meta-field-extraction/m-p/409332#M118087</link>
      <description>&lt;P&gt;I have got a question about using _meta fields in the  /opt/splunkforwarder/etc/system/local/inputs.conf&lt;BR /&gt;
of a Splunk Universal Forwarder (deployed on an AWS EC2 Instance)&lt;/P&gt;

&lt;P&gt;In our inputs.conf of the Splunk Universal Forwarder in developement we use one _meta field, &lt;CODE&gt;vendor&lt;/CODE&gt;, e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default] 
host = $decideOnStartup
_meta =  vendor::devops
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In our organization the Indexers and Search Heads are managed by a dedicated tooling team. I did NOT requested the tooling team to update The fields.conf on the Search Head with e.g. the following statements&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[vendor]
INDEXED=true;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I execute the following search in the Search &amp;amp; Reporting Splunk App&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os host="ip-10-106-152-169.aws.misin.zbi" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I see in Selected Fields the following fields, &lt;CODE&gt;host&lt;/CODE&gt;, &lt;CODE&gt;source&lt;/CODE&gt;, &lt;CODE&gt;sourcetype&lt;/CODE&gt; and &lt;CODE&gt;vendor&lt;/CODE&gt;.  The default fields host, source and sourcetype are index time extracted fields, but I don’t understand how the vendor field is extracted by Splunk because the fields.conf on the Search Head was not updated yet.   &lt;/P&gt;

&lt;P&gt;Can anybody explain why the &lt;CODE&gt;vendor&lt;/CODE&gt; _meta field is automatically extracted when I execute the search  &lt;EM&gt;index=os host="ip-10-106-152-169.aws.misin.zbi"&lt;/EM&gt;,  without updating the fields.conf in the Search Head.   &lt;/P&gt;

&lt;P&gt;I also noticed that the following search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os host="ip-10-106-152-169.aws.misin.zbi” vendor=devops 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;gives no result, but if I change the search to this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os host="ip-10-106-152-169.aws.misin.zbi” vendor::devops 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get the same result set as the search  &lt;EM&gt;index=os host="ip-10-106-152-169.aws.misin.zbi"&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 07:38:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-some-clarification-on-search-time-meta-field-extraction/m-p/409332#M118087</guid>
      <dc:creator>AndreAtNN</dc:creator>
      <dc:date>2018-11-22T07:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need some clarification on search-time _meta field extraction.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-some-clarification-on-search-time-meta-field-extraction/m-p/409333#M118088</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I think you're confusing things here. What you did by adding &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_meta = a::b
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;is an override of the fields.conf setting. This tags all your events and make them searchable by defining "a::b" in your search.&lt;BR /&gt;
Your search with vendor=devops however will only return results once you have set the "INDEXED = true" setting on your Search Head.&lt;/P&gt;

&lt;P&gt;Ah, I knew it was here: &lt;A href="https://answers.splunk.com/answers/389567/why-is-a-search-for-fields-added-with-meta-in-inpu.html"&gt;https://answers.splunk.com/answers/389567/why-is-a-search-for-fields-added-with-meta-in-inpu.html&lt;/A&gt;&lt;BR /&gt;
Take a look at the end of the post. That should explain it as well. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 10:59:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-some-clarification-on-search-time-meta-field-extraction/m-p/409333#M118088</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2018-11-27T10:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need some clarification on search-time _meta field extraction.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-some-clarification-on-search-time-meta-field-extraction/m-p/409334#M118089</link>
      <description>&lt;P&gt;Hi Skali&lt;/P&gt;

&lt;P&gt;Now it makes a little bit more sense to me. &lt;/P&gt;

&lt;P&gt;When you mentioned that the _meta field definition in the /opt/splunkforwarder/etc/system/local/inputs.conf &lt;STRONG&gt;overrides&lt;/STRONG&gt; the fields.conf definition on the Search Head I now understand why the _meta field vendor can be searched on.&lt;/P&gt;

&lt;P&gt;Just out of curiosity,  if I change the fields.conf on the Search Head with the following statements&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[vendor]
INDEXED=false;   
INDEXED_VALUE=true;   
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can I perform the following search?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os host="ip-10-106-152-169.aws.misin.zbi” vendor=devops
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;According to what I read for INDEXED_VALUE at &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Fieldsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Fieldsconf&lt;/A&gt; it should work.&lt;BR /&gt;
"Setting this (&lt;EM&gt;the INDEXED_VALUE&lt;/EM&gt;) to true expands any search for key=value into a search of   value AND key=value (since value is indexed)"&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;André&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:08:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-some-clarification-on-search-time-meta-field-extraction/m-p/409334#M118089</guid>
      <dc:creator>AndreAtNN</dc:creator>
      <dc:date>2020-09-29T22:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need some clarification on search-time _meta field extraction.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-some-clarification-on-search-time-meta-field-extraction/m-p/409335#M118090</link>
      <description>&lt;P&gt;Should work. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 10:23:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-some-clarification-on-search-time-meta-field-extraction/m-p/409335#M118090</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2018-11-28T10:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need some clarification on search-time _meta field extraction.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-some-clarification-on-search-time-meta-field-extraction/m-p/409336#M118091</link>
      <description>&lt;P&gt;Hi Skalli&lt;/P&gt;

&lt;P&gt;Great, I will instruct our tooling team to change the fields.conf on the Search Head.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
André&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 07:20:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-some-clarification-on-search-time-meta-field-extraction/m-p/409336#M118091</guid>
      <dc:creator>AndreAtNN</dc:creator>
      <dc:date>2018-11-30T07:20:30Z</dc:date>
    </item>
  </channel>
</rss>

