Splunk Search

Multiple SEDCMDs

ephemeric
Contributor

Greetz,

Does anyone know if multiple SEDCMDs are supported at index time in props.conf?

Also, can I implement this search through a regex transform or any other way?

sourcetype="vul:foresight" | rex mode=sed "s/\\\\\\//\\//g" | rex mode=sed "s/\\\n/\n/g" | rex mode=sed "s/<13>.*\.\.\.//g" | rex mode=sed "s/\.\.\..*\n//g" | rex mode=sed "s/^<13>//g"

Thank you.

Tags (3)
1 Solution

ephemeric
Contributor

You can do multiple SEDCMDs for the same sourcetype but not in the same props.conf file I found!

View solution in original post

cpeteman
Contributor

Does anyone have the answer for the second part of his question?

0 Karma

ephemeric
Contributor

You can do multiple SEDCMDs for the same sourcetype but not in the same props.conf file I found!

ephemeric
Contributor

Thank you! Brilliant.

0 Karma

the_wolverine
Champion

Actually you can use multiple SEDCMDs in the same props.conf and for the same sourcetype:

[vul:foresight]
SEDCMD-first = s/\\\//\//g
SEDCMD-second = s/\\n/\n/g
SEDCMD-third = s/<13>.*...//g
etc.

Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...