It would be great if we could select host.vars and service.vars additional sent to Elasticsearch using the ElastichsearchWriter. The idea was inspired by #6213.
object ElasticsearchWriter "elasticsearch" {
# other options...
host_template = {
tags = {
location = "$host.vars.geodata$"
}
}
service_template = {
tags = {
snmp_oid = "$service.vars.snmpv3_oid$"
}
}
}