<?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 Routing Sourcetype in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Routing-Sourcetype/m-p/744227#M118243</link>
    <description>&lt;P&gt;We are collecting the sourtype of the data we are currently receiving by changing it as follows.&lt;/P&gt;&lt;P&gt;[A_syslog]&lt;BR /&gt;TRANSFORMS-&amp;lt;class_A&amp;gt; = &amp;lt;TRANSFORMS_STANZA_NAME&amp;gt;&lt;/P&gt;&lt;P&gt;[&amp;lt;TRANSFORMS_STANZA_NAME&amp;gt;]&lt;BR /&gt;REGEX = \w+\s+\d+\s+\d([^\s+]*)\s+([^\s+]*)\s+([^\s+]*)\s+([^\s+]*)\s+([^\s+]*)\s+&lt;BR /&gt;DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;FORMAT = sourcetype::B_syslog&lt;BR /&gt;WRITE_META = true&lt;/P&gt;&lt;P&gt;I want to apply timestamp for B_syslog differently here, so I'm looking for sourcetype in props.conf but I can't see it.&lt;/P&gt;&lt;P&gt;When I change the sourcetype in the same way as above, can I get a different timestamp value only for that data?&lt;/P&gt;</description>
    <pubDate>Wed, 16 Apr 2025 01:44:59 GMT</pubDate>
    <dc:creator>blanky</dc:creator>
    <dc:date>2025-04-16T01:44:59Z</dc:date>
    <item>
      <title>Routing Sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Routing-Sourcetype/m-p/744227#M118243</link>
      <description>&lt;P&gt;We are collecting the sourtype of the data we are currently receiving by changing it as follows.&lt;/P&gt;&lt;P&gt;[A_syslog]&lt;BR /&gt;TRANSFORMS-&amp;lt;class_A&amp;gt; = &amp;lt;TRANSFORMS_STANZA_NAME&amp;gt;&lt;/P&gt;&lt;P&gt;[&amp;lt;TRANSFORMS_STANZA_NAME&amp;gt;]&lt;BR /&gt;REGEX = \w+\s+\d+\s+\d([^\s+]*)\s+([^\s+]*)\s+([^\s+]*)\s+([^\s+]*)\s+([^\s+]*)\s+&lt;BR /&gt;DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;FORMAT = sourcetype::B_syslog&lt;BR /&gt;WRITE_META = true&lt;/P&gt;&lt;P&gt;I want to apply timestamp for B_syslog differently here, so I'm looking for sourcetype in props.conf but I can't see it.&lt;/P&gt;&lt;P&gt;When I change the sourcetype in the same way as above, can I get a different timestamp value only for that data?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 01:44:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Routing-Sourcetype/m-p/744227#M118243</guid>
      <dc:creator>blanky</dc:creator>
      <dc:date>2025-04-16T01:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Routing Sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Routing-Sourcetype/m-p/744251#M118249</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/275548"&gt;@blanky&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I replied to your previous post about this yesterday here&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/change-timestamp-for-extra-data/m-p/744204#M118235" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/change-timestamp-for-extra-data/m-p/744204#M118235&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Were you able to test this approach, or is this not what you are looking for?&lt;/P&gt;&lt;P&gt;Please could you include some sample data as examples of before/after so we can see what you are looking to achieve if the suggested solution is not appropriate?&lt;/P&gt;&lt;P&gt;You could try something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;== transforms.conf ==
[yourSourcetype]
TRANSFORM-overwriteTime = overwriteTime

== props.conf ==
[overwriteTime]
INGEST_EVAL = _time=coalesce(strptime(substr(_raw,0,25),"%Y-%m-%d %H:%M:%S"),_time)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This would try and extract the time using the format provided out of the first 25 characters of the _raw event (adjust accordingly) and if that fails it falls back on _time previously determined).&amp;nbsp;&lt;BR /&gt;This allows you to overwrite the _time extraction for your other data. You can develop this further depending on the various events coming in if necessary.&lt;/P&gt;&lt;P&gt;For more context on this check out Richard Morgan's fantastic props/transforms examples at&amp;nbsp;&lt;A href="https://github.com/silkyrich/ingest_eval_examples/blob/master/default/transforms.conf#L9" target="_blank" rel="noopener"&gt;https://github.com/silkyrich/ingest_eval_examples/blob/master/default/transforms.conf#L9&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For time format variables see&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Commontimeformatvariables" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Commontimeformatvariables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 06:38:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Routing-Sourcetype/m-p/744251#M118249</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-04-16T06:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Routing Sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Routing-Sourcetype/m-p/744309#M118261</link>
      <description>&lt;P&gt;You need to remember that setting a new sourcetype value for your event, don’t start to travel ingesting pipeline again! So don’t expect that setting sourcetype as B then it apply those definitions to that event. No it just go forward with sourcetype A settings.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 17:02:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Routing-Sourcetype/m-p/744309#M118261</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2025-04-16T17:02:18Z</dc:date>
    </item>
  </channel>
</rss>

