HOW TO logstash convert all fields to String

Hello I am a foreign developer.

My process is: Json >> Filebeat >> logstash >> Kibana

So how can i convert all of fileds to String in Json via Logstash Filter config?

P/s: I added this config to pipeline but not work:
" mutate { convert => [ "*" => "string"] } "

Thank You!

You might find it easier to use an Elasticsearch template to do this.

What sort of processing does Logstash do?

1 Like

Thank @warkolm
I'm using Elasticsearch template, but I need to add one by one field to the template. How can Elasticsearch (or Logstash) auto convert all fields to String?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.