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
![image](https://private-user-images.githubusercontent.com/78267571/346443457-51a0f150-fe65-48e2-84a5-b9b1c78e11c6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2NTkyMzcsIm5iZiI6MTcyNTY1ODkzNywicGF0aCI6Ii83ODI2NzU3MS8zNDY0NDM0NTctNTFhMGYxNTAtZmU2NS00OGUyLTg0YTUtYjliMWM3OGUxMWM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDIxNDIxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZlNzFmZjM0MzNjZDc5OGJmNDg1ZWMyNTU2OTA0ZTUwMDJlNjk1ZGJhNWQwZWVlMjY5MGM3NzBkZTYzODAwN2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.avTc0cUN8l5Jrjj_HP7sFqVWWViRPWWQfY2N3lATNis)
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