I am trying to use @metadata that has defined in filter for the user and password fields in output, is that possible or is there another way? Please see below configuration:
The Elasticsearch output plugin sends bulk requests, so setting a parameter that is applied per request (multiple documents) based on a field that can vary across events in that batch does not IMHO make sense. What is it you are trying to achieve?
Also, my reading of the code is that the basic_auth configuration is done at startup time, so there is no event from which fields or metadata can be referenced.
I am using ruby to call a servlet in filter and returned the username and password of ElasticSearch. I am trying to store the values as metadata and use those in the output. Could you suggest another way to achieve this?
It is possible that an environment reference rather than a sprintf reference would work. I have not tested it, but perhaps you can use logstash or curl or something else to do the servlet call and then pass the variables to elastic as via the environment.
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.