I have logstash in reading log files which is actually text document. I have come across with BOM (Byte of Mark) problem at the very first line of records. How can I get rid of it?
Thanks.
I have logstash in reading log files which is actually text document. I have come across with BOM (Byte of Mark) problem at the very first line of records. How can I get rid of it?
Thanks.
Until logstash-input-file would trim BOM mark by itself (which it does not do as of v4.1.10), you could add mutate
filter to remove it.
filter {
mutate {
# Trim BOM mark
gsub => [
"message", "^\xEF\xBB\xBF", ""
]
}
}