Sometimes we do need to mask out confidential information before employing them for analysis. In this blog, we would take the challenge to use filebeat (instead of logstash or elasticsearch ingest node).
the filebeat way
First of all, we need to prepare a dataset. For simplicity, it would be like the following: