Yes, you can use a "sprintf" reference to the application name.
output {
elasticsearch {
index => "%{Appname}"
...
}
}
Just be aware that having a large number of small indexes adds a lot of performance overhead. But if you only have a small number of values for Appname this should be OK.
so now i need to add a condition here that if its a specific Appname that has uppercase in it, it has to be indexed as default logstash-* and if its a lower case then it has to be the index as index => "%{Appname}"
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.