Getting Data In

Need help with whitelist regex in inputs.conf

michaelteck
Explorer

Hello everyone, 

I'm working to set up many Universal Forwarder to monitor a MFT logs. 

MFT store all it's logs in the directory /data/mft/efs/logs/ .

In this directory, there are files and subdirectories that we do not want to monitor. The log files that we want to monitor are in subdirectories and these subdirectories rotate every day.

When MFT launches a flow for today, for exemple, it creates a sub-directory: /data/mft/efs/logs/2024-07-02/mft_flow.log 

I created an inputs.conf file : 

 

[default]
_meta=env::int-test

[monitor:///data/mft/efs/logs/*]
disabled=false
sourcetype=log4j
host=test-aws-lambda-splunk-code
followTail=0
whitelist=\d{4}-\d{2}-\d{2}\/.*\.log
index=test_filtre

 

 But I don’t get anything in my Splunk Enterprise.

Anyone can help me ? 

Labels (3)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @michaelteck ,

did you tried:

[monitor:///data/mft/efs/logs/*/mft_flow.log]
disabled=false
sourcetype=log4j
host=test-aws-lambda-splunk-code
followTail=0
index=test_filtre

?

Ciao.

Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @michaelteck ,

did you tried:

[monitor:///data/mft/efs/logs/*/mft_flow.log]
disabled=false
sourcetype=log4j
host=test-aws-lambda-splunk-code
followTail=0
index=test_filtre

?

Ciao.

Giuseppe

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @michaelteck ,

good for you, see next time!

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated 😉

0 Karma
Get Updates on the Splunk Community!

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

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...