<?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 Does the Universal Forwarder support the Splunk header in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Does-the-Universal-Forwarder-support-the-Splunk-header/m-p/49655#M9435</link>
    <description>&lt;P&gt;I recently moved to the universal forwarder  (4.3.3) where I collect files using the batch input. It's a long story but I have to use the batch input. I use the SPLUNK header to set the host, source and source type. The receiving indexer performs the necessary transformations. I've noticed since I've moved to the new forwarder that the header is no longer being honoured. I changed the HEADER_MODE to always in the default etc/system/local/props.conf, however events arrive without the necessary host, source and sourcetypes. &lt;/P&gt;

&lt;P&gt;It appears that the batch handling changed in 4.2, and is not handled as part of the indexing pipeline.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Sep 2012 09:51:27 GMT</pubDate>
    <dc:creator>Marinus</dc:creator>
    <dc:date>2012-09-03T09:51:27Z</dc:date>
    <item>
      <title>Does the Universal Forwarder support the Splunk header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-the-Universal-Forwarder-support-the-Splunk-header/m-p/49655#M9435</link>
      <description>&lt;P&gt;I recently moved to the universal forwarder  (4.3.3) where I collect files using the batch input. It's a long story but I have to use the batch input. I use the SPLUNK header to set the host, source and source type. The receiving indexer performs the necessary transformations. I've noticed since I've moved to the new forwarder that the header is no longer being honoured. I changed the HEADER_MODE to always in the default etc/system/local/props.conf, however events arrive without the necessary host, source and sourcetypes. &lt;/P&gt;

&lt;P&gt;It appears that the batch handling changed in 4.2, and is not handled as part of the indexing pipeline.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2012 09:51:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-the-Universal-Forwarder-support-the-Splunk-header/m-p/49655#M9435</guid>
      <dc:creator>Marinus</dc:creator>
      <dc:date>2012-09-03T09:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Does the Universal Forwarder support the Splunk header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-the-Universal-Forwarder-support-the-Splunk-header/m-p/49656#M9436</link>
      <description>&lt;P&gt;What's the sourcetype of your data?&lt;/P&gt;

&lt;P&gt;Do you have any transforms of the data? What kind of stanza specification are you using on the indexer for these? &lt;CODE&gt;[my_sourcetype]&lt;/CODE&gt; or &lt;CODE&gt;[source::/path/to/file]&lt;/CODE&gt; or &lt;CODE&gt;[host::host1]&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;What are you setting on the forwarder inputs?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 15:25:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-the-Universal-Forwarder-support-the-Splunk-header/m-p/49656#M9436</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2012-09-04T15:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Does the Universal Forwarder support the Splunk header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-the-Universal-Forwarder-support-the-Splunk-header/m-p/49657#M9437</link>
      <description>&lt;P&gt;Thanks for the response Dart. The indexer uses a batch input to collect data.&lt;/P&gt;

&lt;P&gt;[batch:///data]&lt;BR /&gt;
move_policy=sinkhole&lt;BR /&gt;
crcSalt=&lt;SOURCE&gt;&lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;The host, source and sourcetype are set by the splunk header i.e.&lt;BR /&gt;
&lt;STRONG&gt;&lt;EM&gt;SPLUNK&lt;/EM&gt;&lt;/STRONG&gt; host=acme source=xyz sourcetype=abc&lt;/P&gt;

&lt;P&gt;The indexer received the events from the forwarder and has props configured to deal with the source types, which in fact rewrite the source and host keys i.e.&lt;/P&gt;

&lt;P&gt;[abc]&lt;BR /&gt;
TRANSFORMS-fix=fix_a, fix_b&lt;/P&gt;

&lt;P&gt;When I look at the events on the indexer, I can see that raw events including the &lt;STRONG&gt;&lt;EM&gt;SPLUNK&lt;/EM&gt;&lt;/STRONG&gt; header, with no keys set.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:22:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-the-Universal-Forwarder-support-the-Splunk-header/m-p/49657#M9437</guid>
      <dc:creator>Marinus</dc:creator>
      <dc:date>2020-09-28T12:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Does the Universal Forwarder support the Splunk header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-the-Universal-Forwarder-support-the-Splunk-header/m-p/49658#M9438</link>
      <description>&lt;P&gt;Hi Marinus,&lt;BR /&gt;
I'm not sure if using the &lt;CODE&gt;***SPLUNK***&lt;/CODE&gt; style is supported.&lt;BR /&gt;
I'd suggest either using the Splunk Forwarder instead of the universal forwarder, or you could set a sourcetype in your batch input, and reference that sourcetype in the TRANSFORMS, which could fix host, source and sourcetype, and also use a SEDCMD to remove the header.&lt;/P&gt;

&lt;P&gt;I'd say the better solution is to use a full forwarder, if that works for &lt;CODE&gt;***SPLUNK***&lt;/CODE&gt; style.&lt;/P&gt;

&lt;P&gt;dart&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 19:36:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-the-Universal-Forwarder-support-the-Splunk-header/m-p/49658#M9438</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2012-09-04T19:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Does the Universal Forwarder support the Splunk header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-the-Universal-Forwarder-support-the-Splunk-header/m-p/49659#M9439</link>
      <description>&lt;P&gt;Hi Dart&lt;/P&gt;

&lt;P&gt;I did a couple of tests and it doesn't appear that HEADER_MODE config affects they way it processes events &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 12:51:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-the-Universal-Forwarder-support-the-Splunk-header/m-p/49659#M9439</guid>
      <dc:creator>Marinus</dc:creator>
      <dc:date>2012-09-05T12:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Does the Universal Forwarder support the Splunk header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-the-Universal-Forwarder-support-the-Splunk-header/m-p/49660#M9440</link>
      <description>&lt;P&gt;It appears that the batch handling changed in 4.2, and is not handled as part of the indexing pipeline. Reverted back to an old forwarder.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2012 08:36:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-the-Universal-Forwarder-support-the-Splunk-header/m-p/49660#M9440</guid>
      <dc:creator>Marinus</dc:creator>
      <dc:date>2012-10-22T08:36:33Z</dc:date>
    </item>
  </channel>
</rss>

