Getting Data In

How to develop a regular expression that will blacklist my log paths in inputs.conf?

ppanchal
Path Finder

Below is my monitoring path

[monitor:///wasapps/WAS85/logs/restconnect_alppapp102was85Node01]

I want to blacklist the below files

/wasapps/WAS85/logs/restconnect_alppapp102was85Node01/restConnectApp.log
/wasapps/WAS85/logs/restconnect_alppapp102was85Node01/restConnectPerformance.log

I have tried the below regex, but none of them worked.

[monitor:///wasapps/WAS85/logs/restconnect_alppapp102was85Node01]
blacklist = restConnect*\.(log)$
blacklist = restConnect[App|Performance]\.(log)$

Can someone please help?

0 Karma

ddrillic
Ultra Champion

Some cheerful examples in the documentation at Whitelist- or blacklist-specific incoming data

It shows -

![alt text][2]

0 Karma

ckunath
Communicator
blacklist = restConnect.*\.log$

This should blacklist every file that starts with "restConnect" and ends with .log

0 Karma

ppanchal
Path Finder

I guess this did not work.
Any other solution?

0 Karma

ckunath
Communicator

Oh, my bad. Try

blacklist = .*restConnect.*\.log$
0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...