Fix diagnostic requests when scheme is not included in host#4765
Merged
jsoriano merged 2 commits intoelastic:mainfrom Apr 7, 2025
Merged
Fix diagnostic requests when scheme is not included in host#4765jsoriano merged 2 commits intoelastic:mainfrom
jsoriano merged 2 commits intoelastic:mainfrom
Conversation
Hosts in the elasticsearch output are usually set without their scheme, in that case DiagRequests was not correctly parsing the URL. Use the makeURL helper to build the URL to use for the diagnostics.
Contributor
|
This pull request does not have a backport label. Could you fix it @jsoriano? 🙏
|
|
swiatekm
approved these changes
Apr 7, 2025
mergify bot
pushed a commit
that referenced
this pull request
Apr 7, 2025
Hosts in the elasticsearch output are usually set without their scheme, in that case DiagRequests was not correctly parsing the URL. Use the makeURL helper to build the URL to use for the diagnostics. (cherry picked from commit eceaa42)
8 tasks
mergify bot
pushed a commit
that referenced
this pull request
Apr 7, 2025
Hosts in the elasticsearch output are usually set without their scheme, in that case DiagRequests was not correctly parsing the URL. Use the makeURL helper to build the URL to use for the diagnostics. (cherry picked from commit eceaa42)
8 tasks
mergify bot
pushed a commit
that referenced
this pull request
Apr 7, 2025
Hosts in the elasticsearch output are usually set without their scheme, in that case DiagRequests was not correctly parsing the URL. Use the makeURL helper to build the URL to use for the diagnostics. (cherry picked from commit eceaa42)
8 tasks
mergify bot
pushed a commit
that referenced
this pull request
Apr 7, 2025
Hosts in the elasticsearch output are usually set without their scheme, in that case DiagRequests was not correctly parsing the URL. Use the makeURL helper to build the URL to use for the diagnostics. (cherry picked from commit eceaa42)
8 tasks
jsoriano
added a commit
that referenced
this pull request
Apr 8, 2025
…4771) Hosts in the elasticsearch output are usually set without their scheme, in that case DiagRequests was not correctly parsing the URL. Use the makeURL helper to build the URL to use for the diagnostics. (cherry picked from commit eceaa42) Co-authored-by: Jaime Soriano Pastor <jaime.soriano@elastic.co>
jsoriano
added a commit
that referenced
this pull request
Apr 8, 2025
…4772) Hosts in the elasticsearch output are usually set without their scheme, in that case DiagRequests was not correctly parsing the URL. Use the makeURL helper to build the URL to use for the diagnostics. (cherry picked from commit eceaa42) Co-authored-by: Jaime Soriano Pastor <jaime.soriano@elastic.co>
jsoriano
added a commit
that referenced
this pull request
Apr 8, 2025
…4773) Hosts in the elasticsearch output are usually set without their scheme, in that case DiagRequests was not correctly parsing the URL. Use the makeURL helper to build the URL to use for the diagnostics. (cherry picked from commit eceaa42) Co-authored-by: Jaime Soriano Pastor <jaime.soriano@elastic.co>
jsoriano
added a commit
that referenced
this pull request
Apr 15, 2025
…4774) Hosts in the elasticsearch output are usually set without their scheme, in that case DiagRequests was not correctly parsing the URL. Use the makeURL helper to build the URL to use for the diagnostics. (cherry picked from commit eceaa42) Co-authored-by: Jaime Soriano Pastor <jaime.soriano@elastic.co>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




What is the problem this PR solves?
Hosts in the Elasticsearch output are usually set without their scheme, in that case DiagRequests was not correctly parsing the URL, and errors like the following ones appear in the
fleet-server-output-request.txtfile in diagnostics:How does this PR solve the problem?
Instead of parsing the URL and try to add the scheme later, use the
makeURLhelper, that already takes these cases into account.How to test this PR locally
Check fleet-server diagnostics.
Design Checklist
Checklist
./changelog/fragmentsusing the changelog tool