将所有+替换为字段Logstash中的空格

时间:2015-08-11 17:06:28

标签: logstash

我想转向我的领域:

"device_model": "archos+Bush+7.0+MyTablet"

"device_model": "archos Bush 7.0 MyTablet"

1 个答案:

答案 0 :(得分:1)

https://www.elastic.co/guide/en/logstash/current/plugins-filters-mutate.html#plugins-filters-mutate-gsub

filter {
  mutate {
    gsub => [
      # replace all plusses with spaces
      "device_model", "\+", " "
    ]
  }
}