ERR failed to initialize elasticsearch plugin as output: missing condition

In this case it's similar to what I've replied in Using a regex in the custom field of Filebeat