<?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 Combined logs, props.conf transforms.conf and inputs.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Combined-logs-props-conf-transforms-conf-and-inputs-conf/m-p/500036#M99969</link>
    <description>&lt;P&gt;I have a centralized syslog server which I forward all other server logs to.  All of those logs are combined per log type such as /var/log/messages, /var/log/secure, etc.  I've setup my transforms.conf file to take the hostname out of each line and assign it as the host per log file line.  I've associated the transform to the various logs.  After restarting the splunk forwarder I'm still not seeing my logs being broken out by host.  I'm wondering if it's because of the host value in inputs.conf and if that's overriding the dynamic host value I'm creating via props and transforms.  Here is what I have so far:&lt;/P&gt;

&lt;P&gt;etc/apps/search/local/transforms.conf&lt;/P&gt;

&lt;P&gt;[hostname]&lt;BR /&gt;
DEST_KEY = MetaData:Host&lt;BR /&gt;
REGEX = (?:\S+ ){2}(\S+)&lt;BR /&gt;
FORMAT = host::$1&lt;/P&gt;

&lt;P&gt;etc/system/local/props.conf&lt;/P&gt;

&lt;P&gt;[source::.../messages]&lt;BR /&gt;
TRANSFORMS-bg = hostname&lt;BR /&gt;
SHOULD_LINEMERGE = False&lt;/P&gt;

&lt;P&gt;Example from &lt;EM&gt;splunk show config inputs&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;[monitor:///var/log/messages*]&lt;BR /&gt;
_rcvbuf=1572864&lt;BR /&gt;
disabled=false&lt;BR /&gt;
host=[splunk_forwarder_hostname]&lt;BR /&gt;
index=[index_name]&lt;BR /&gt;
sourcetype=[source_type]&lt;/P&gt;

&lt;P&gt;My concern is the host= attribute associated with every monitor entry.  Is this the source of my issues or do I need to be looking somewhere else?&lt;/P&gt;

&lt;P&gt;Bert&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:30:42 GMT</pubDate>
    <dc:creator>bpgoodm</dc:creator>
    <dc:date>2020-09-30T02:30:42Z</dc:date>
    <item>
      <title>Combined logs, props.conf transforms.conf and inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Combined-logs-props-conf-transforms-conf-and-inputs-conf/m-p/500036#M99969</link>
      <description>&lt;P&gt;I have a centralized syslog server which I forward all other server logs to.  All of those logs are combined per log type such as /var/log/messages, /var/log/secure, etc.  I've setup my transforms.conf file to take the hostname out of each line and assign it as the host per log file line.  I've associated the transform to the various logs.  After restarting the splunk forwarder I'm still not seeing my logs being broken out by host.  I'm wondering if it's because of the host value in inputs.conf and if that's overriding the dynamic host value I'm creating via props and transforms.  Here is what I have so far:&lt;/P&gt;

&lt;P&gt;etc/apps/search/local/transforms.conf&lt;/P&gt;

&lt;P&gt;[hostname]&lt;BR /&gt;
DEST_KEY = MetaData:Host&lt;BR /&gt;
REGEX = (?:\S+ ){2}(\S+)&lt;BR /&gt;
FORMAT = host::$1&lt;/P&gt;

&lt;P&gt;etc/system/local/props.conf&lt;/P&gt;

&lt;P&gt;[source::.../messages]&lt;BR /&gt;
TRANSFORMS-bg = hostname&lt;BR /&gt;
SHOULD_LINEMERGE = False&lt;/P&gt;

&lt;P&gt;Example from &lt;EM&gt;splunk show config inputs&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;[monitor:///var/log/messages*]&lt;BR /&gt;
_rcvbuf=1572864&lt;BR /&gt;
disabled=false&lt;BR /&gt;
host=[splunk_forwarder_hostname]&lt;BR /&gt;
index=[index_name]&lt;BR /&gt;
sourcetype=[source_type]&lt;/P&gt;

&lt;P&gt;My concern is the host= attribute associated with every monitor entry.  Is this the source of my issues or do I need to be looking somewhere else?&lt;/P&gt;

&lt;P&gt;Bert&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:30:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Combined-logs-props-conf-transforms-conf-and-inputs-conf/m-p/500036#M99969</guid>
      <dc:creator>bpgoodm</dc:creator>
      <dc:date>2020-09-30T02:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Combined logs, props.conf transforms.conf and inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Combined-logs-props-conf-transforms-conf-and-inputs-conf/m-p/500037#M99970</link>
      <description>&lt;P&gt;Hi bpgoodm,&lt;BR /&gt;
let me understand:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;you have a server with Universal Forwarders that receives syslogs,&lt;/LI&gt;
&lt;LI&gt;then this server sends logs to Indexer without intermediate forwarders,&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Is it correct?&lt;/P&gt;

&lt;P&gt;if this is you situation, the problem is on the location of props.conf and transforms.conf: &lt;STRONG&gt;they must be on Indexers not on Universal Forwarders&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;There are only two exceptions to this rule:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;when there's an intermediate Heavy Forwarder that they must be here,&lt;/LI&gt;
&lt;LI&gt;if you have to ingest csv or xml or json, in other words indexed extractions, in this case they must be on Universal Forwarders.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 06:45:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Combined-logs-props-conf-transforms-conf-and-inputs-conf/m-p/500037#M99970</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-10-10T06:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Combined logs, props.conf transforms.conf and inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Combined-logs-props-conf-transforms-conf-and-inputs-conf/m-p/500038#M99971</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;

&lt;P&gt;Ah, thank you.  I didn't realize.  Your assumptions are correct.  I'm setting this stuff up on the Universal Forwarder and the Universal Forwarder is sending the logs to the Indexer.  The exceptions you mention don't apply to this situation.  Thank you again for the information.&lt;/P&gt;

&lt;P&gt;Bert&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 12:58:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Combined-logs-props-conf-transforms-conf-and-inputs-conf/m-p/500038#M99971</guid>
      <dc:creator>bpgoodm</dc:creator>
      <dc:date>2019-10-10T12:58:00Z</dc:date>
    </item>
  </channel>
</rss>

