Getting Data In

What is the best way to edit inputs.conf to pull logs from multiple paths into one sourcetype?

Splunkster45
Communicator

I have two sets of logs that I want to be able to ingest into splunk

/opt/Model15/log/*
/opt/Model17/log/*

What's the best way to edit the props.conf file to pull both of these logs (under one sourcetype)?

I'm thinking that the whitelist option is the best way to do this:

[monitor:///opt/Model*/log/*]
index=the_index
sourcetype=model
whitelist=/opt/Model[0-9][0-9]/log/*

Does this look right to y'all or is there a better way to do this?

Thanks!

1 Solution

ngatchasandra
Builder

Hi Splunkster45,

Try with :

[monitor:///opt/Model*/log/*]
 index=the_index
 sourcetype=model
 whitelist= \/opt\/Model\d+\/log\/\*\]

View solution in original post

ngatchasandra
Builder

Hi Splunkster45,

Try with :

[monitor:///opt/Model*/log/*]
 index=the_index
 sourcetype=model
 whitelist= \/opt\/Model\d+\/log\/\*\]
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...