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
Revered Legend

Try like this

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

View solution in original post

0 Karma

somesoni2
Revered Legend

Try like this

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

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...