Getting Data In

How Splunk understands inputs stanza

zliu
Splunk Employee
Splunk Employee

In my inputs.conf, I have:

[monitor://cust/http*/web-*/var/log/modsec-audit.log*] 

[monitor://cust/http*/web-*/var/log/*access.log*] 

[monitor://cust/jboss-as*/server/app-*/log/server.log] 

Why did I get these errors:

08-19-2011 01:02:15.148 +0000 ERROR TailingProcessor - Unable to resolve path 
for symlink: /cust/soe/usr.bak.2010-10-19T051247/man/it/man1/view.1. 
08-19-2011 01:02:15.149 +0000 ERROR TailingProcessor - Unable to resolve path 
for symlink: /cust/soe/usr.bak.2010-10-19T051247/man/it/man1/vim.1. 
08-19-2011 01:02:15.151 +0000 ERROR TailingProcessor - Unable to resolve path 
for symlink: /cust/soe/usr.bak.2010-10-19T051247/man/it/man1/vimdiff.1. 
08-19-2011 01:02:15.153 +0000 ERROR TailingProcessor - Unable to resolve path 
for symlink: /cust/soe/usr.bak.2010-10-19T051247/man/it/man1/vimtutor.1. 
08-19-2011 01:02:15.155 +0000 ERROR TailingProcessor - Unable to resolve path 
for symlink: /cust/soe/usr.bak.2010-10-19T051247/man/it/man1/xxd.1. 

I didn't ask Splunk to monitor /cust/soe/ directories.

Tags (2)
1 Solution

zliu
Splunk Employee
Splunk Employee

The tailing processor is going to list ALL files in ALL directories located in /cust. This is how Splunk understand the stanza, for example, /cust/http*/web/file.log is equal to find /cust | grep "/cust/http*/web/file.log". If there are not that many files, you can have these stanza instead, in this example, /cust/http1/web/ and /cust/http2/web/

It should explain why Splunk is stating so many files that you don't need it to.

View solution in original post

zliu
Splunk Employee
Splunk Employee

The tailing processor is going to list ALL files in ALL directories located in /cust. This is how Splunk understand the stanza, for example, /cust/http*/web/file.log is equal to find /cust | grep "/cust/http*/web/file.log". If there are not that many files, you can have these stanza instead, in this example, /cust/http1/web/ and /cust/http2/web/

It should explain why Splunk is stating so many files that you don't need it to.

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