Hello all,
I have to suppress some fields in events before indexing. I think I have to use sed.
I try to test it but it does not work. I have defined in /opt/splunk/etc/system/local a file props.conf with
[source::.../messages]
SEDCMD-messages = s/(.+donypie).+(Pierre).+(you)/work\3/g
When I send Hi Pierre how are you doing to syslog with a logger command, I have to see after the sed only : work you because I replaced the regex I have matche with work and field 3 = you.
But it does not work, when I go to Splunk I have the whole message not processed by the sed :
Dec 2 11:42:02 ubuntusrv1 donypie: Hi Pierre how are you doing host=ubuntusrv1 Options sourcetype=syslog Options source=/var/log/messages
Options
Can you please help me ?
Thanks
Regards
Pierre.