Splunk Search

rex for three fields

indeed_2000
Motivator

hi 

what is rex for these three fields?

here is the log:
2021-10-14 12:51:20,412 INFO [APP] log in : A12345@#4321@california
2021-10-14 12:51:20,412 INFO [APP] log in : D12345@torrento
2021-10-14 12:51:20,412 INFO [APP] log in : B12345@#1234@newyork

field1=A12345
D12345
B12345

field2=4321
1234

field3=california
torrento
newyork

 

thanks

Labels (3)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| rex ":\s(?<field1>[^@]+)@(#(?<field2>[^@]+)@|)(?<field3>.+)"

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
| rex ":\s(?<field1>[^@]+)@(#(?<field2>[^@]+)@|)(?<field3>.+)"
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...