-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add: Zerolog with FluentBit Integration
This PR adds support for using a remote log aggregator using FluentBit. FluentBit configuration is out of scope for this repo, but we do have a sample configuration for it. We're currently using JSON formatted logs with the following template: ```json {"time":"${time_rfc3339}","request_id":"${request_id}","remote_ip":"${remote_ip}", "host":"${host}","method":"${method}","uri":"${uri}","user_agent":"${user_agent}", "status":"${status}","error":"${error}","latency":"${latency}","latency_human":"${latency_human}","bytes_in":"${bytes_in}","bytes_out":"${bytes_out}"} ``` Fields Included for logs (For all HTTP requests): - Timestamp - RequestID - RemoteIP - Host - Method - URI - User Agent - Status - Error - Latency - Human Latency - Bytes In - Bytes Out If we need, we can add more fields in the future and also connect with a different log provider mechanism. Signed-off-by: jay-dee7 <jasdeepsingh.uppal@gmail.com>
- Loading branch information
Showing
9 changed files
with
212 additions
and
79 deletions.
There are no files selected for viewing
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
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
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
Oops, something went wrong.