- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
franciscoz1
Engager
03-06-2024
12:27 PM
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
bowesmana

SplunkTrust
03-06-2024
12:42 PM
If that is the exact regex and you are talking about using the rex command, then
| rex "(?<new_field>(?<=\:\[)(.*)(?=\]))"
will extract the data between the [] into new_field
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
franciscoz1
Engager
03-06-2024
12:55 PM
Worked like a charm, thank you !
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
bowesmana

SplunkTrust
03-06-2024
12:42 PM
If that is the exact regex and you are talking about using the rex command, then
| rex "(?<new_field>(?<=\:\[)(.*)(?=\]))"
will extract the data between the [] into new_field
