-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make test output honor output.logstash.proxy_url #154
Closed
sakurai-youhei
wants to merge
4
commits into
elastic:main
from
sakurai-youhei:honor-logstash-proxy_url
Closed
Make test output honor output.logstash.proxy_url #154
sakurai-youhei
wants to merge
4
commits into
elastic:main
from
sakurai-youhei:honor-logstash-proxy_url
Conversation
This file contains 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
sakurai-youhei
requested review from
fearful-symmetry and
leehinman
and removed request for
a team
September 29, 2023 18:08
if proxy is not running: $ ./filebeat test output -E output.elasticsearch.enabled=false -E output.logstash.enabled=true -E output.logstash.hosts=elastic.co:443 -E output.logstash.proxy_url=socks5://user:pswd@localhost:1080 -E output.logstash.ssl.enabled=true
logstash: elastic.co:443...
proxy...
parse url... OK
parse host... OK
dns lookup... OK
addresses: 127.0.0.1
dial up... ERROR dial tcp 127.0.0.1:1080: connect: connection refused if proxy host is unresolvable: $ ./filebeat test output -E output.elasticsearch.enabled=false -E output.logstash.enabled=true -E output.logstash.hosts=elastic.co:443 -E output.logstash.proxy_url=socks5://user:pswd@invalid:1080 -E output.logstash.ssl.enabled=true
logstash: elastic.co:443...
proxy...
parse url... OK
parse host... OK
dns lookup... ERROR lookup invalid on 172.20.160.1:53: no such host if proxy port is invalid: $ ./filebeat test output -E output.elasticsearch.enabled=false -E output.logstash.enabled=true -E output.logstash.hosts=elastic.co:443 -E output.logstash.proxy_url=socks5://user:pswd@localhost:9999999 -E output.logstash.ssl.enabled=true
logstash: elastic.co:443...
proxy...
parse url... OK
parse host... OK
dns lookup... OK
addresses: 127.0.0.1
dial up... ERROR dial tcp: address 9999999: invalid port if proxy scheme is invalid: $ ./filebeat test output -E output.elasticsearch.enabled=false -E output.logstash.enabled=true -E output.logstash.hosts=elastic.co:443 -E output.logstash.proxy_url=invalid://user:pswd@localhost:1080 -E output.logstash.ssl.enabled=true
Error initializing output: proxy: unknown scheme: invalid accessing 'output.logstash' (source:'command line flag') if proxy credentials are incorrect: $ ./filebeat test output -E output.elasticsearch.enabled=false -E output.logstash.enabled=true -E output.logstash.hosts=elastic.co:443 -E output.logstash.proxy_url=socks5://user:invalid@localhost:1080 -E output.logstash.ssl.enabled=true
logstash: elastic.co:443...
proxy...
parse url... OK
parse host... OK
dns lookup... OK
addresses: 127.0.0.1
dial up... OK
connection...
proxy... OK
dial up... ERROR socks connect tcp localhost:1080->elastic.co:443: username/password authentication failed if logstash host is unresolvable.: $ ./filebeat test output -E output.elasticsearch.enabled=false -E output.logstash.enabled=true -E output.logstash.hosts=elastic.coooo:443 -E output.
logstash.proxy_url=socks5://user:pswd@localhost:1080 -E output.logstash.ssl.enabled=true
logstash: elastic.coooo:443...
proxy...
parse url... OK
parse host... OK
dns lookup... OK
addresses: 127.0.0.1
dial up... OK
connection...
proxy... OK
dial up... ERROR socks connect tcp localhost:1080->elastic.coooo:443: unknown error host unreachable if logstash is not running: $ ./filebeat test output -E output.elasticsearch.enabled=false -E output.logstash.enabled=true -E output.logstash.hosts=elastic.co:444 -E output.log
stash.proxy_url=socks5://user:pswd@localhost:1080 -E output.logstash.ssl.enabled=true
logstash: elastic.co:444...
proxy...
parse url... OK
parse host... OK
dns lookup... OK
addresses: 127.0.0.1
dial up... OK
connection...
proxy... OK
dial up... ERROR socks connect tcp localhost:1080->elastic.co:444: unknown error connection refused |
7 tasks
I'm closing this PR to clean up my PR list. Please feel free to reopen PR and/or ping me anytime. |
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 does this PR do?
This PR will fix the part of elastic/beats#24751 related to Logstash.
w/o proxy:
w/ proxy:
w/ proxy and ssl:
How I run the testing socks5 proxy
Why is it important?
I frequently rely on
test output
command for troubleshooting, so its reliability is key.Checklist
mage linter:lastChange
passed.CHANGELOG.md
- n/a as there's no such file.Author's Checklist
output.elasticsearch.proxy_url
. Make test output honor output.elasticsearch.proxy_url beats#36715Related issues
filebeat test output
does not honor proxy_url setting for output.logstash or output.elasticsearch beats#24751