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?