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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...