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

help request: plugin [elasticsearch-logger] return error #9283

Closed
coolboywcm opened this issue Apr 11, 2023 · 4 comments
Closed

help request: plugin [elasticsearch-logger] return error #9283

coolboywcm opened this issue Apr 11, 2023 · 4 comments
Labels
no response wait for update wait for the author's response in this issue/PR

Comments

@coolboywcm
Copy link

Description

route config:
"plugins": {
"elasticsearch-logger": {
"_meta": {
"disable": false
},
"endpoint_addr": "http://xxxx:xxxx",
"field": {
"index": "apisixlog"
}
}
}

tail -f /usr/local/apisix/logs/error.log

[error] 4391#4391: *126717034 [lua] batch-processor.lua:95: Batch Processor[elasticsearch-logger] failed to process entries: elasticsearch server returned status: 400, body: {"error":{"root_cause":[{"type":"action_request_validation_exception","reason":"Validation Failed: 1: an id must be provided if version type or value are set;"}],"type":"action_request_validation_exception","reason":"Validation Failed: 1: an id must be provided if version type or value are set;"},"status":400}, context: ngx.timer, client: xxx.xxx.xx.xx, server: 0.0.0.0:9080

ES version:elasticsearch-7.3.0

elasticsearch.yml content:
action.auto_create_index: true
path.data: /data/elasticsearch
path.logs: /var/log/elasticsearch
cluster.name: docker-cluster
node.name: node-1
cluster.initial_master_nodes: ["node-1"]
network.host: 0.0.0.0
http.port: xxxx
http.cors.allow-origin: "*"
http.cors.enabled: true

Environment

APISIX version (3.1.0):
Operating system (CentOS Linux release 7.6.1810):
OpenResty / Nginx version (nginx version: openresty/1.21.4.1):
etcd version, if relevant ("etcd_version":"3.4.0"):
APISIX Dashboard version, if relevant(3.0.0)

@nic-6443
Copy link
Member

I found that version 7.17.1 (the version used in APISIX test cases) of Elasticsearch can work normally, so this problem may come from the difference in Elasticsearch versions. You can try to find the configuration document for version 7.3.0 of Elasticsearch and see if there is any relevant information.

@shreemaan-abhishek
Copy link
Contributor

ping @coolboywcm

@shreemaan-abhishek shreemaan-abhishek added the wait for update wait for the author's response in this issue/PR label Sep 7, 2023
@github-actions
Copy link

github-actions bot commented Oct 2, 2023

Due to lack of the reporter's response this issue has been labeled with "no response". It will be close in 3 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.

@github-actions
Copy link

github-actions bot commented Oct 6, 2023

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no response wait for update wait for the author's response in this issue/PR
Projects
None yet
Development

No branches or pull requests

3 participants