Getting Data In

Why is my monitor with a whitelist not picking up files?

a212830
Champion

Hi,

I have a monitor and a whitelist that aren't picking up my required files, and I'm not sure why.

Here's my inputs:

[monitor:///xt*q*/log/app/XTRAC/*/XTRA*1/xen/]
index = Xtrac_ceops_qa_wf_logs
disabled = false
followtail = 0
sourcetype = xtrac_xenlogs
whitelist = \*.log$

Here's the path to the files: /xt113qdal0/log/app/XTRAC/6.9.1.1/XTRAC6.9.1.1_ClusterMbr1/xen

I only want the "Mbr1" directory, hence the wildcard, but nothing in there is getting picked up.

0 Karma
1 Solution

MuS
SplunkTrust
SplunkTrust

Hi a212830,

your whitelist regex is not matching, because this regex \*.log$ will match in a list of three value the last:

file.log <- no match
*file.log <- no match
*.log  <- this will match

This is because the regex \* will match a literal asterisk / star / wildcard and I don't think you wanted that?

Hope this helps ...

cheers, MuS

View solution in original post

MuS
SplunkTrust
SplunkTrust

Hi a212830,

your whitelist regex is not matching, because this regex \*.log$ will match in a list of three value the last:

file.log <- no match
*file.log <- no match
*.log  <- this will match

This is because the regex \* will match a literal asterisk / star / wildcard and I don't think you wanted that?

Hope this helps ...

cheers, MuS

a212830
Champion

Duh. Thanks!

0 Karma
Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...