<?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: sourcetype in input.conf being ignored in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-in-input-conf-being-ignored/m-p/70148#M14280</link>
    <description>&lt;P&gt;You should &lt;EM&gt;not&lt;/EM&gt; be using &lt;STRONG&gt;splunktcp&lt;/STRONG&gt; for regular data. I assume that the three servers are sending their data directly to Splunk. You should be using &lt;STRONG&gt;tcp&lt;/STRONG&gt; for this.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;splunktcp&lt;/STRONG&gt; is for the indexer to listen to packets sent by a Splunk forwarder. It is for Splunk-to-Splunk communication only.&lt;/P&gt;

&lt;P&gt;I am actually surprised that it works at all, the way it is configured now!&lt;/P&gt;</description>
    <pubDate>Thu, 20 Dec 2012 19:08:16 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2012-12-20T19:08:16Z</dc:date>
    <item>
      <title>sourcetype in input.conf being ignored</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-in-input-conf-being-ignored/m-p/70147#M14279</link>
      <description>&lt;P&gt;I have configured local/input.conf as:&lt;/P&gt;

&lt;P&gt;[splunktcp://20005]&lt;BR /&gt;
index = dns&lt;BR /&gt;
sourcetype = dnslog&lt;/P&gt;

&lt;P&gt;However only 2 of the 3 servers are getting the sourcetype dnslog. The problem server is getting something related to the hostname as sourcetype and there is a hostname-too_small sourcetype too. &lt;/P&gt;

&lt;P&gt;Why aren't all servers getting the same sourcetype?&lt;/P&gt;

&lt;P&gt;I have been looking through input.conf.spec and aparently I can't put sourcetype below splunktcp. So I should use tcp://200005 instead of splunktcp?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2012 18:25:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sourcetype-in-input-conf-being-ignored/m-p/70147#M14279</guid>
      <dc:creator>krugger</dc:creator>
      <dc:date>2012-12-20T18:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: sourcetype in input.conf being ignored</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-in-input-conf-being-ignored/m-p/70148#M14280</link>
      <description>&lt;P&gt;You should &lt;EM&gt;not&lt;/EM&gt; be using &lt;STRONG&gt;splunktcp&lt;/STRONG&gt; for regular data. I assume that the three servers are sending their data directly to Splunk. You should be using &lt;STRONG&gt;tcp&lt;/STRONG&gt; for this.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;splunktcp&lt;/STRONG&gt; is for the indexer to listen to packets sent by a Splunk forwarder. It is for Splunk-to-Splunk communication only.&lt;/P&gt;

&lt;P&gt;I am actually surprised that it works at all, the way it is configured now!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2012 19:08:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sourcetype-in-input-conf-being-ignored/m-p/70148#M14280</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-12-20T19:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: sourcetype in input.conf being ignored</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-in-input-conf-being-ignored/m-p/70149#M14281</link>
      <description>&lt;P&gt;splunktcp is for intra-Splunk traffic, like a Universal Forwarder sending logs to an indexer. In that case the forwarder will set the sourcetype before it sends data to the indexer, so specifying a sourcetype at the indexer doesn't make sense in that scenario.&lt;/P&gt;

&lt;P&gt;tcp is for receiving events as raw data, so if you point a forwarder to a tcp input on the indexer you will get all kinds of binary data in your events.&lt;/P&gt;

&lt;P&gt;If you for some reason want to force the sourcetype for your splunktcp input on the indexer, there are ways to do that by rewriting the sourcetype using props.conf/transforms.conf, but really you should be specifying this sourcetype on the Splunk instance that is performing the initial gathering of logs before sending them off to the indexer.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2012 19:09:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sourcetype-in-input-conf-being-ignored/m-p/70149#M14281</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-12-20T19:09:17Z</dc:date>
    </item>
  </channel>
</rss>

