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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...