All Apps and Add-ons

Splunk Stream change sourcetype

edwardrose
Contributor

I created a stream for netflow and the sourcetype comes in as stream:netflow. Is there a way to change the sourcetype prior to it being ingested into splunk

thanks
ed

0 Karma

adonio
Ultra Champion

you can modify it like any other sourcetype .... make sure that you address all the right stanzas with the new sourcetype name so your field extractions and knowledge object will work

0 Karma

edwardrose
Contributor

Hello,

I am assuming that you are referring to using props and transforms to change the sourcetype. Am I wrong?

So I would use the current sourcetype in props.conf
[stream:netflow]
TRANSFORMS-set_sourcetype = set_netscaler

Then I would setup the transforms.conf
[set_netscaler]
FORMAT = sourcetype::citrix_netscaler_netflow
DEST_KEY = MetaData:Source

But that would change the sourcetype for all data that comes in via the original sourcetype stream:netflow.

Thanks
ed

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...