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?
Use the filter I suggested instead of the one you are using. It includes cardNo= in the capture group. Also, there is no point is creating capture groups that you do not backreference.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.