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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...