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

http access logging #4342

Closed
msillence opened this issue Feb 16, 2024 · 4 comments
Closed

http access logging #4342

msillence opened this issue Feb 16, 2024 · 4 comments
Labels
type/enhancement New feature or request

Comments

@msillence
Copy link

Feature or Problem Description

it appears this is based on Quarkus but turning on access logging doesn't seem to yeild annything
QUARKUS_HTTP_ACCESS_LOG_ENABLED=true
https://quarkus.io/guides/all-config#quarkus-vertx-http_quarkus-http-access-log-enabled

I added this to the JAVA_TOOL_OPTIONS and could see it being picked up

Proposed Solution

Have the ability to run on access logging to help diagnose issues

In the end I resorted to using mitmproxy to see what was happening

Additional Context

Running this using the docker image

@msillence msillence added the type/enhancement New feature or request label Feb 16, 2024
@apicurio-bot
Copy link

apicurio-bot bot commented Feb 16, 2024

Thank you for reporting an issue!

Pinging @andreaTP to respond or triage.

@msillence
Copy link
Author

could I add that these two related parameters also look very useful

  • quarkus.rest-client.logging.body-limit=1024
  • quarkus.rest-client.logging.scope=request-response

@carlesarnal
Copy link
Member

carlesarnal commented Feb 28, 2024

I just enabled them on latest-snapshot by setting QUARKUS_HTTP_ACCESS_LOG_ENABLED=true and, when I do operations like artifact creation I can see logs like this one ->

2024-02-28T15:02:57.351125342Z 2024-02-28 15:02:57 INFO [io.quarkus.vertx.http.runtime.filters.accesslog.JBossLoggingAccessLogReceiver] (executor-thread-34) "apicurio-registry.access method="POST" path="/apis/registry/v2/groups/avro-maven-with-references-auto/artifacts?ifExists=RETURN_OR_UPDATE&canonical=true" response_code="200" response_time="-" remote_ip="_____" remote_user="-" user_agent="Vert.x-WebClient/4.4.6""

Do you mind elaborating a bit more on what is not working, what you have tried, which version are you using etc?

Thanks!

@carlesarnal
Copy link
Member

Closing as stale, if the suggested solution does not work, please, re-open and we can continue the discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants