Splunk Search

REGEX to remove a word from indexing

sergeyvinnik
Explorer

Anybody can answer to simple question?
How to remove from indexing host= d:\TEST.log just "<TD>" combination?
What should be in props.conf and what should be in transforms.conf ?
No one example from your answers is not working for me.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Untested:

props.conf
[host::yourhost]
SEDCMD-removetd = s/<TD>//g

You may or may not need to escape the angle brackets with backslashes. Also, check if your host really is called d:\TEST.log because that looks awfully similar to a source value instead.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Great. Don't forget to mark this as solved.

0 Karma

sergeyvinnik
Explorer

It works!

0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

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 ...