Splunk Search

Can anyone help resolve the issue with my search for events relating to USB violations

wlwilliams01
Engager

alt text

Tags (1)

DavidHourani
Super Champion

Hi @wlwilliams01,

Use a labeled capturing group instead of (?.) and (?0x0) as shown here :
https://www.regular-expressions.info/named.html
which should look something like this :

(?<name>group) 

Also you can use the following site to validate your regex:
www.regex101.com

Let me know if it helps.

Cheers,
David

0 Karma

tom_frotscher
Builder

Hi,

you can not just use (?.) as a group. You need to add a name for at least one group like this:

(?<name>.+)

which would extract the results of the group to a field called "name" in Splunk. If you want to match everything in a group without giving a name you might be able to use (?:).

Greetings

Tom

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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