Creating dynamic elastic seach indices using a json field


(Aswin K M ) #1

I need to create different outputs to elasticsearch for different inputs. My logs are coming in json format. I have created a field called "environment" in the json input. I need to filter that field's value and create indices using that value. How can I do that?


(Magnus Bäck) #2

https://www.elastic.co/guide/en/logstash/current/event-dependent-configuration.html#logstash-config-field-references


(system) #3

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