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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...