I am trying to clean up some log data at index time using SEDCMD.
I have a custom sourcetype (cloudfront_http) that is configured on the forwarding machine.
On the receiver/indexer, I have added the following two lines in props.conf
[cloudfront_http]
SEDCMD-1-AppleTV = s/Apple%A0TV/AppleTV/g
The problem is that nothing is happening. The raw text 'Apple%A0TV' is still occuring and is not getting replaced.
Any ideas?
If this is a light forwarder, SEDCMD will not run there, and must be run on the indexer. Please see http://www.splunk.com/wiki/Where_do_I_configure_my_Splunk_settings%3F for more details
I can confirm that SEDCMD
is ignored by a Universal Forwarder's local props.conf
except if the sourcetype stanza's force_local_processing
clause is = true
(in which case a SEDCMD
on the indexer will be ignored).
And the forwarder is a light forwarder? Or heavy? And there is no intermediate forwarder?
I am running SEDCMD on the indexer. But the data is coming from another machine (which is configured as a forwarder).
The SEDCMD will not retroactively change the values for data that is already indexed. Have you confirmed that it's not working on new data?
I meant to say that I tested your SEDCMD, and it works. I can't edit my comment above to change the wording.
The SEDCMD works. Try placing it on your forwarder -- it may not be configured as a light forwarder.
Correct. It is not working on new data. Are there any issues with orders of precedence? This is defined on a custom sourcetype which is defined in the forwarding server.