Splunk Search

transforms.conf: matching two files in regex

keyivr
New Member

Hello,

I am trying to match using regex where the filenames Svc.chk and edb.chk are in Object_Name.

The following does not work...

REGEX=(?m)^Object Name:.*(edb.chk|Svc.chk)

when trying to find:

Object Name: C:\Windows\System32\LogFiles\Sum\Svc.chk

Any obvious errors here?

Many thanks

D.

0 Karma

Afef
Communicator

try this : REGEX=(?m)^Object\sName:.*(edb.chk|Svc.chk)

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The dots before the filename extensions need to be escaped. Try this:

(?m)^Object Name:.*(edb\.chk|Svc\.chk)
---
If this reply helps you, Karma would be appreciated.
0 Karma

keyivr
New Member

Hello, many thanks for that - but it's still not matching I am afraid.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...