Splunk Enterprise Security

REGEX

a88arun
New Member

I want to get the result of  'AccessControlRuleName' in a separate field set using REGEX. 

Sample log:

"AccessControlRuleName: PCIWAN_Access_In_#4-no-lookup," 

 

What would be the Regex query or detail to create a new field set for the above? Need some help on this.

Labels (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Assuming the value is always delimited by a comma, try this

| rex "AccessControlRuleName:\s+(?<AccessControlRuleName>[^,]+)"
0 Karma

a88arun
New Member

Hi ...Thanks for the quick response for my regex query.

0 Karma
Get Updates on the Splunk Community!

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Answers Content Calendar, July Edition I

Hello Community! Welcome to another month of Community Content Calendar series! For the month of July, we will ...