Splunk Search

how to use rex for non-alphanumeric fields?

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

Revered Legend

Try like this

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

View solution in original post

0 Karma

Revered Legend

Try like this

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

View solution in original post

0 Karma
State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!