Skip to content

allow URI parameters for http appender - #385

Open
dmitry-sinina wants to merge 2 commits into
reidmorrison:mainfrom
dmitry-sinina:http_appender_query_parameters
Open

allow URI parameters for http appender#385
dmitry-sinina wants to merge 2 commits into
reidmorrison:mainfrom
dmitry-sinina:http_appender_query_parameters

Conversation

@dmitry-sinina

Copy link
Copy Markdown

Issue

Appender::Http keeps only the path when parsing the url. Everything after ? is dropped silently. url: "http://host/path?foo=bar" posts to /path.

Description of changes

The query is kept next to the path and appended when each request uri is built.

Motivation

Log servers configured through query parameters cannot be used with this appender. VictoriaLogs takes its field mapping in the url: /insert/jsonline?_msg_field=message&_time_field=timestamp&_stream_fields=application,environment

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant