- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
abhipatthi
Engager
03-23-2022
08:34 AM
I have a string in this form:
sub = 13433
cf-ipcountry = US
mail = abc.test@gmail.com
ct-remote-user = testaccount
elevatedsession = N
iss = www.google.com
user-agent = Apache-HttpClient/4.5.8 (Java/1.8.0_322)
I want to extracr iss fields value
I tried this but did not work
| rex max_match=0 field=_raw "\/sub \/user-agent \/(?<temp>.*)"
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ITWhisperer

SplunkTrust
03-23-2022
08:43 AM
Is this the exact string you have in your event? If so, try
| rex "iss = (?<iss>\S+)"
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ITWhisperer

SplunkTrust
03-23-2022
08:43 AM
Is this the exact string you have in your event? If so, try
| rex "iss = (?<iss>\S+)"
