Splunk Search

transforms.conf: matching two files in regex

New Member


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


0 Karma


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

0 Karma


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

New Member

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

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...

Edge Processor Scaling, Energy & Manufacturing Use Cases, and More New Articles on ...

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

Get More Out of Your Security Practice With a SIEM

Get More Out of Your Security Practice With a SIEMWednesday, July 31, 2024  |  11AM PT / 2PM ETREGISTER ...