Getting Data In

Specifying a catch-all in inputs.conf?

mickeander
Loves-to-Learn

Hi,

 

If i have a directory structure like this:

/logs/server1

/logs/server2

/logs/server3

 

And i have set specific inputs.conf stanzas for server 1,2 and 3, but i also want to catch everything that ends up in /logs/, could i set the server1-3 stanzas and have a catch all stanza, or will that catch all stanza collect the logs from server 1-3 again?

 

 

 

 

[monitor:///logs/server1]
host_segment = 2
index = foo
sourcetype = aaa

[monitor:///logs/server3]
host_segment = 2
index = bar
sourcetype = bbb

[monitor:///logs/server3]
host_segment = 2
index = baz
sourcetype = ccc

[monitor:///logs]
index = unknown

 

 

 

 

Labels (1)
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...