elastic / beats

:tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash
https://www.elastic.co/products/beats
Other
12.13k stars 4.91k forks source link

[libbeat] add_nomad_metadata - Typo in indexer name for 'allocation_uid' #29743

Open andrewkroh opened 2 years ago

andrewkroh commented 2 years ago

The name of the indexer should be allocation_uuid. That is how it is shown in the documentation at https://www.elastic.co/guide/en/beats/heartbeat/7.16/add-nomad-metadata.html#_fields_2.

The error that you get when trying to use the documented config is:

{
  "log.level": "warn",
  "@timestamp": "2022-01-07T14:52:37.228Z",
  "log.origin": {
    "file.name": "add_nomad_metadata/indexers.go",
    "file.line": 55
  },
  "message": "Unable to find indexing plugin allocation_uuid",
  "service.name": "filebeat",
  "ecs.version": "1.6.0"
}

The affected code is:

https://github.com/elastic/beats/blob/a1617c7c4eef6d12542ad117be8c68795d61ee40/x-pack/libbeat/processors/add_nomad_metadata/indexers.go#L18

elasticmachine commented 2 years ago

Pinging @elastic/integrations (Team:Integrations)

botelastic[bot] commented 1 year ago

Hi! We just realized that we haven't looked into this issue in a while. We're sorry!

We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1. Thank you for your contribution!

andrewkroh commented 7 months ago

I just ran into this again. Re-opening.