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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...