Getting Data In

Can you help me alter the extension of a blacklisting file with pattern in the filename?

damucka
Builder

Hello,

We would like to exclude some files from indexing using blacklist. At the moment, it looks as follows and works fine

blacklist =rtedump|_alert_|available\.log$|nameserver_history\.trc$|table_consistency_check|\.(?i:gz|json|old|py|tar|txt|xml|zip)$

However, I would like to additionally exclude the user traces, which can be identified as having the following ending pattern (checked in regex101.com):

[ICDicd]\d{6,}\.trc

How would the new blacklist have to look like? Would it be just the extension of the existing one and look as follows?

blacklist =[ICDicd]\d{6,}\.trc|rtedump|_alert_|available\.log$|nameserver_history\.trc$|table_consistency_check|\.(?i:gz|json|old|py|tar|txt|xml|zip)$

Kind Regards,
Kamil

0 Karma

harsmarvania57
Ultra Champion

Hi @damucka,

Yes that looks correct.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

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

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 GA in US-AWS!

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