<?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: Forcing sourcetype on Heavy Forwarder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/752027#M119422</link>
    <description>&lt;P&gt;For that udp://514, I set connection_host = ip&lt;/P&gt;</description>
    <pubDate>Fri, 22 Aug 2025 06:57:21 GMT</pubDate>
    <dc:creator>Na_Kang_Lim</dc:creator>
    <dc:date>2025-08-22T06:57:21Z</dc:date>
    <item>
      <title>Forcing sourcetype on Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751764#M119358</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;So I have a HF instance, which receive multiple types of syslog on many different ports. Ideally, you would have a different port for each sourcetype, however, due to misconfigurations on some servers, we ended up having multiple types of syslog received on the same udp://514 port.&lt;/P&gt;&lt;P&gt;Since changing port require reconfig and we have to make new network change request, we figured that we could change the sourcetype base on regex to minimize work.&lt;/P&gt;&lt;P&gt;I look into some of the app that actually do this kind of changing sourcetype thing, and I found cisco app actually have this config so I mimic it.&lt;/P&gt;&lt;P&gt;So here are my configurations on HF:&lt;/P&gt;&lt;P&gt;$SPLUNK_HOME/etc/system/local/inputs.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[udp://514]
acceptFrom = &amp;lt;many_hosts&amp;gt;
index = my_syslog
sourcetype = syslog&lt;/LI-CODE&gt;&lt;P&gt;$SPLUNK_HOME/etc/system/local/transforms.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[force_sourcetype_for_peplink]
DEST_KEY = MetaData:Sourcetype
REGEX = ^(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+(?:0?[1-9]|[12]\d|3[01])\s+(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d\s+(?:pepline_host1|pepline_host2|pepline_host3)\s+(?=.*[A-Z][A-Za-z]+:\s).*
FORMAT = sourcetype::peplink&lt;/LI-CODE&gt;&lt;P&gt;$SPLUNK_HOME/etc/system/local/props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[syslog]
TRANSFORMS-force_sourcetype_for_peplink = force_sourcetype_for_peplink&lt;/LI-CODE&gt;&lt;P&gt;After HF, we have our data route into an Indexer cluster.&lt;/P&gt;&lt;P&gt;However, upon restart the HF, I saw nothing changed. The logs from the peplink_host* were still having its sourcetype as syslog.&lt;/P&gt;&lt;P&gt;So what could be the reason here?&lt;/P&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>Sun, 17 Aug 2025 11:38:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751764#M119358</guid>
      <dc:creator>Na_Kang_Lim</dc:creator>
      <dc:date>2025-08-17T11:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing sourcetype on Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751765#M119359</link>
      <description>&lt;P&gt;Oh I forgot to add this,&lt;/P&gt;&lt;P&gt;But to check if the regex is working properly, what I did what use the regex command&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_syslog host=peplink_host*
| regex _raw="&amp;lt;above_regex&amp;gt;"
| stats count by host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;And I could see that the regex was working just fine&lt;/P&gt;</description>
      <pubDate>Sun, 17 Aug 2025 11:42:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751765#M119359</guid>
      <dc:creator>Na_Kang_Lim</dc:creator>
      <dc:date>2025-08-17T11:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing sourcetype on Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751766#M119360</link>
      <description>&lt;P&gt;Out of interest&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308546"&gt;@Na_Kang_Lim&lt;/a&gt;&amp;nbsp; - what happens if you dont specify the sourcetype in inputs.conf and then use:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source::udp:514]
TRANSFORMS-force_sourcetype_for_peplink = force_sourcetype_for_peplink&lt;/LI-CODE&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>Sun, 17 Aug 2025 12:03:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751766#M119360</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-08-17T12:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing sourcetype on Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751767#M119361</link>
      <description>&lt;P&gt;I tried as you suggested but it still did not work.&lt;/P&gt;&lt;P&gt;Any suggestions for troubleshooting is appreciated.&lt;/P&gt;&lt;P&gt;Since switching to a source stanza did not work either, maybe there is something wrong with my HF configurations in general?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Aug 2025 13:47:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751767#M119361</guid>
      <dc:creator>Na_Kang_Lim</dc:creator>
      <dc:date>2025-08-17T13:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing sourcetype on Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751774#M119362</link>
      <description>&lt;PRE&gt;WRITE_META = &amp;lt;boolean&amp;gt;
* Whether or not the Splunk platform writes REGEX values to the _meta 'DEST_KEY'.
* When the Splunk platform writes REGEX values to metadata, those REGEX values
  become index-time field extractions.
* This setting is required for all index-time field extractions except for
  those where "DEST_KEY = _meta." See the description of the 'DEST_KEY' setting
  for more information.
* Where applicable, set "WRITE_META = true" instead of setting "DEST_KEY = 
  _meta".
* A value of "true" means that the Splunk platform writes REGEX values to 
  the _meta DEST_KEY. In other words, the platform writes REGEX values to
  metadata.  
* A value of "false" means that the Splunk platform does not write 
  REGEX values to metadata.
* Default: false&lt;/PRE&gt;</description>
      <pubDate>Sun, 17 Aug 2025 19:06:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751774#M119362</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-08-17T19:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing sourcetype on Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751807#M119371</link>
      <description>&lt;P&gt;Added that but nothing changed. Since I specified DEST_KEY and the field I am writing to is sourcetype (which already existed), I also don't think WRITE_META is needed.&lt;/P&gt;&lt;P&gt;I think the problem is with my HF. What settings do I have to check to make sure that my HF actually applying the props and transforms.conf?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 15:45:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751807#M119371</guid>
      <dc:creator>Na_Kang_Lim</dc:creator>
      <dc:date>2025-08-18T15:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing sourcetype on Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751817#M119372</link>
      <description>&lt;P&gt;As I understand, you're receiving data directly on that HF's network port, right? So your props should work if only they are properly specified and match the data.&lt;/P&gt;&lt;P&gt;So either your stanza doesn't match the sourcetype (which seems unlikely), something else is overwriting your transform definition (again - unlikely because you have pretty unique transform class name), or your regex is not matching the data.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 19:42:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751817#M119372</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-08-18T19:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing sourcetype on Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751836#M119373</link>
      <description>&lt;P&gt;Maybe the problem is with my Indexer? Since my data is forwarding from HF to Indexer and is indexed there.&lt;/P&gt;&lt;P&gt;I have this question in mind, what would happen if I have the same app on both my HF and Indexer? Does that mean the data is parsed twice?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 09:04:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751836#M119373</guid>
      <dc:creator>Na_Kang_Lim</dc:creator>
      <dc:date>2025-08-19T09:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing sourcetype on Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751846#M119375</link>
      <description>&lt;P&gt;Doubt it. The events are generally parsed on the first "heavy" component in event's path. Since you're receiving your data on a HF, it's getting parsed there and is sent to indexers as parsed data.&lt;/P&gt;&lt;P&gt;The parsed data is not parsed anymore unless you use rulesets. But normal transforms are not applied on parsed data.&lt;/P&gt;&lt;P&gt;Anyway:&lt;/P&gt;&lt;P&gt;1) I'd first check if the transform is called at all - change REGEX to just a single dot so that it matches any event and see if your sourcetype gets overwritten for all events.&lt;/P&gt;&lt;P&gt;2) Seems strange that you're receiving with HF on a 514 port. I don't recall Splunk getting CAP_NET_BIND_SERVICE capability. Are you running splunkd as root?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 11:11:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751846#M119375</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-08-19T11:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing sourcetype on Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751852#M119377</link>
      <description>&lt;P&gt;I believe your use case is related to the following Docs, it has detailed instructions how to override the sourcetypes. This should be configured on Heavy Forwarder in your case. It requires a splunkd restart on HF and the change applies to new events only after restart.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.splunk.com/en/splunk-enterprise/get-started/get-data-in/9.4/configure-source-types/override-source-types-on-a-per-event-basis" target="_blank" rel="noopener"&gt;https://help.splunk.com/en/splunk-enterprise/get-started/get-data-in/9.4/configure-source-types/override-source-types-on-a-per-event-basis&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 12:07:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751852#M119377</guid>
      <dc:creator>VLaw</dc:creator>
      <dc:date>2025-08-19T12:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing sourcetype on Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751854#M119378</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308546"&gt;@Na_Kang_Lim&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please confirm, is it your HF which is listening on port 514 to receive this data? Or is it arriving from another host?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 12:03:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/751854#M119378</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-08-19T12:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing sourcetype on Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/752012#M119416</link>
      <description>&lt;P&gt;Now I believe the problem is on my HF, which maybe I somehow configured it wrong.&lt;/P&gt;&lt;P&gt;1, I have created another stanza in props.conf with [host::&amp;lt;peplink_host1_ip&amp;gt;] with a single TRANSFORMS, which I created almost the same as the previous, except for the regex, which is now only a single dot (.). So this should apply to all the logs from that host, but still, nothing changes.&lt;/P&gt;&lt;P&gt;2, Yeah, I know it is not recommended, but I am running splunk as root&lt;/P&gt;&lt;P&gt;So can you give me some commands or docs, on how to check if my HF is configured correctly? Like how to check my license? Because if what I am thinking is right, there must be license and configurations so that the instance do the transforms since it is was Splunk charged you for? I will be charged for parsing and indexing, not forwarding, right? Now I feel like it is working just as a "big" forwarder.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 02:05:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/752012#M119416</guid>
      <dc:creator>Na_Kang_Lim</dc:creator>
      <dc:date>2025-08-22T02:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing sourcetype on Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/752013#M119417</link>
      <description>&lt;P&gt;It is exactly what I was doing, but it did not work in my case.&lt;/P&gt;&lt;P&gt;So I think there is something wrong with how I set up the HF, like it does not 'know' that it should do the parsing also, now I feel like it is only a really big forwarder&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 02:07:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/752013#M119417</guid>
      <dc:creator>Na_Kang_Lim</dc:creator>
      <dc:date>2025-08-22T02:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing sourcetype on Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/752015#M119418</link>
      <description>&lt;P&gt;Yeah it is definitely my HF listening on port udp:514.&lt;/P&gt;&lt;P&gt;When I run search on the data, it said the source is udp:514, that port is not opened on our Indexers, and the host is the IP of the device. Moreover, like I mention before, the network is quite strict so it just cannot randomly send log to any other host. If it weren't strict, we would have just changed the forwarding log config on the device to a different port and resolve the issue by specifying the sourcetype for that port stanza.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 03:41:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/752015#M119418</guid>
      <dc:creator>Na_Kang_Lim</dc:creator>
      <dc:date>2025-08-22T03:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing sourcetype on Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/752025#M119421</link>
      <description>&lt;P&gt;Wait.&lt;/P&gt;&lt;P&gt;What does your input say? What is the connection_host set to?&lt;/P&gt;&lt;P&gt;Remember that if you're using the built-in syslog sourcetype, it calls a transform which overrides the host field so what you're seeing in the resulting indexed event might not be what is set at the beginning of the ingestion pipeline (when Splunk decides which props/transforms to apply).&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 06:38:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/752025#M119421</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-08-22T06:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing sourcetype on Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/752027#M119422</link>
      <description>&lt;P&gt;For that udp://514, I set connection_host = ip&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 06:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/752027#M119422</guid>
      <dc:creator>Na_Kang_Lim</dc:creator>
      <dc:date>2025-08-22T06:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing sourcetype on Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/753993#M119689</link>
      <description>&lt;P&gt;It turned out the problem was due to a misconfiguration in the sending log pipeline, the log was not sent through a Heavy Forwarder but directly into the Indexer.&lt;/P&gt;&lt;P&gt;And it that case, of course the transforming configurations have to be on the Indexer itself&lt;/P&gt;</description>
      <pubDate>Mon, 06 Oct 2025 13:56:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/753993#M119689</guid>
      <dc:creator>Na_Kang_Lim</dc:creator>
      <dc:date>2025-10-06T13:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing sourcetype on Heavy Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/753995#M119691</link>
      <description>On additional comment.&lt;BR /&gt;Don't use $SPLUNK_HOME/etc/system/local directory for (almost) any configuration. You cannot change those any other way than updating this manually (or your external configuration tool).&lt;BR /&gt;It's always better to create a separate/own Splunk app for those and then install those into HF/UF. In that way you can keep better control for those.</description>
      <pubDate>Mon, 06 Oct 2025 14:16:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forcing-sourcetype-on-Heavy-Forwarder/m-p/753995#M119691</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2025-10-06T14:16:44Z</dc:date>
    </item>
  </channel>
</rss>

