Splunk Search

how to use rex for non-alphanumeric fields?

ewise1
New Member

Hi,

I am trying to use rex function to extract "/" from my data which lookslike:

Database User [1] : "/"

how should I do this to only get / out of rex extraction?

0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

Try like this

...| rex  "Database User \[\d+\] \: \"(?<DBUserName>[^\"]+)"

View solution in original post

0 Karma

somesoni2
SplunkTrust
SplunkTrust

Try like this

...| rex  "Database User \[\d+\] \: \"(?<DBUserName>[^\"]+)"
0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...