Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support host and service templates to send variables to Elasticsearch #6837

Closed
wols opened this issue Dec 13, 2018 · 3 comments · May be fixed by #10074
Closed

Support host and service templates to send variables to Elasticsearch #6837

wols opened this issue Dec 13, 2018 · 3 comments · May be fixed by #10074
Labels
area/elastic Events to Elasticsearch

Comments

@wols
Copy link

wols commented Dec 13, 2018

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.

This should follow the template logic of InfluxdbWriter:

object ElasticsearchWriter "elasticsearch" {
  # other options...

  host_template = {
    tags = {
      location = "$host.vars.geodata$"
    }
  }
  service_template = {
    tags = {
      snmp_oid = "$service.vars.snmpv3_oid$"
    }
  }
}

See also Tags vs Fields

@wols wols changed the title Options to sent host.vars and service.vars to Elasticsearch Support host and service templates to send variables to Elasticsearch Dec 14, 2018
@dnsmichi
Copy link
Contributor

tags is an additional JSON field in the data written for each event type then? This may have the same effect as with performance metrics, too much data.

@dnsmichi dnsmichi added the area/elastic Events to Elasticsearch label Dec 17, 2018
@lippserd
Copy link
Member

lippserd commented Feb 6, 2019

Unfortunately there are no plans to implement this at moment. If you're still interested in this feature, please contact us via https://icinga.com for sponsoring.

@lippserd lippserd closed this as completed Feb 6, 2019
@ngoeddel-openi
Copy link

Since we also need this feature now we are working on implementing this in a fork and want to create a pull request if we are ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/elastic Events to Elasticsearch
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants