<?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: Rename sourcetype not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Rename-sourcetype-not-working/m-p/562291#M100155</link>
    <description>&lt;P&gt;After working it out on a support call, here's what finally worked.&lt;/P&gt;&lt;P&gt;transforms.conf (source/dest key were incorrect)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[set_sourcetype_UPS:TrippLite]
REGEX = 192\.168\.0\.100|192\.168\.1\.100|192\.168\.2\.100
FORMAT = sourcetype::UPS:TrippLite
SOURCE_KEY = MetaData:Host
DEST_KEY = MetaData:Sourcetype&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;props.conf (no change)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[UPS:TrippLite]
DATETIME_CONFIG = 
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
category = Custom
pulldown_type = 1

[SyslogServer]
CHARSET = UTF-8
DATETIME_CONFIG = 
FIELD_DELIMITER = |
HEADER_FIELD_LINE_NUMBER = timeWritten,src_ip,facility,severity,timeGenerated,msg_tag,msg_origin,msg
INDEXED_EXTRACTIONS = csv
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = 
category = Custom
pulldown_type = 1
disabled = false
REPORT-SyslogServer1 = REPORT-SyslogServer1
TRANSFORMS-changesourcetype = set_sourcetype_UPS:AmericanPowerConversionCorp.,set_sourcetype_UPS:TrippLite&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Config should be in your own app, &lt;STRONG&gt;not &lt;/STRONG&gt;system&lt;STRONG&gt;. &lt;/STRONG&gt;May apply with an app restart, otherwise restart Splunk.&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Aug 2021 19:03:49 GMT</pubDate>
    <dc:creator>tmontney</dc:creator>
    <dc:date>2021-08-05T19:03:49Z</dc:date>
    <item>
      <title>Rename sourcetype not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rename-sourcetype-not-working/m-p/558593#M92405</link>
      <description>&lt;P&gt;I want all syslog data to come in as a general sourcetype. If it matches a transforms, it should be changed. Splunk is on 8.0.2.1.&lt;/P&gt;&lt;P&gt;Config files are modified by external script. Confirmed via GUI and&amp;nbsp;&lt;EM&gt;splunk cmd btool props list SyslogServer --debug&lt;/EM&gt; and&amp;nbsp;&lt;EM&gt;splunk cmd btool transforms list set_sourcetype_UPS:TrippLite --debug&lt;/EM&gt;&amp;nbsp;that Splunk is seeing my config.&amp;nbsp;Even after a Splunk restart, the sourcetype is still SyslogServer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[set_sourcetype_UPS:TrippLite]
REGEX = 192\.168\.0\.100|192\.168\.1\.100|192\.168\.2\.100
FORMAT = sourcetype::UPS:TrippLite
SOURCE_KEY = src_ip
DEST_KEY = MetaData:Sourcetype&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[SyslogServer]
CHARSET = UTF-8
DATETIME_CONFIG = 
FIELD_DELIMITER = |
HEADER_FIELD_LINE_NUMBER = timeWritten,src_ip,facility,severity,timeGenerated,msg_tag,msg_origin,msg
INDEXED_EXTRACTIONS = csv
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = 
category = Custom
pulldown_type = 1
disabled = false
REPORT-SyslogServer1 = REPORT-SyslogServer1
TRANSFORMS-changesourcetype = set_sourcetype_UPS:AmericanPowerConversionCorp.,set_sourcetype_UPS:TrippLite&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;inputs.conf (on the syslog server)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor://C:\ProgramData\SyslogServer]
disabled = false
# whitelist = *.csv
recursive = true
index = syslog
sourcetype = SyslogServer&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 17:43:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rename-sourcetype-not-working/m-p/558593#M92405</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2021-07-07T17:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rename sourcetype not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rename-sourcetype-not-working/m-p/558635#M92412</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/159131"&gt;@tmontney&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Probably your SOURCE_KEY might require prefix of field:, something like this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;set_sourcetype_UPS:TrippLite]
REGEX = 192\.168\.0\.100|192\.168\.1\.100|192\.168\.2\.100
FORMAT = sourcetype::UPS:TrippLite
SOURCE_KEY = field:src_ip
DEST_KEY = MetaData:Sourcetype&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 02:58:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rename-sourcetype-not-working/m-p/558635#M92412</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-07-08T02:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rename sourcetype not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rename-sourcetype-not-working/m-p/558720#M92422</link>
      <description>&lt;P&gt;Because you are tagging your data with the SysLogServer sourcetype in inputs.conf that is what will always be used. You can change the rules applied but not the name, given your current configuration.&lt;/P&gt;&lt;P&gt;You would need to use a host or source override in props.conf to accomplish what you're after.&lt;/P&gt;&lt;P&gt;See the &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/Admin/Propsconf#props.conf.example" target="_self"&gt;props.conf&lt;/A&gt; documentation for more details:&lt;/P&gt;&lt;PRE&gt;&amp;lt;spec&amp;gt; can be:
