Splunk Search

Need help on Rex

sbhatnagar88
Path Finder

Hi ,

can some one help me with the rex command to extract the string included in first [] from below pattern. For example: string to filter from below pattern is Proxy - Zscaler, Teams, Exchange and extract it under field "CI_Name"

[Proxy - Zscaler] [xxxxxxxr] USA US-22 Peer 2

[Teams] [xxxxxxx] Mexico Login - MX (proxy)

[Exchange] [xxxxx] Mexico Outlook Send Email - MX (proxy)

Thanks

Labels (1)
Tags (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| rex "\[(?<CI_Name>[^\]]+)\]\s\["

View solution in original post

0 Karma

sbhatnagar88
Path Finder

Thanks @ITWhisperer 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| rex "\[(?<CI_Name>[^\]]+)\]\s\["
0 Karma
Get Updates on the Splunk Community!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...