'Mask a part of Field number using logstash and copy Original Field
I was looking for information about masking fields in logstash and I got the following solution:
filter
{
mutate {
gsub => [
"message","[0-9]{16}","################"
]
}
}
however I didn't want to lose the original content field, how do I copy the old content?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|