Getting Data In

Blacklist regular expression not working

AnmolKohli
Explorer

I want to blacklist below 2 files:

op_fe-run_autostat*.log
op_fe-proteus_prod_archive*.log

  • here can be any number/characters

I used below regex but the same is not working. Can someone please help.

blacklist = .(run_autostat|proteus_prod_archive).log$

Tags (1)
0 Karma

amaynardclarku
Engager

inputs.conf?

You should include one of these keys: http://docs.splunk.com/Documentation/Splunk/6.4.2/Data/MonitorWindowseventlogdata#Create_advanced_fi...

so yours might be something like:
blacklist1 = Message=%.(run_autostat|proteus_prod_archive)..log%

depending on where the string is in the message field, in might also be
blacklist1 = Message=%^.(run_autostat|proteus_prod_archive)..log$%

0 Karma

harsmarvania57
Ultra Champion

Can you please post your filename and regex with Code Sample format (Please use button 101010)

0 Karma

teunlaan
Contributor

shouldn't it be

.(run_autostat|proteus_prod_archive).*\.log$
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...