Skip to content
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

agent: route http logs through hclog #7748

Merged
merged 2 commits into from
Apr 20, 2020
Merged

agent: route http logs through hclog #7748

merged 2 commits into from
Apr 20, 2020

Conversation

notnoop
Copy link
Contributor

@notnoop notnoop commented Apr 19, 2020

Pipe http server log to hclog, so that it uses the same logging format
as rest of nomad logs. Also, supports emitting them as json logs, when
json formatting is set.

The http server logs are emitted as Trace level, as they are typically
represent HTTP client errors (e.g. failed tls handshakes, invalid headers,
etc).

Though, Panic logs represent server errors and are relayed as Error
level.

Fixes #7421

@notnoop notnoop requested a review from drewbailey April 19, 2020 20:35
@notnoop notnoop self-assigned this Apr 19, 2020
@notnoop notnoop added this to Triaged in Nomad - Community Issues Triage via automation Apr 19, 2020
Mahmood Ali added 2 commits April 20, 2020 10:33
Pipe http server log to hclog, so that it uses the same logging format
as rest of nomad logs.  Also, supports emitting them as json logs, when
json formatting is set.

The http server logs are emitted as Trace level, as they are typically
repsent HTTP client errors (e.g. failed tls handshakes, invalid headers,
etc).

Though, Panic logs represent server errors and are relayed as Error
level.
[ci skip]
@notnoop notnoop merged commit c4c6b27 into master Apr 20, 2020
Nomad - Community Issues Triage automation moved this from Triaged to Done Apr 20, 2020
@notnoop notnoop deleted the b-noisy-http-logs branch April 20, 2020 14:37
@github-actions
Copy link

github-actions bot commented Jan 9, 2023

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TCP healthchecks (SYN/FIN) cause noise in logs with TLS enabled
2 participants