Hi, there's an open issue for this in logstash-output-elasticsearch github (here) but i think it is not a specific plugin bug but logstash bug.
In short: if i want to set a boolean property dynamically, i cannot. if i configure my plugin with this:
output{
elasticsearch {
doc_as_upsert => "%{[@metadata][doc_as_upsert]}"
}
}
it will complain for string to boolean assignment, and if i configure my plugin with this:
output{
elasticsearch {
doc_as_upsert => [@metadata][doc_as_upsert]
}
}
it gets parsing error. as the parser probably comes from logstash and not from each plugin, i think it is more suitable to open the bug in the logstash level.