<?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: configuring sourcetype with props transforms and inputs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/configuring-sourcetype-with-props-transforms-and-inputs/m-p/26343#M4342</link>
    <description>&lt;P&gt;There are two issues here:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;In props.conf, an index time transformation should be &lt;CODE&gt;TRANSFORMS-iptables = iptables&lt;/CODE&gt; as opposed to &lt;CODE&gt;REPORT-&lt;/CODE&gt;.&lt;/LI&gt;
&lt;LI&gt;In transforms.conf, the correct DEST_KEY, according to &lt;CODE&gt;$SPLUNK_HOME/etc/system/README/transforms.conf.spec&lt;/CODE&gt; is &lt;CODE&gt;MetaData:Sourcetype&lt;/CODE&gt;.&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Mon, 09 Aug 2010 01:18:38 GMT</pubDate>
    <dc:creator>Stephen_Sorkin</dc:creator>
    <dc:date>2010-08-09T01:18:38Z</dc:date>
    <item>
      <title>configuring sourcetype with props transforms and inputs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/configuring-sourcetype-with-props-transforms-and-inputs/m-p/26342#M4341</link>
      <description>&lt;P&gt;hello everyone,&lt;/P&gt;

&lt;P&gt;I know there are many similar posts to this, and i have read a lot but i cant seem to get it to work. &lt;/P&gt;

&lt;P&gt;I am trying to manually change the sourcetype.  I have a LWF and a indexer.  im trying to change my iptables logs sourcetype to "iptables". i've tried several different things. I probably have several things wrong, if someone could point me in the right direction or tell me exactly what to do that would be great. here is some stuff I have at the moment. &lt;/P&gt;

&lt;P&gt;on my LWF: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;inputs.conf:

[monitor:///var/log/kern.log]
sourcetype = test

[monitor:///var/log/syslog]
sourcetype = test
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;on my indexer:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf:

[test]

REPORT-iptables = iptables
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;-also tried TRANSFORMS&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;transforms.conf:

[iptables]

DEST_KEY = MetaData:sourcetype
REGEX = \bIN\w*\b.*\bTCP\b
FORMAT = sourcetype::sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;all my iptables logs have either INBOUND TCP or INPUT TCP, im trying to use an easy regex, as i havent used it before.&lt;/P&gt;

&lt;P&gt;here is an example of a log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Aug  6 10:50:03 VM2 kernel: [ 9468.989438]  INBOUND TCP IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:50:56:c0:00:08:08:00 SRC=192.168.232.1 DST=192.168.232.255 LEN=229 TOS=0x00 PREC=0x00 TTL=128 ID=312 PROTO=UDP SPT=138 DPT=138 LEN=209 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if there is something i didn't post that would be helpful let me know.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 07 Aug 2010 00:57:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/configuring-sourcetype-with-props-transforms-and-inputs/m-p/26342#M4341</guid>
      <dc:creator>woodchuck</dc:creator>
      <dc:date>2010-08-07T00:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: configuring sourcetype with props transforms and inputs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/configuring-sourcetype-with-props-transforms-and-inputs/m-p/26343#M4342</link>
      <description>&lt;P&gt;There are two issues here:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;In props.conf, an index time transformation should be &lt;CODE&gt;TRANSFORMS-iptables = iptables&lt;/CODE&gt; as opposed to &lt;CODE&gt;REPORT-&lt;/CODE&gt;.&lt;/LI&gt;
&lt;LI&gt;In transforms.conf, the correct DEST_KEY, according to &lt;CODE&gt;$SPLUNK_HOME/etc/system/README/transforms.conf.spec&lt;/CODE&gt; is &lt;CODE&gt;MetaData:Sourcetype&lt;/CODE&gt;.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 09 Aug 2010 01:18:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/configuring-sourcetype-with-props-transforms-and-inputs/m-p/26343#M4342</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-08-09T01:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: configuring sourcetype with props transforms and inputs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/configuring-sourcetype-with-props-transforms-and-inputs/m-p/26344#M4343</link>
      <description>&lt;P&gt;thanks, its seems to work now!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2010 04:19:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/configuring-sourcetype-with-props-transforms-and-inputs/m-p/26344#M4343</guid>
      <dc:creator>woodchuck</dc:creator>
      <dc:date>2010-08-10T04:19:03Z</dc:date>
    </item>
  </channel>
</rss>