1. &amp;lt;sourcetype&amp;gt;, the source type of an event.
2. host::&amp;lt;host&amp;gt;, where &amp;lt;host&amp;gt; is the host, or host-matching pattern, for an
                 event.
3. source::&amp;lt;source&amp;gt;, where &amp;lt;source&amp;gt; is the source, or source-matching
                     pattern, for an event.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 15:50:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rename-sourcetype-not-working/m-p/558720#M92422</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2021-07-08T15:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Rename sourcetype not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rename-sourcetype-not-working/m-p/558842#M92453</link>
      <description>&lt;P&gt;Unfortunately that didn't change anything.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 14:01:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rename-sourcetype-not-working/m-p/558842#M92453</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2021-07-09T14:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Rename sourcetype not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rename-sourcetype-not-working/m-p/558843#M92454</link>
      <description>&lt;P&gt;So this would have to be done on the heavy forwarder, correct?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 14:07:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rename-sourcetype-not-working/m-p/558843#M92454</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2021-07-09T14:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Rename sourcetype not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rename-sourcetype-not-working/m-p/558859#M92456</link>
      <description>&lt;P&gt;It would be configured on the forwarder monitoring your Syslog server.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 15:34:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rename-sourcetype-not-working/m-p/558859#M92456</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2021-07-09T15:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rename sourcetype not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rename-sourcetype-not-working/m-p/558878#M92460</link>
      <description>&lt;P&gt;OK, this is what I've applied through an app and it's not working:&lt;/P&gt;&lt;P&gt;Transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[set_sourcetype_UPS:AmericanPowerConversionCorp.]
REGEX = 192\.168\.0\.101|192\.168\.1\.101|192\.168\.2\.101
FORMAT = sourcetype::UPS:AmericanPowerConversionCorp.
DEST_KEY = MetaData:Sourcetype

[set_sourcetype_UPS:TrippLite]
FORMAT = sourcetype::UPS:TrippLite
REGEX = 192\.168\.0\.100|192\.168\.1\.100|192\.168\.2\.100
DEST_KEY = MetaData:Sourcetype&lt;/LI-CODE&gt;&lt;P&gt;Props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[sourcetype::SyslogWatcher]
TRANSFORMS-changesourcetype = set_sourcetype_UPS:AmericanPowerConversionCorp.,set_sourcetype_UPS:TrippLite&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Inputs.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor://C:\ProgramData\SyslogServer\Export]
disabled = false
recursive = true
index = syslog
sourcetype = SyslogServer&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 09 Jul 2021 17:01:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rename-sourcetype-not-working/m-p/558878#M92460</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2021-07-09T17:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rename sourcetype not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rename-sourcetype-not-working/m-p/562291#M100155</link>
      <description>&lt;P&gt;After working it out on a support call, here's what finally worked.&lt;/P&gt;&lt;P&gt;transforms.conf (source/dest key were incorrect)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[set_sourcetype_UPS:TrippLite]
REGEX = 192\.168\.0\.100|192\.168\.1\.100|192\.168\.2\.100
FORMAT = sourcetype::UPS:TrippLite
SOURCE_KEY = MetaData:Host
DEST_KEY = MetaData:Sourcetype&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;props.conf (no change)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[UPS:TrippLite]
DATETIME_CONFIG = 
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
category = Custom
pulldown_type = 1

[SyslogServer]
CHARSET = UTF-8
DATETIME_CONFIG = 
FIELD_DELIMITER = |
HEADER_FIELD_LINE_NUMBER = timeWritten,src_ip,facility,severity,timeGenerated,msg_tag,msg_origin,msg
INDEXED_EXTRACTIONS = csv
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = 
category = Custom
pulldown_type = 1
disabled = false
REPORT-SyslogServer1 = REPORT-SyslogServer1
TRANSFORMS-changesourcetype = set_sourcetype_UPS:AmericanPowerConversionCorp.,set_sourcetype_UPS:TrippLite&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Config should be in your own app, &lt;STRONG&gt;not &lt;/STRONG&gt;system&lt;STRONG&gt;. &lt;/STRONG&gt;May apply with an app restart, otherwise restart Splunk.&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 19:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rename-sourcetype-not-working/m-p/562291#M100155</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2021-08-05T19:03:49Z</dc:date>
    </item>
  </channel>
</rss>

