You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I reviewed the documentation at https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/elasticsearchexporter/README.md and https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/confighttp/README.md#http-configuration-settings, but there was no option to configure the HTTP method. The method for writing should have been POST rather than GET. Here are the HTTP request details and my exporter configuration information.Data cant be write into ES.
`#
T ::1:63286 -> ::1:9200 [AP] #9
GET /my-log-2001/doc_/ HTTP/1.1.
Host: cbc0-125-122-80-16.ngrok-free.app.
User-Agent: ApeCloud OTel Collector/latest (linux/arm64).
Accept-Encoding: gzip.
X-Elastic-Client-Meta: es=7.17.10,go=1.21.2,t=7.17.10,hc=1.21.2.
X-Forwarded-For: 103.151.173.97.
X-Forwarded-Host: cbc0-125-122-80-16.ngrok-free.app.
X-Forwarded-Proto: https.
.
T ::1:63286 -> ::1:9200 [AP] #10
GET /my-log-2001/doc_/ HTTP/1.1.
Host: cbc0-125-122-80-16.ngrok-free.app.
User-Agent: ApeCloud OTel Collector/latest (linux/arm64).
Accept-Encoding: gzip.
X-Elastic-Client-Meta: es=7.17.10,go=1.21.2,t=7.17.10,hc=1.21.2.
X-Forwarded-For: 103.151.173.97.
X-Forwarded-Host: cbc0-125-122-80-16.ngrok-free.app.
X-Forwarded-Proto: https.
.
T ::1:9200 -> ::1:63286 [AP] #13
HTTP/1.1 405 Method Not Allowed.
Allow: POST.
content-type: application/json; charset=UTF-8.
content-encoding: gzip.
content-length: 129.
.
..........?VJ-*?/R?R??K?/JM.Q?...P?M-??OQH?/R(-?T.?ϭ???O?5200?O?O.?.UH?K.?.vw..?QH???/OM?R..?...U?Q.I,)-V?210?....??..?.a.m...
T ::1:9200 -> ::1:63286 [AP] #14
HTTP/1.1 405 Method Not Allowed.
Allow: POST.
content-type: application/json; charset=UTF-8.
content-encoding: gzip.
content-length: 129.
.
..........?VJ-*?/R?R??K?/JM.Q?...P?M-??OQH?/R(-?T.?ϭ???O?5200?O?O.?.UH?K.?.vw..?QH???/OM?R..?...U?Q.I,)-V?210?....??..?.a.m...`
Beta Was this translation helpful? Give feedback.
All reactions