I would like to use mutate (gsub) on "text" fieldname to replace unicode value of emoticons to respective string values. An example -
"\ud83d\ude27" replaced by "emoticon_anguished"
I tried to escape single backslash by two, as following. Replacement is not working.
filter {
mutate {
gsub => [
"text", "\\ud83d\\udc7f", " emoticon_imp ",
"text", "\\ud83d\\ude3e", " emoticon_pouting_cat "
]
}
}
Any help? thank you.