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

Feature: extend logging #1685

Merged
merged 4 commits into from
Jun 17, 2024
Merged

Feature: extend logging #1685

merged 4 commits into from
Jun 17, 2024

Conversation

talpermann2
Copy link
Collaborator

@talpermann2 talpermann2 commented Jun 14, 2024

PR Type

[ ] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] CI-related changes
[ ] Documentation content changes
[ ] Application / infrastructure changes
[ ] Other:

What Is the Current Behavior?

Currently we are missing some information in log (host, request_time and upstream_response_length). It`s an extension to PR #1086

What Is the New Behavior?

  • Add missing information to main
  • Adjust log format json

Does this PR Introduce a Breaking Change?

[ ] Yes
[X] No

Other Information

Format Name Log Example
main 13.74.138.162 - - [14/Jun/2024:05:29:01 +0000] "GET /punchout.40df832f6c998a38.js HTTP/1.1" 200 3582 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/101.0.4951.54 Safari/537.36" "13.74.138.162" 0.036 "MISS" "uat.example.com" "3582" 0.034
json {"date_access": "2024-06-14T05:29:01+00:00","http": { "ident": "", "method": "GET", "referer": "-", "uri": "/punchout.40df832f6c998a38.js", "host": "uat.example.com", "request_id": "ffd64958f52f2ccb03b458725026cba7", "request_length": 506, "request_time": 0.034, "status_code": 200, "useragent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/101.0.4951.54 Safari/537.36", "protocol": "HTTP/1.1", "x_forward_for": "13.74.138.162"},"ingress": { "name": "pwa-example-pwa-main-cache", "namespace": "pwa-example-uat"},"network": { "bytes_written": 3582, "remote_ip": "13.74.138.162"},"upstream": { "name": "pwa-example-uat-pwa-example-uat-pwa-main-cache-4200", "address_list": "10.240.1.147:80", "status_code": "200", "response_time": "0.036", "response_length": "3582", "cache_status":"MISS"}}

AB#97423

@talpermann2 talpermann2 requested a review from shauke June 14, 2024 06:12
@shauke shauke added this to the 5.2 milestone Jun 14, 2024
@shauke shauke merged commit 480447a into develop Jun 17, 2024
22 checks passed
@shauke shauke deleted the feature/adjust_logformt branch June 17, 2024 13:37
SGrueber added a commit that referenced this pull request Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants