Input : "refNo":"0015531891539643", cardNo=6055490201604225
Requirment: The requirement is to show the start 6 digits and last 4 digits and mask the remaining numbers of cardNo in logstash. I applied gsub/mutate filter but the replacement string doesn't allow regex. Any other way this can be done in logstash alone cardNo, not refNo?
Output : "refNo":"0015531891539643", cardNo=605549******4225