Splunk Search

rex to export users

indeed_2000
Motivator

Hi
what is the spl command to extract users.

Here is the sample:
2021-09-12 21:40:03,938 ERROR [APPNAME] User H83952 invalid: javax.security.auth.login.LoginException:
2021-09-12 21:40:03,938 ERROR [APPNAME] User 83944 invalid: javax.security.auth.login.LoginException:
2021-09-12 21:40:03,938 ERROR [APPNAME] User A_Frok invalid: javax.security.auth.login.LoginException:

expected output:
H83952
83944
A_Frok

Thanks,

0 Karma
1 Solution

isoutamo
SplunkTrust
SplunkTrust

Hi

e.g. this works

...
| rex "User (?<user>[^\s]+)"

r. Ismo 

View solution in original post

isoutamo
SplunkTrust
SplunkTrust

Hi

e.g. this works

...
| rex "User (?<user>[^\s]+)"

r. Ismo 

Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...