<?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 to create a field at the forwarder layer for tracking... in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-field-at-the-forwarder-layer-for-tracking/m-p/124052#M25587</link>
    <description>&lt;P&gt;Flow is correct.  The reporting host is the load-balancer,  but I extract the event host from the message stream.  I want to use the hostname of the heavy forwarder for this new field. &lt;/P&gt;</description>
    <pubDate>Wed, 01 Apr 2015 18:54:26 GMT</pubDate>
    <dc:creator>a212830</dc:creator>
    <dc:date>2015-04-01T18:54:26Z</dc:date>
    <item>
      <title>How to create a field at the forwarder layer for tracking...</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-field-at-the-forwarder-layer-for-tracking/m-p/124047#M25582</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a number of forwarders behind a load-balancer, and I want a way to see how the traffic is being distributed to each forwarder.  Is there a way to create a field at the forwarder layer, and have it part of the event.  Note that the host for the event is not the server name - the host is extracted from the message stream, so if a transforms is done, it can't over-ride the host that is being extracted.  &lt;/P&gt;

&lt;P&gt;btw - this really should be included in the product...going back and trying to determine where an event is coming from when you have a large environment can be a real pita....&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2015 20:42:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-field-at-the-forwarder-layer-for-tracking/m-p/124047#M25582</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-03-31T20:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a field at the forwarder layer for tracking...</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-field-at-the-forwarder-layer-for-tracking/m-p/124048#M25583</link>
      <description>&lt;P&gt;I suggest taking a look at creating default fields dynamically in &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/Assignmetadatatoeventsdynamically"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/Assignmetadatatoeventsdynamically&lt;/A&gt; . From here you may be able to create a new field called "forwarder" maybe? and assign the forwarder's hostname variable to the transforms for the field.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2015 21:48:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-field-at-the-forwarder-layer-for-tracking/m-p/124048#M25583</guid>
      <dc:creator>dolivasoh</dc:creator>
      <dc:date>2015-03-31T21:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a field at the forwarder layer for tracking...</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-field-at-the-forwarder-layer-for-tracking/m-p/124049#M25584</link>
      <description>&lt;P&gt;I was able to create a field, but it's taking the value of the incoming message stream (tcp input).  Is there a way to say use the hostname of the server that is running the forwarder?  Any variable that might be available?  &lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 01:32:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-field-at-the-forwarder-layer-for-tracking/m-p/124049#M25584</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-04-01T01:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a field at the forwarder layer for tracking...</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-field-at-the-forwarder-layer-for-tracking/m-p/124050#M25585</link>
      <description>&lt;P&gt;Is this possible:&lt;/P&gt;

&lt;P&gt;1) Add a monitor that runs a script that generates a lookup-file with the hostname of the server.&lt;BR /&gt;
2) Use that lookup to populate the forwarder field (at the forwarder layer).&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 13:45:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-field-at-the-forwarder-layer-for-tracking/m-p/124050#M25585</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-04-01T13:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a field at the forwarder layer for tracking...</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-field-at-the-forwarder-layer-for-tracking/m-p/124051#M25586</link>
      <description>&lt;P&gt;Making sure I have the architecture correct here, confirm if this is correct or not?&lt;/P&gt;

&lt;P&gt;The flow is: devices -&amp;gt; tcp stream -&amp;gt; load balancer -&amp;gt; heavy forwarders -&amp;gt; splunk indexers.&lt;/P&gt;

&lt;P&gt;The resulting event's 'host' field shows the load balancer. The events also have a field within them that shows the originating 'device'. The goal is to get the name of the splunk indexer that (or heavy forwarder?) that is processing the event.&lt;/P&gt;

&lt;P&gt;Is that correct?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 18:43:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-field-at-the-forwarder-layer-for-tracking/m-p/124051#M25586</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2015-04-01T18:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a field at the forwarder layer for tracking...</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-field-at-the-forwarder-layer-for-tracking/m-p/124052#M25587</link>
      <description>&lt;P&gt;Flow is correct.  The reporting host is the load-balancer,  but I extract the event host from the message stream.  I want to use the hostname of the heavy forwarder for this new field. &lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 18:54:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-field-at-the-forwarder-layer-for-tracking/m-p/124052#M25587</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-04-01T18:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a field at the forwarder layer for tracking...</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-field-at-the-forwarder-layer-for-tracking/m-p/124053#M25588</link>
      <description>&lt;P&gt;I'm thinking you probably can do something with option 2. I haven't tested this myself but I would be inclined to see if this works:&lt;/P&gt;

&lt;P&gt;Have a transforms.conf on the heavy forwarders that uses the "external_cmd" attribute to run a &lt;CODE&gt;hostname&lt;/CODE&gt;, or the pyton equivalent, then deposit that as an indexed field. (This is technically a scripted lookup) Be sure to also set external_type accordingly.&lt;/P&gt;

&lt;P&gt;You might have to then set the value using the DEST_KEY field.&lt;/P&gt;

&lt;P&gt;BTW: I'm suspicious that if you are able to rename this question, something like "Identifying the heavy forwarder" or something more specific may get more of the splunkers to peek at it.&lt;/P&gt;

&lt;P&gt;If you haven't already, be sure to submit a P4, feature request, to have this added as a default field.&lt;/P&gt;

&lt;P&gt;Let us know how that approach works our for you so we can support you along the way.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:23:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-field-at-the-forwarder-layer-for-tracking/m-p/124053#M25588</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2020-09-28T19:23:53Z</dc:date>
    </item>
  </channel>
</rss>

