Getting Data In

How to assign all sources the same sourcetype?

sgarvin55
Splunk Employee
Splunk Employee

I want to assign ALL sources the sourcetype my_logs_555, and then use the Priority parameter in props.conf to apply a different sourcetype to a few sources here and there.

What would the stanza be to assign all sources to the sourcetype my_logs_555?

Something like this?
[source::...]
sourcetype = my_logs_555

Would this stanza also work for UNC paths?

Tags (1)

MarioM
Motivator

yes source will work even with regex like this:

[source::....(?<!tar.)(gz|tgz)]
sourcetype=a_sourcetype
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...