elastic / elastic/logstash

output http export data to DORIS response 307

Open
#15,880 2 comments 0 reactions 0 assignees View on GitHub
bug status:needs-triage
Dominant language
Java
Stars
14.9k
Forks
3.5k
Avg merge
1d 4h
Merged PRs (30d)
88

Description

config

logstash output配置
http {
format => "json_batch"
follow_redirects => "true"
keepalive => "false"
automatic_retries => "1"
http_method => "put"
url => "http://10.1.32.175:8030/api/logs/tx_log_test/_stream_load"
headers => [
"format", "json",
"max_filter_ratio", "0.01",
"columns", "msg",
"jsonpaths", "["$.contents.content"]",
"strict_mode", "false",
"strip_outer_array", "true",
"load_to_single_tablet", "true",
"Authorization", "Basic cm9vdDo=",
"Expect", "100-continue",
"Content-Type", "application/json"
]
}

error log

[2024-01-29T16:17:39,067][ERROR][logstash.outputs.http ][main][bc54b253caa8d54ed8483069108b89ce03d3d343739a620e15d737ed48a0ae35] Encountered non-2xx HTTP code 307 {:response_code=>307, :url=>"http://10.1.32.175:8030/api/logs/tx_log_test/_stream_load", :event=>[#LogStash::Event:0x6907133a, #LogStash::Event:0x2e18c4cf, #LogStash::Event:0x7396726c, #LogStash::Event:0x68ed0d4b, #LogStash::Event:0x39a25daf, #LogStash::Event:0x5174c8e8, #LogStash::Event:0x11b1d5b8, #LogStash::Event:0x11361590, #LogStash::Event:0x3ad26d3c, #LogStash::Event:0x4d16d106, #LogStash::Event:0x5215c109, #LogStash::Event:0x73aed44e, #LogStash::Event:0x5abcfc8a, #LogStash::Event:0x2159883a, #LogStash::Event:0x5d381891, #LogStash::Event:0x58b1bbdc, #

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the 307 response with the supplied Logstash HTTP output configuration and inspect the HTTP output plugin's redirect handling. The payload names no source files or tests, so locate the plugin entry point and its request tests first; done means the redirect behavior is understood and the reported request no longer fails unexpectedly.

Written by the indexing model from the issue text.

Assessment

Domain
api, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.