Splunk Enterprise

inputs.conf is there a difference

gerdhuber
Explorer

Hallo,

i only want to monitor files in the directory pkorb and not files in subdirectory pkorb/oldlogs
What is the right monitor ?

  1. [monitor:///var/log/pkorb]
  2. [monitor:///var/log/pkorb/]

or any other ?

Tags (1)
1 Solution

skoelpin
SplunkTrust
SplunkTrust

[monitor:///var/log/pkorb/*] will forward any files sitting in the pkorb directory but will NOT forward files from sub-directories in that pkorb directory

If you wanted to ingest data from a subdirectory, it would look like

[monitor:///var/log/pkorb/.../*]

View solution in original post

skoelpin
SplunkTrust
SplunkTrust

[monitor:///var/log/pkorb/*] will forward any files sitting in the pkorb directory but will NOT forward files from sub-directories in that pkorb directory

If you wanted to ingest data from a subdirectory, it would look like

[monitor:///var/log/pkorb/.../*]

gerdhuber
Explorer

thank you

0 Karma

skoelpin
SplunkTrust
SplunkTrust

Did this answer your question? If so then please accept the answer

0 Karma

gerdhuber
Explorer

yes, this is what i am looking for.

0 Karma

skoelpin
SplunkTrust
SplunkTrust

Can you please accept the answer and close it out?

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

I'd give this a shot:

[monitor:///var/log/pkorb]
recursive = false

Alternatively, this:

[monitor:///var/log/pkorb]
blacklist = oldlogs

The latter would recurse, but skip the oldlogs directory. See http://docs.splunk.com/Documentation/Splunk/6.5.2/Admin/inputsconf for specs.

Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.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 ...