Getting Data In

Problems with setting sourcetype through transformations.conf

quixand
Path Finder

This is driving me mad - have gone through the documentation and responses to queries in here but still can't get sourcetype overrided by using a transform. I'm missing something, I'm guessing obvious, but not obvious to me!

inputs.conf

[monitor:///Users/admin/Documents/splunkDataToIndex/automation_logs/]  
disabled = 0  
followTail = 0  
index = automationlogs  

props.conf

[source::/Users/admin/Documents/splunkDataToIndex/automation_logs/...]  
TRANSFORMS-set_sourcetype_for_scriptlogs = set_sourcetype_for_scriptlogs  
priority = 10  

transforms.conf

[set_sourcetype_for_scriptlogs]  
SOURCE_KEY = MetaData:Source  
DEST_KEY = MetaData:Sourcetype  
REGEX = .*/(.*?)\..*  
FORMAT = Sourcetype::$1  
0 Karma

carmackd
Communicator

Are you trying to extract the sourcetype out of the source field value?

i.e. ---> /Users/admin/Documents/splunkDataToIndex/automation_logs/

If so, your regex isnt matching anything.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...