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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...