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!

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