Getting Data In

Why doesn't my Transform sourcetype work?

manuelmosca
New Member

Hi, I'm tring to change the sourcetype of all data of a specific source

in props.conf

[source::/var/log/messages]
TRANSFORMS-change_sourcetype = syslog_sourcetype_change

in transform.conf

[syslog_sourcetype_change]
SOURCE_KEY = MetaData:Sourcetype
REGEX = .*
FORMAT = sourcetype::syslog:nix
DEST_KEY = MetaData:Sourcetype

I checked the running config via btool and the stanzas are correctly configured on my heavy forwarder but it not works, the logs remain into syslog sourcetype

Thanks in advance

Labels (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

OK, I hope it's only a typo when posting here, because the file should be called transforms.conf, not transform.conf (if you checked with btool, you should have noticed that so I'm assuming that it's only here)

Other than that it looks pretty OK.

0 Karma

manuelmosca
New Member

Yes is a typo, I forgot the s...

I'm not understanding why it not works, from splunk documentation and you comment the parameters are rights

0 Karma

PickleRick
SplunkTrust
SplunkTrust

OK. Then are you sure your files are in the right place? What is your data flow and where these settings are?

0 Karma

manuelmosca
New Member

strange but true, now the config works... I've not changed anything

 

Thanks

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Mile High Learning with Splunk University, Denver, Colorado

If Denver is known for its mile-high elevation, Splunk University is about to raise the bar on technical ...

IT Service Intelligence 5.0 Series: Your Guide to the June Launch

We are excited to announce the June release of Splunk IT Service Intelligence (ITSI) 5.0. This update ...

Agent Mode Engaged! Enchaining Agentic Operations with Splunk AI Assistant 2.0

    Are you ready to transform how your team handles complex data requests? We invite you to our upcoming ...