The JFrog Router has a JSON based access log containing all the requests that went through the Router, including service service communication.
Below is an example of an entry in the Router request log (router-request.log)
Router Request Log Entry
{
"BackendAddr": "http://localhost:8049",
"ClientAddr": "127.0.0.1:61899",
"DownstreamContentSize": 2,
"DownstreamStatus": 200,
"Duration": 8353000,
"RequestMethod": "GET",
"RequestPath": "/router/api/v1/system/ping",
"StartUTC": "2020-11-12T11:53:03.605300906Z",
"request_Uber-Trace-Id": "4ccb40200c199346:1a3f95ce1b27711d:71e15f8b6031c9e9:0",
"request_User-Agent": "curl/7.54.0",
"time": "2019-08-05T14:42:09+03:00",
"level": "info",
"msg": ""
}Value | Description | Example |
|---|---|---|
BackendAddr | Address of the backend server the request was forwarded to |
|
ClientAddr | The IP address of the remote caller in its original form (ipv4 or ipv6, usually IP:port). |
|
DownstreamContentSize | The number of bytes in the response entity returned to the client. |
|
DownstreamStatus | The HTTP return code for the request. |
|
Duration | The time in nanoseconds for the request to process. |
|
RequestMethod | The HTTP request method, in UPPERCASE. |
|
RequestPath | The relative URL for the request. |
|
StartUTC | The date and time request processing has started, in UTC time with the standard format: [yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSSZ]. |
|
request_Uber-Trace-Id | The full trace id value. |
|
request_User-Agent | The request user agent. |
|
time | The date and time the request was completed and entered into the log file, in UTC time with the standard format: [yyyy-MM-dd'T'HH:mm:ss.SSSZ] |
|
time / msg | Default info and empty message |