<?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 Transform for sourcetype not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Transform-for-sourcetype-not-working/m-p/52496#M10112</link>
    <description>&lt;P&gt;I have setup a transform to ideally set the hostname and sourcetype for syslog traffic, however I'm encountering problems. &lt;/P&gt;

&lt;P&gt;I have the following in the transforms.conf:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[firepass_sourcetyper] REGEX =&lt;BR /&gt;
(?:192.168.249.106) DEST_KEY =&lt;BR /&gt;
MetaData:sourcetype FORMAT =&lt;BR /&gt;
sourcetype::firepass_log&lt;/P&gt;

&lt;P&gt;[firepass_hostnamer] REGEX =&lt;BR /&gt;
(?:192.168.249.106) DEST_KEY =&lt;BR /&gt;
MetaData:host FORMAT =&lt;BR /&gt;
host::rm.markerstudy.com&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;And I have the following in my props.conf file:&lt;/P&gt;

&lt;P&gt;[source::udp:514]&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;TRANSFORMS-firepasssoucetype = firepass_sourcetyper&lt;BR /&gt;
TRANSFORMS-firepasshostname = firepass_hostnamer&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I'm not sure if it's possible to do multiple transforms for a single source as I am trying, however for the purpose of testing this I have commented out the second transforms statement.&lt;/P&gt;

&lt;P&gt;Can anybody help as to why this isn't working?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Neil&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 10:19:17 GMT</pubDate>
    <dc:creator>NeilGingell</dc:creator>
    <dc:date>2020-09-28T10:19:17Z</dc:date>
    <item>
      <title>Transform for sourcetype not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transform-for-sourcetype-not-working/m-p/52496#M10112</link>
      <description>&lt;P&gt;I have setup a transform to ideally set the hostname and sourcetype for syslog traffic, however I'm encountering problems. &lt;/P&gt;

&lt;P&gt;I have the following in the transforms.conf:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[firepass_sourcetyper] REGEX =&lt;BR /&gt;
(?:192.168.249.106) DEST_KEY =&lt;BR /&gt;
MetaData:sourcetype FORMAT =&lt;BR /&gt;
sourcetype::firepass_log&lt;/P&gt;

&lt;P&gt;[firepass_hostnamer] REGEX =&lt;BR /&gt;
(?:192.168.249.106) DEST_KEY =&lt;BR /&gt;
MetaData:host FORMAT =&lt;BR /&gt;
host::rm.markerstudy.com&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;And I have the following in my props.conf file:&lt;/P&gt;

&lt;P&gt;[source::udp:514]&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;TRANSFORMS-firepasssoucetype = firepass_sourcetyper&lt;BR /&gt;
TRANSFORMS-firepasshostname = firepass_hostnamer&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I'm not sure if it's possible to do multiple transforms for a single source as I am trying, however for the purpose of testing this I have commented out the second transforms statement.&lt;/P&gt;

&lt;P&gt;Can anybody help as to why this isn't working?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Neil&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:19:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transform-for-sourcetype-not-working/m-p/52496#M10112</guid>
      <dc:creator>NeilGingell</dc:creator>
      <dc:date>2020-09-28T10:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Transform for sourcetype not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transform-for-sourcetype-not-working/m-p/52497#M10113</link>
      <description>&lt;P&gt;Hi, I think you problem is that the MetaData variables are case sensative. &lt;/P&gt;

&lt;P&gt;Try:&lt;/P&gt;

&lt;P&gt;In props.conf&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
[source::udp:514]&lt;BR /&gt;
TRANSFORMS-firepasssoucetype = firepass_sourcetyper&lt;BR /&gt;
TRANSFORMS-firepasshostname = firepass_hostnamer&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;In transforms.conf&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
[firepass_sourcetyper] &lt;BR /&gt;
REGEX = (?:192.168.249.106) &lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype &lt;BR /&gt;
FORMAT = sourcetype::firepass_log &lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;[firepass_hostnamer] &lt;BR /&gt;
REGEX = (?:192.168.249.106) &lt;BR /&gt;
DEST_KEY = MetaData:Host &lt;BR /&gt;
FORMAT = host::rm.markerstudy.com&lt;BR /&gt;
&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:19:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transform-for-sourcetype-not-working/m-p/52497#M10113</guid>
      <dc:creator>hedgehog</dc:creator>
      <dc:date>2020-09-28T10:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Transform for sourcetype not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transform-for-sourcetype-not-working/m-p/52498#M10114</link>
      <description>&lt;P&gt;Neil,&lt;/P&gt;

&lt;P&gt;You should be able to put all of your transforms on one line...ie.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::udp::514]
TRANSFORMS-firepass_stuff = firepass_sourcetyper,firepass_hostnamer
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also keep in mind that the DEST_KEY(s) are case sensitive, so you would need:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[firepass_sourcetyper] 
REGEX = (?:192.168.249.106) 
DEST_KEY = MetaData:Sourcetype 
FORMAT = sourcetype::firepass_log

[firepass_hostnamer] 
REGEX = (?:192.168.249.106) 
DEST_KEY = MetaData:Host 
FORMAT = host::rm.markerstudy.com
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 15:11:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transform-for-sourcetype-not-working/m-p/52498#M10114</guid>
      <dc:creator>Lamar</dc:creator>
      <dc:date>2012-01-17T15:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Transform for sourcetype not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transform-for-sourcetype-not-working/m-p/52499#M10115</link>
      <description>&lt;P&gt;Both answers were spot on.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 15:25:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transform-for-sourcetype-not-working/m-p/52499#M10115</guid>
      <dc:creator>NeilGingell</dc:creator>
      <dc:date>2012-01-17T15:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Transform for sourcetype not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transform-for-sourcetype-not-working/m-p/52500#M10116</link>
      <description>&lt;P&gt;I have a similar problem. I am trying get the three IP addresses to use a new sourcetye when they send in data.&lt;/P&gt;

&lt;P&gt;Props.conf reads :&lt;/P&gt;

&lt;P&gt;[source::udp:514]&lt;BR /&gt;
TRANSFORMS-riverbed_src = riverbed_steelhead&lt;BR /&gt;
TRANSFORMS-changesourcetype = sourcetype_cisco_asa&lt;/P&gt;

&lt;P&gt;transforms.conf reads :&lt;/P&gt;

&lt;P&gt;[riverbed_steelhead]&lt;BR /&gt;
REGEX = (10.12.0.20:10.0.0.33:10.10.20.185)&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;
FORMAT = sourcetype::riverbed_steelhead&lt;/P&gt;

&lt;P&gt;[sourcetype_cisco_asa]&lt;BR /&gt;
REGEX = (10.12.254.1:10.10.20.254:10.1.250.254)&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;
FORMAT = sourcetype::cisco_asa&lt;/P&gt;

&lt;P&gt;I get the Error :&lt;/P&gt;

&lt;P&gt;Possible typo in stanza [riverbed_steelhead] in transforms.conf. Line 4&lt;BR /&gt;
Possible typo in stanza [sourcetype_cisco_asa] in transforms.conf. Line 10&lt;/P&gt;

&lt;P&gt;Can someone help me find my problem please.&lt;/P&gt;

&lt;P&gt;FYI : I also tried the format :&lt;/P&gt;

&lt;P&gt;REGEX = (10.\12.0.20|10.0.0.33|10.10.20.185)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:04:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transform-for-sourcetype-not-working/m-p/52500#M10116</guid>
      <dc:creator>vistasyslog</dc:creator>
      <dc:date>2020-09-28T13:04:59Z</dc:date>
    </item>
  </channel>
</rss>

