How to rename for clarity
Can someone kindly help with this? Thank you.
filter {
mutate {
rename => { "[test][rex-platform"\\" ]" => "[test][rex-platform]" }
}
}
Output Display Field is like this:
Table format
Column1
test.rex-platform"\
Column2
Windows"",
Rios
(Rios)
August 7, 2025, 10:22am
2
Welcome to the community!
How did you import data? Which input plugin? CSV perheps
Can you show us pic, screen shoot, how does exactly field look like? You can use debug
Rios
(Rios)
August 7, 2025, 11:25am
6
According to my tests, try with the single quotes:
mutate {
rename => { '[test][rex-platform"\\" ]' => "[test][rex-platform]" }
}
Rios
(Rios)
August 8, 2025, 5:10am
8
As I said, provide the debug screens from Logstash
Hello,
Yes i see with single quotes it is working
rename => { '[test][rex-platform"\]' => '[test][rex-platform]' }
Still , if issue persists please share the debug screens as requested by Rio.
Thanks!!
Thank you so much, fix the rename field. How about in the value field? It’s still Windows““,
Hello,
For value you can try to use gsub
rename => { '[test][rex-platform"\]' => '[test][rex-platform]' }
gsub => [
'[test][rex-platform]', '"', '',
'[test][rex-platform]', ',', ''
]
Thanks!!
2 Likes
Now fully got it. Thanks for your support.
1 Like