Getting Data In

Stanzas for log file paths in inputs.conf for multiple hosts that don't apply to all hosts

timm747747
Path Finder

I have 6 different log file paths with many log file names across ~20 hosts in 6 different environments. All log paths don't apply to all hosts, but is it ok to have one generic inputs.conf containing the list of all of the paths and apply that one inputs to the 20 hosts? I wasn't sure if this would tie up resources with the agent or not if it kept looking for a path/file that didn't exist.

Thanks!

Tim

0 Karma
1 Solution

maciep
Champion

I don't see why not. As long as you limit/eliminate the number recursive wildcards in the file paths, I think it should be fine.

However, you may want to break them up into different TAs if it makes sense. If there's little or no overlap between type of log and the host, then you can probably split them up. It might make management a bit easier, especially as your environment grows. You definitely don't want to manage all of your files in one big inputs.conf just because it was easier to set it up that way.

View solution in original post

0 Karma

maciep
Champion

I don't see why not. As long as you limit/eliminate the number recursive wildcards in the file paths, I think it should be fine.

However, you may want to break them up into different TAs if it makes sense. If there's little or no overlap between type of log and the host, then you can probably split them up. It might make management a bit easier, especially as your environment grows. You definitely don't want to manage all of your files in one big inputs.conf just because it was easier to set it up that way.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...