<?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: How can I merge _meta from several inputs.conf files in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-merge-meta-from-several-inputs-conf-files/m-p/22681#M3519</link>
    <description>&lt;P&gt;The universal forwarder can't do much in the way of parsing, but you can do it at the indexer that the UF is reporting into without any problem.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2011 14:56:54 GMT</pubDate>
    <dc:creator>jbsplunk</dc:creator>
    <dc:date>2011-06-07T14:56:54Z</dc:date>
    <item>
      <title>How can I merge _meta from several inputs.conf files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-merge-meta-from-several-inputs-conf-files/m-p/22678#M3516</link>
      <description>&lt;P&gt;I use the universal forwarders ability to enrich the transported files with &lt;EM&gt;_meta&lt;/EM&gt; keywords as follows:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;./etc/apps/myapp/local/inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///myfile]
  disabled = false
  _meta = key1::value key2::value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I also have global key/value pairs for &lt;EM&gt;_meta&lt;/EM&gt; that I would like to add automatically to all monitor stanzas. They are defined in&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;./system/local/inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
  _meta = globalkey::value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;STRONG&gt;globalkey&lt;/STRONG&gt; keyword gets added to all monitor stanzas that do not define a specific &lt;EM&gt;_meta&lt;/EM&gt; keyword. I would like to have the globalkey keyword as well as the additionally defined key/value pairs in the apps inputs.conf defined. Unfortunately the &lt;EM&gt;_meta&lt;/EM&gt; field in apps/../inputs.conf overwrites the system/local/inputs.conf &lt;EM&gt;_meta&lt;/EM&gt; entry.&lt;/P&gt;

&lt;P&gt;Is it possible to append the &lt;EM&gt;global&lt;/EM&gt; keywords (defined in ./system/local/) to the defined _meta tag (defined in ./apps/local/inputs.conf) ?.&lt;/P&gt;

&lt;P&gt;For example with a configuration as follows using &lt;STRONG&gt;$_meta&lt;/STRONG&gt;:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;./system/local/inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
  _meta = globalkey::value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;./etc/apps/myapp/local/inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///myfile]
  disabled = false
  _meta = $_meta key1::value key2::value
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Jun 2011 09:47:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-merge-meta-from-several-inputs-conf-files/m-p/22678#M3516</guid>
      <dc:creator>cwacha</dc:creator>
      <dc:date>2011-06-06T09:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I merge _meta from several inputs.conf files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-merge-meta-from-several-inputs-conf-files/m-p/22679#M3517</link>
      <description>&lt;P&gt;I don't think it is possible to merge entries from inputs.conf in the manner your describing here. The way precedence works is to take the stanza and do merging based on the settings. The setting with the highest priority is what is taken into account. Other settings will be ignored. &lt;/P&gt;

&lt;P&gt;You can probably do this with a props/transforms configuration on the stanzas where you want this to occur. &lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2011 15:29:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-merge-meta-from-several-inputs-conf-files/m-p/22679#M3517</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2011-06-06T15:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I merge _meta from several inputs.conf files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-merge-meta-from-several-inputs-conf-files/m-p/22680#M3518</link>
      <description>&lt;P&gt;As fas as I know props/transforms cannot be used with the universal forwarder...&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2011 08:19:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-merge-meta-from-several-inputs-conf-files/m-p/22680#M3518</guid>
      <dc:creator>cwacha</dc:creator>
      <dc:date>2011-06-07T08:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I merge _meta from several inputs.conf files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-merge-meta-from-several-inputs-conf-files/m-p/22681#M3519</link>
      <description>&lt;P&gt;The universal forwarder can't do much in the way of parsing, but you can do it at the indexer that the UF is reporting into without any problem.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2011 14:56:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-merge-meta-from-several-inputs-conf-files/m-p/22681#M3519</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2011-06-07T14:56:54Z</dc:date>
    </item>
  </channel>
</rss>

