Hi,
When using an external ruby script parameters can be used with
path => "script.rb"
script_params => {
"url_host_port" => "http://localhost:9200"
"url_username" => "{es_user}"
"url_password" => "{es_password}"
}
How can I do the same with an 'inline' script?
Can I just use {es_user} and {es_password} in the script directly?
It is still not clear to me.
Can I just reference : event.get("es_user" ) then if es_user is defined in the keystore of logstash?
Or via @metadata
The documentation is very concise.
Sorry, I missed that you were referring to the keystore. If the keystore substitutions are done by event.sprintf() then you could try using that. I'm not in a position to test that tonight.
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.