raboof / connbeat

Agent exposing connection-related information, based on the Elastic Beats framework
Other
55 stars 10 forks source link

Connbeat assumes port 80 in the HTTP output URL if no port is specified #401

Open mpvvliet opened 7 years ago

mpvvliet commented 7 years ago

How to reproduce

What was the result

The log file contains the following:

{{2017-10-17T08:53:02Z WARN Fail to insert a single event: Post https://host:80/stsAgent/connbeat?api_key=xxx: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)}}

Notice port 80 is inserted into the URL.

What expected

Connbeat uses the URL as-is.

Workaround

If you change the URL to include an explicit port (eg {{https://host:443/stsAgent/}}) connbeat does not change the port number.