Splunk Search

How should i do SEDCMD filter URL?

chengyu
Path Finder

I have use Heave Forward and modify props.conf

source:...

SEDCMD-nourl = s/\surl=("\w+"|"\w+\[./\]"|)\s/ /g    

RAW data:
i.g:

url="N/A" -----OK

or

url="/bases/av/kdb/i386/kdb-i386-1211g.xml.dif" ----Fail

or

url="/SimpleAuthWebService/SimpleAuth.asmx" ----- Fail

How should i do?

Thank you!

Tags (1)
0 Karma
1 Solution

kristian_kolb
Ultra Champion

Could this work? Should remove the string 'url=' and all non-space characters directly following it.

SEDCMD-nourl = s/\surl=\S+/ /g

EDIT: small change to replace url with " " instead of \s.

Hope this helps,

K

View solution in original post

0 Karma

chengyu
Path Finder

Thank you kindly support!

0 Karma

kristian_kolb
Ultra Champion

Could this work? Should remove the string 'url=' and all non-space characters directly following it.

SEDCMD-nourl = s/\surl=\S+/ /g

EDIT: small change to replace url with " " instead of \s.

Hope this helps,

K

0 Karma

chengyu
Path Finder

Thank you kindly support!

0 Karma

rturk
Builder

I'm sorry chengyu, it's not very clear to me what you are asking or what you are trying to achieve.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...