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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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