<?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: Issue with sourcetype extraction in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760004#M120406</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/70277"&gt;@uagraw01&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;how do you assign the "&lt;SPAN&gt;wmc_events" sourcetype (that you're using in your props.conf) to your data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;try to use [source::tcp:8097]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2026 07:11:19 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2026-04-08T07:11:19Z</dc:date>
    <item>
      <title>Issue with sourcetype extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760001#M120403</link>
      <description>&lt;P&gt;Hello Splunkers1!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am encountering an issue with field extraction related to the &lt;CODE&gt;sourcetype&lt;/CODE&gt;. My requirement is to map all values from the &lt;CODE&gt;EVENTTYPEKEY&lt;/CODE&gt; field into the &lt;CODE&gt;sourcetype&lt;/CODE&gt;.&lt;/P&gt;&lt;P&gt;At search time, using the SPL query&lt;BR /&gt;&lt;CODE&gt;| eval sourcetype=EVENTTYPEKEY&lt;/CODE&gt;&lt;BR /&gt;works correctly, and the values align as expected.&lt;/P&gt;&lt;P&gt;However, I want to implement this at the index-time level. To achieve this, I have configured &lt;CODE&gt;props.conf&lt;/CODE&gt; and &lt;CODE&gt;transforms.conf&lt;/CODE&gt;, but the values are not being populated in the &lt;CODE&gt;sourcetype&lt;/CODE&gt; field.&lt;/P&gt;&lt;P&gt;Could you please advise where the configuration might be incorrect or what needs to be adjusted to make this work at index time?&lt;/P&gt;&lt;P&gt;============================================&lt;BR /&gt;&lt;BR /&gt;Below are settings&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;transforms.conf:&lt;BR /&gt;[rewrite_sourcetype_wmc]&lt;BR /&gt;REGEX= EVENTTYPEKEY="(\w+)"&lt;BR /&gt;REGEX= TYPE="(\w+)"&lt;BR /&gt;FORMAT=sourcetype::$1&lt;BR /&gt;DEST_KEY=MetaData:Sourcetype&lt;BR /&gt;&lt;BR /&gt;props.conf :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;[wmc_events]&lt;BR /&gt;CHARSET=AUTO&lt;BR /&gt;KV_MODE=AUTO&lt;BR /&gt;SHOULD_LINEMERGE=false&lt;BR /&gt;category=Vanderlande&lt;BR /&gt;description= WMC events received from the Oracle database, formatted as key-value pairs&lt;BR /&gt;pulldown_type=true&lt;BR /&gt;TIME_PREFIX = ^TIMESTAMP=&lt;BR /&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%6NZ&lt;BR /&gt;TZ = UTC&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;TRUNCATE = 10000000&lt;BR /&gt;#MAX_EVENTS = 100000&lt;BR /&gt;ANNOTATE_PUNCT = false&lt;BR /&gt;TRANSFORMS-assignSourcetype = rewrite_sourcetype_wmc&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[source::tcp:8097]&lt;BR /&gt;KV_MODE = AUTO&lt;BR /&gt;LINE_BREAKER = (\003)&lt;/P&gt;&lt;P&gt;[wmc_log]&lt;BR /&gt;REPORT-wmc_logs = REPORT-wmc_logs&lt;BR /&gt;SHOULD_LINEMERGE = true&lt;BR /&gt;MUST_BREAK_AFTER = (\003)&lt;BR /&gt;CHARSET = AUTO&lt;BR /&gt;NO_BINARY_CHECK = false&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 05:26:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760001#M120403</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2026-04-08T05:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sourcetype extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760002#M120404</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/70277"&gt;@uagraw01&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;where did you located the props and transforms?&lt;/P&gt;&lt;P&gt;thy must be located on the first Full Splunk Instance (HF ot IDX, not UF) your data pass through, otherwise it doesn't run.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 07:00:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760002#M120404</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2026-04-08T07:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sourcetype extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760003#M120405</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&amp;nbsp; I am using a standalone server that acts as an indexer and search head both and props &amp;amp; transforms are both located on the same server.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 07:06:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760003#M120405</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2026-04-08T07:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sourcetype extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760004#M120406</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/70277"&gt;@uagraw01&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;how do you assign the "&lt;SPAN&gt;wmc_events" sourcetype (that you're using in your props.conf) to your data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;try to use [source::tcp:8097]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 07:11:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760004#M120406</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2026-04-08T07:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sourcetype extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760005#M120407</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;, Do you mean I need to use below setting in props.conf ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[source::tcp:8097]&lt;BR /&gt;TRANSFORMS-assignSourcetype = rewrite_sourcetype_wmc&lt;BR /&gt;KV_MODE = AUTO&lt;BR /&gt;LINE_BREAKER = (\003)&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 07:14:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760005#M120407</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2026-04-08T07:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sourcetype extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760006#M120408</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/70277"&gt;@uagraw01&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;yes, try it: in your props.conf the&amp;nbsp;&lt;SPAN&gt;TRANSFORMS-assignSourcetype = rewrite_sourcetype_wmc is associates with the&amp;nbsp;"wmc_events" sourcetype that it isn't associated with your data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 07:20:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760006#M120408</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2026-04-08T07:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sourcetype extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760007#M120409</link>
      <description>&lt;P&gt;OK. I see some questionable things here.&lt;/P&gt;&lt;P&gt;1. You can't use two REGEX entries in one transform stanza. One will overwrite the other (check with btool your effective configuration).&lt;/P&gt;&lt;P&gt;2. I see you have different SHOULD_LINEMERGE settings for different wmc_* sourcetype. I assume at least one of those is supposed to be that "recast" one. It won't work this way. Line breaking and merging occurs way before any transforms are fired. See the Masa diagrams&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Diagrams-of-how-indexing-works-in-the-Splunk-platform-the-Masa/m-p/590774" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/Diagrams-of-how-indexing-works-in-the-Splunk-platform-the-Masa/m-p/590774&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3. Have you assigned the "basic" wmc_events sourcetype on the input level.?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 07:52:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760007#M120409</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2026-04-08T07:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sourcetype extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760022#M120417</link>
      <description>&lt;P&gt;As already said, you cannot use two REGEX in one stanza.&lt;/P&gt;&lt;P&gt;If you have this kind of need you probably need do use INGEST_EVAL where you can use several SPL eval and based on those set then sourcetype=xyz from previous phases.&lt;/P&gt;&lt;P&gt;Can you give some example events to us?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 14:24:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760022#M120417</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2026-04-08T14:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sourcetype extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760028#M120421</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;Below are some sample logs. I want all the values under the field EVENTTYPEKEY to come to sourcetype as well.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;EM&gt;TIMESTAMP="2026-04-02T08:04:18.076000Z",SOURCE="Login.loginOperator",IDEVENT="74098806",EVENTTYPEKEY="OPERATOR_LOGIN",INSTANCEID="56040561",OPERATORID="1",OPERATORLOGIN="1"&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;EM&gt;TIMESTAMP="2026-04-02T08:04:13.588000Z",SOURCE="TSUManager.createTsu",IDEVENT="74098786",EVENTTYPEKEY="TSU_CREATED",FULLYQUALIFIEDNAME="RCV/RcvInduct/EntryA4",INSTANCEID="130011301",LOCATIONID="10000000922",LOCATIONTEXT="RCV/RcvInduct/EntryA4",OPERATOR="1",OPERATORID="1",TASKID="",TSUID="10660306773",TSULABEL="111000000001938900",TSUROLE="SINGLESKU",TSUTYPE="10000281844",TSUTYPELABEL="CHEP"&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;EM&gt;TIMESTAMP="2026-04-02T08:04:13.636000Z",SOURCE="MfPalletInduct_x.handleMessage",IDEVENT="74098789",EVENTTYPEKEY="PALLET_INDUCT",CONTAINERLABEL="",INSTANCEID="130011301",OPERATOR="1",OPERATORID="1",SCANMODE="AUTO",TSULABEL="111000000001938900",TSUROLE="PRODUCT",WORKSTATION_LOCATION="RCV/RcvInduct/EntryA4"&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;EVENTTYPEKEY="OPERATOR_LOGIN"&lt;BR /&gt;EVENTTYPEKEY="TSU_CREATED"&lt;BR /&gt;EVENTTYPEKEY="PALLET_INDUCT"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 14:37:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760028#M120421</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2026-04-08T14:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with sourcetype extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760029#M120422</link>
      <description>&lt;P&gt;This should work when you update your transforms.conf to&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[rewrite_sourcetype_wmc]
REGEX= EVENTTYPEKEY="([^\"]+)"
FORMAT=sourcetype::$1
DEST_KEY=MetaData:Sourcetype&lt;/LI-CODE&gt;&lt;P&gt;Be sure that this is in 1st full splunk instance from source!&lt;/P&gt;&lt;P&gt;In props.conf you should have&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[wmc_events]
...
TIME_PREFIX = ^TIMESTAMP="
...
TRANSFORMS-assignSourcetype = rewrite_sourcetype_wmc&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Are you sure that you are needing CHARSET and TZ here?&lt;/P&gt;&lt;P&gt;Those are usually needed on source node where your inputs.conf &amp;nbsp;is.&lt;BR /&gt;Also NO_BINARY_CHECK should be in source system.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 14:50:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issue-with-sourcetype-extraction/m-p/760029#M120422</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2026-04-08T14:50:44Z</dc:date>
    </item>
  </channel>
</rss>

