Dashboards & Visualizations

REGEX for the blacklist

damucka
Builder

Hello,

I need help with the REGEX for my blacklist. I have the following file pattern on the source:

indexserver_ls5783.30240.341.trc

but sometimes the end users switch additional traces, which follow the pattern:

indexserver_ls5783.30240_trc115.trc

On the example above, the user activated additional trace with the context name "trc115", which has been appended to the name after underline replacing the tracefile number.
Now, I would like to blacklist these user defined traces.
The starting point for the blacklist regex would be the 5 digits (this is the port number and does not have to be always 30240) + "_" + string + ".trc"
Could you help me with the corresponding blacklist REGEX?

Kind Regards,
Kamil

Tags (1)
0 Karma
1 Solution

harsmarvania57
Ultra Champion

Hi @damucka,

Try this regex for blacklist indexserver_ls\d+\.\d+_\w+\.trc

View solution in original post

0 Karma

harsmarvania57
Ultra Champion

Hi @damucka,

Try this regex for blacklist indexserver_ls\d+\.\d+_\w+\.trc

0 Karma
Get Updates on the Splunk Community!

Splunk Search APIを使えば調査過程が残せます

   このゲストブログは、JCOM株式会社の情報セキュリティ本部・専任部長である渡辺慎太郎氏によって執筆されました。 Note: This article is published in both Japanese ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...