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>.+)"
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Painting a Clearer Picture: Creating Cross-Domain Visibility with AI Canvas

    Thursday, June 25, 2026  |  11AM PDT / 2PM EDT  Duration: 1 Hour (Includes live Q&A) Register to ...

Analytics Workspace deprecation

As of Splunk Cloud Platform 10.4.2604 and Splunk Enterprise 10.4, Analytics Workspace is now deprecated. ...

Splunk Developer Day Recap: Building, Publishing, and Growing on the Splunk Platform

Splunk Developer Day brought the Splunk developer community together for a practical look at what it means to ...