I have a question about whether something may be possible or not, what I am trying to achieve is to take a data set already in Elasticsearch and re-index this and whilst re-indexing, anonymising the IP Address fields within.
So for example,
220.127.116.11 would anonmyise to 10.0.0.1 and so forth.
Ideally it would also be so that I can query 10.0.0.1 and know that it relates to 18.104.22.168, so a separate mapping could be created so that I can see which real IP 10.0.0.1 would relate to. (Perhaps as a separate index for quick querying, or as a csv dump)
I was thinking of using Painless to try and do this, would something like this be possible using Painless or would I better served spending my efforts using Bash or something similar.
Any suggestions on how to approach such a task would be greatly appreciated!