<?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=tcp-raw in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-tcp-raw/m-p/49450#M9391</link>
    <description>&lt;P&gt;I could have done that, but can't since i'll have events coming in from different devices on the same tcp port which needs different sourcetypes to be set according to regex.  so i'll need a transforms.conf to set sourcetype.&lt;BR /&gt;&lt;BR /&gt;
curious to know from where tcp-raw sourcetype is being set.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Feb 2011 00:26:52 GMT</pubDate>
    <dc:creator>pmr</dc:creator>
    <dc:date>2011-02-25T00:26:52Z</dc:date>
    <item>
      <title>sourcetype=tcp-raw</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-tcp-raw/m-p/49448#M9389</link>
      <description>&lt;P&gt;I'm using a forwarder (regular) to forward TCP input to indexer.  The events are being forwarded correctly to the indexer, but for some reason its assigning sourcetype=tcp-raw even though i've specified props and transforms on the indexer.  here's my configs :&lt;/P&gt;

&lt;P&gt;on forwarder : inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcp://9996]
disabled = false
connection_host = ip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;on forwarder : outputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup=my_indexer
compressed=false
indexAndForward=false

[tcpout:my_indexer]
compressed=false
server=192.168.77.1:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;on indexer where props and transforms is occuring : props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::tcp:9996]
TRANSFORMS-sourcetyping_testlog = test_log
TRANSFORMS-indexrouting_testlog = testlog_index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and my transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test_log]
DEST_KEY = MetaData:Sourcetype
REGEX = solaris-new
FORMAT = sourcetype::test_newlog

[testlog_index]
DEST_KEY = _MetaData:Index
REGEX = solaris-new
FORMAT = testlog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i didnt want to set sourcetype on forwarder itself using inputs.conf or props/transforms as i wanted to perform all transformations on the indexer.  The events are coming thro correctly to the indexer but sourcetype=tcp-raw is being assigned.&lt;/P&gt;

&lt;P&gt;can i get some help on this ?&lt;/P&gt;

&lt;P&gt;cheers
pmr&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2011 14:45:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sourcetype-tcp-raw/m-p/49448#M9389</guid>
      <dc:creator>pmr</dc:creator>
      <dc:date>2011-02-24T14:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: sourcetype=tcp-raw</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-tcp-raw/m-p/49449#M9390</link>
      <description>&lt;P&gt;Looking at 
&lt;A href="http://www.splunk.com/base/Documentation/4.1.7/admin/Aboutdefaultfields#Methods_Splunk_uses_for_source_type_assignation_and_their_precedence" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1.7/admin/Aboutdefaultfields#Methods_Splunk_uses_for_source_type_assignation_and_their_precedence&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;in props.conf you could have&lt;/P&gt;

&lt;PRE&gt;[source::tcp:9996]
sourcetype=testlog&lt;/PRE&gt;

&lt;P&gt;and that should work&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2011 23:18:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sourcetype-tcp-raw/m-p/49449#M9390</guid>
      <dc:creator>willthames</dc:creator>
      <dc:date>2011-02-24T23:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: sourcetype=tcp-raw</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-tcp-raw/m-p/49450#M9391</link>
      <description>&lt;P&gt;I could have done that, but can't since i'll have events coming in from different devices on the same tcp port which needs different sourcetypes to be set according to regex.  so i'll need a transforms.conf to set sourcetype.&lt;BR /&gt;&lt;BR /&gt;
curious to know from where tcp-raw sourcetype is being set.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2011 00:26:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sourcetype-tcp-raw/m-p/49450#M9391</guid>
      <dc:creator>pmr</dc:creator>
      <dc:date>2011-02-25T00:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: sourcetype=tcp-raw</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/sourcetype-tcp-raw/m-p/49451#M9392</link>
      <description>&lt;P&gt;"tcp-raw" is the default sourcetype for a source::tcp (RAW TCP) input, so any transforms are not matching the data.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2011 00:40:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/sourcetype-tcp-raw/m-p/49451#M9392</guid>
      <dc:creator>Andreux</dc:creator>
      <dc:date>2011-07-30T00:40:47Z</dc:date>
    </item>
  </channel>
</rss>

