Splunk Search

regx

Siddharthnegi
Contributor

Hi , I want to extract this line from an event.
RAISE-ALARM:acProxyConnectionLost: [KOREASBC1] Proxy Set Alarm Proxy Set 1 (PS_ITSP): Proxy lost. looking for another proxy;

0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Try something like this

| rex "^(?<line>.*proxy)"

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @Siddharthnegi ,

could you share some sample of your full message, highlighting in bold the part to extract?

Ciao.

Giuseppe

0 Karma

Siddharthnegi
Contributor

I want to extract whole line till proxy
RAISE-ALARM:acProxyConnectionLost: [KOREASBC1] Proxy Set Alarm Proxy Set 1 (PS_ITSP): Proxy lost. looking for another proxy;

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Try something like this

| rex "^(?<line>.*proxy)"

Siddharthnegi
Contributor

what if  I want to remove RAISE-ALARM from staring

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| rex "^RAISE-ALARM(?<line>.*proxy)"
0 Karma
Get Updates on the Splunk Community!

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...