Creating dynamic elastic seach indices using a json field

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?

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

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