Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

AWS ElasticSearch not getting any data #34

Closed
luciangutu opened this issue Mar 30, 2020 · 1 comment
Closed

AWS ElasticSearch not getting any data #34

luciangutu opened this issue Mar 30, 2020 · 1 comment

Comments

@luciangutu
Copy link

luciangutu commented Mar 30, 2020

Hi.

I'm having trouble seeing the data from event-exporter in AWS ElasticSearch.

config.yaml

route:
  routes:
    - match:
        - receiver: "es-dump"
receivers:
  - name: "es-dump"
    elasticsearch:
      hosts:
        - "https://vpc-k8s.us-east-1.es.amazonaws.com:443"
      index: "kube-events"

I can see the logs in the event-exporter:

2020-03-30T07:30:35Z DBG app/pkg/exporter/channel_registry.go:56 > sending event to sink event="Started container event-exporter" sink=es-dump

But the kube-events has no data (that 1 was a curl test that I've did to check the connection):

green open kube-events               9vZMUP-5S3KY8BNvpBLVVg 5 1        1  0   9.4kb   4.7kb

Help, please?

@luciangutu
Copy link
Author

This is happening because I'm using AWS ES 6 and the event-exporter is using ES 7 library.
Managed to catch the error below using a sidecar with tcpdump.

{"error":{"root_cause":[{"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', found: [_doc]"}],"type":"invalid_type_name_exception","reason":"Document mapping type name can't start with '_', found: [_doc]"},"status":400}[!http]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant