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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...