<?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 Add field to all events from host in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Add-field-to-all-events-from-host/m-p/146868#M29930</link>
    <description>&lt;P&gt;Hi There,&lt;/P&gt;

&lt;P&gt;I am working on an enterprise installation. At the moment we have 1500+ hosts sending data. I'd like each host to tell to which client it belongs. &lt;/P&gt;

&lt;P&gt;In the default splunk setup, the input.conf the hostname is specified likewise:&lt;BR /&gt;
[default]&lt;BR /&gt;
host = &lt;HOSTNAME&gt;&lt;/HOSTNAME&gt;&lt;/P&gt;

&lt;P&gt;Since each host has it's own app('s), I might as well add to the input.conf in the specific apps: &lt;BR /&gt;
[default]&lt;BR /&gt;
client = &lt;CLIENTNAME&gt; &lt;/CLIENTNAME&gt;&lt;/P&gt;

&lt;P&gt;Unfortunately, this won't work. Why? Is the host field treated differently? I'm aware I can add fields in props/transforms, or use tags, but that adds up to the level of maintenance (props/conf because it is set per sourcetype, tags because I have to modify it with each new host added to splunk).&lt;/P&gt;

&lt;P&gt;Any thoughts?  &lt;/P&gt;</description>
    <pubDate>Thu, 17 Jul 2014 09:35:51 GMT</pubDate>
    <dc:creator>renems</dc:creator>
    <dc:date>2014-07-17T09:35:51Z</dc:date>
    <item>
      <title>Add field to all events from host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-field-to-all-events-from-host/m-p/146868#M29930</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;

&lt;P&gt;I am working on an enterprise installation. At the moment we have 1500+ hosts sending data. I'd like each host to tell to which client it belongs. &lt;/P&gt;

&lt;P&gt;In the default splunk setup, the input.conf the hostname is specified likewise:&lt;BR /&gt;
[default]&lt;BR /&gt;
host = &lt;HOSTNAME&gt;&lt;/HOSTNAME&gt;&lt;/P&gt;

&lt;P&gt;Since each host has it's own app('s), I might as well add to the input.conf in the specific apps: &lt;BR /&gt;
[default]&lt;BR /&gt;
client = &lt;CLIENTNAME&gt; &lt;/CLIENTNAME&gt;&lt;/P&gt;

&lt;P&gt;Unfortunately, this won't work. Why? Is the host field treated differently? I'm aware I can add fields in props/transforms, or use tags, but that adds up to the level of maintenance (props/conf because it is set per sourcetype, tags because I have to modify it with each new host added to splunk).&lt;/P&gt;

&lt;P&gt;Any thoughts?  &lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2014 09:35:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-field-to-all-events-from-host/m-p/146868#M29930</guid>
      <dc:creator>renems</dc:creator>
      <dc:date>2014-07-17T09:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add field to all events from host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Add-field-to-all-events-from-host/m-p/146869#M29931</link>
      <description>&lt;P&gt;You can't just make up inputs.conf keys such as &lt;CODE&gt;client&lt;/CODE&gt;, see &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.2/Admin/inputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.2/Admin/inputsconf&lt;/A&gt; for a reference of available keys.&lt;/P&gt;

&lt;P&gt;You could prefix your hosts with the client, e.g. this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
host = client_actualhost
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Either keep that field as-is, or define transforms.conf rules to pick apart these two values to store the client in a custom indexed field and reduce the host to actualhost.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2014 11:24:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Add-field-to-all-events-from-host/m-p/146869#M29931</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-17T11:24:11Z</dc:date>
    </item>
  </channel>
</rss>

