<?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: Can you override sourcetype at inputs.conf without touching other config files ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398767#M71093</link>
    <description>&lt;P&gt;tried but seems not working - still gets hostname from log content.  My inputs.conf looks like following:&lt;/P&gt;

&lt;P&gt;[monitor:///ssd/&lt;EM&gt;/&lt;/EM&gt;/cyrus.log]&lt;BR /&gt;
ignoreOlderThan=1d&lt;BR /&gt;
disabled = false&lt;BR /&gt;
TRANSFORMS =&lt;BR /&gt;
TRANSFORMS-host =&lt;BR /&gt;
host_segment = 3&lt;BR /&gt;
index = test&lt;/P&gt;

&lt;H1&gt;sourcetype = cyrus&lt;/H1&gt;

&lt;P&gt;Did I miss anything?&lt;BR /&gt;&lt;BR /&gt;
Thanks and rgds&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2018 11:52:05 GMT</pubDate>
    <dc:creator>stwong</dc:creator>
    <dc:date>2018-06-21T11:52:05Z</dc:date>
    <item>
      <title>Can you override sourcetype at inputs.conf without touching other config files ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398764#M71090</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;Seems we have to override the sourcetype to sourcetype other than 'recognized' ones (e.g. syslog) in order to make host_segment work.  e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///ssd/*/*/cyrus.log]
disabled = false
host_segment = 3
index = test
sourcetype = cyrus
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, for some cases, we hope to make use of sourcetype from Splunk (e.g. syslog) but use host_segment instead of host parsed in the log content for that particular sourcetype. Possible to do that at inputs.conf without touching other config files like props.conf or transform.conf?&lt;/P&gt;

&lt;P&gt;Sorry for the newbie question.&lt;/P&gt;

&lt;P&gt;Thanks and regards&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 06:52:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398764#M71090</guid>
      <dc:creator>stwong</dc:creator>
      <dc:date>2018-06-21T06:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can you override sourcetype at inputs.conf without touching other config files ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398765#M71091</link>
      <description>&lt;P&gt;Syslog sourcetype comes with a TRANSFORMS stanza in etc/system/default/props.conf that pulls the hostname from the event. If you don't want that to happen, add the following empty transforms setting in your own local props.conf, to disable that feature for this particular source.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/ssd/*/*/cyrus.log]
TRANSFORMS = 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jun 2018 07:07:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398765#M71091</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-21T07:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can you override sourcetype at inputs.conf without touching other config files ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398766#M71092</link>
      <description>&lt;P&gt;Got it.  Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 11:24:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398766#M71092</guid>
      <dc:creator>stwong</dc:creator>
      <dc:date>2018-06-21T11:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can you override sourcetype at inputs.conf without touching other config files ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398767#M71093</link>
      <description>&lt;P&gt;tried but seems not working - still gets hostname from log content.  My inputs.conf looks like following:&lt;/P&gt;

&lt;P&gt;[monitor:///ssd/&lt;EM&gt;/&lt;/EM&gt;/cyrus.log]&lt;BR /&gt;
ignoreOlderThan=1d&lt;BR /&gt;
disabled = false&lt;BR /&gt;
TRANSFORMS =&lt;BR /&gt;
TRANSFORMS-host =&lt;BR /&gt;
host_segment = 3&lt;BR /&gt;
index = test&lt;/P&gt;

&lt;H1&gt;sourcetype = cyrus&lt;/H1&gt;

&lt;P&gt;Did I miss anything?&lt;BR /&gt;&lt;BR /&gt;
Thanks and rgds&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 11:52:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398767#M71093</guid>
      <dc:creator>stwong</dc:creator>
      <dc:date>2018-06-21T11:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can you override sourcetype at inputs.conf without touching other config files ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398768#M71094</link>
      <description>&lt;P&gt;The source based stanza incl. the empty transforms as I put it in my answer should go into props.conf, not inputs.conf.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 11:55:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398768#M71094</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-21T11:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can you override sourcetype at inputs.conf without touching other config files ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398769#M71095</link>
      <description>&lt;P&gt;stupid me.  sorry for the newbie mistake...&lt;/P&gt;

&lt;P&gt;Just put following in props.conf but seems no effect.&lt;/P&gt;

&lt;P&gt;[source::/ssd/&lt;EM&gt;/&lt;/EM&gt;/cyrus.log]&lt;BR /&gt;
TRANSFORMS =&lt;BR /&gt;
TRANSFORMS-host =&lt;/P&gt;

&lt;P&gt;splunk btools props list shows the setting is correct.  Would you help?   Thanks again.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 12:53:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398769#M71095</guid>
      <dc:creator>stwong</dc:creator>
      <dc:date>2018-06-21T12:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can you override sourcetype at inputs.conf without touching other config files ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398770#M71096</link>
      <description>&lt;P&gt;Hmm, I would think that should overwrite the setting in default/props.conf. Can you try setting it under [syslog] in props.conf, rather than that source based stanza?&lt;/P&gt;

&lt;P&gt;PS: where are you deploying this props.conf? It should be on heavy forwarder or indexer. If you are collecting this data with a universal forwarder, it doesn't work putting this props.conf on the UF.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 13:27:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398770#M71096</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-21T13:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can you override sourcetype at inputs.conf without touching other config files ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398771#M71097</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;It should be on heavy forwarder or indexer&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Got it.    Will this overrides host part for all data with sourcetype=syslog?&lt;BR /&gt;
Chances are we hope to use host_segments for syslog data on some UF, while keep using host in log content for some other UF.&lt;/P&gt;

&lt;P&gt;Sorry to bother again.&lt;BR /&gt;
Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 02:34:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398771#M71097</guid>
      <dc:creator>stwong</dc:creator>
      <dc:date>2018-06-22T02:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can you override sourcetype at inputs.conf without touching other config files ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398772#M71098</link>
      <description>&lt;P&gt;When you set it for &lt;CODE&gt;[syslog]&lt;/CODE&gt; it applies to all feeds with that sourcetype. So better set it using a source based stanza as I originally suggested (assuming that indeed works).&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 04:14:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398772#M71098</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-22T04:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can you override sourcetype at inputs.conf without touching other config files ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398773#M71099</link>
      <description>&lt;P&gt;Noted and thanks.  Will try it out.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 08:35:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-override-sourcetype-at-inputs-conf-without-touching/m-p/398773#M71099</guid>
      <dc:creator>stwong</dc:creator>
      <dc:date>2018-06-22T08:35:13Z</dc:date>
    </item>
  </channel>
</rss>

