I have filebeat installed on all my dev server and qa server in my filebeat config i have added the field as env: dev and env:qa how do i use this in my logstash config output index pattern. i tried this method but its not working index =>"%{env} -%{+YYYY.MM.dd}"
That's invalid because it contains a space character, but if that's what you get in the error message it may mean %{env} was not substituted because the env field does not exist.
Have you looked at an event in Kibana? Does it have an env field? If you do not set fields_under_root then you may have [fields][env] instead of [env].
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.