Ettore Di Giacinto
b129694ffe
feat(http): add an opt-in client address to the access log
...
Operators could not tell which client sends requests that are refused
with 401. Add --log-client (LOCALAI_LOG_CLIENT, off by default). When
set, the HTTP request log line also carries duration, remote, user_agent
and, when present, request_id.
The address is the TCP peer. It is never read from X-Forwarded-For,
X-Real-Ip or Forwarded, because LocalAI has no trusted-proxy setting and
any client can forge those headers. Behind a reverse proxy the value is
the proxy address. Authorization headers, cookies, query strings and
bodies are never logged. User agent and request id are cut to a fixed
length and have control characters replaced.
Assisted-by: Claude:claude-sonnet-5-5 go gofmt
2026-11-03 14:32:55 +00:00
..
2026-05-30 12:04:10 +02:00
2026-11-01 12:08:23 +01:00
2026-11-02 23:50:40 +00:00
2026-11-02 23:50:40 +00:00
2026-11-02 23:50:40 +00:00
2026-11-02 23:50:40 +00:00
2026-11-02 23:50:40 +00:00
2026-11-01 12:08:23 +01:00
2026-08-07 18:00:45 +02:00
2026-11-01 12:08:23 +01:00
2026-11-03 14:32:55 +00:00
2026-10-29 22:06:41 +01:00
2026-10-29 22:06:41 +01:00
2026-04-13 11:00:29 +02:00
2026-11-02 23:50:40 +00:00
2026-11-02 23:50:40 +00:00
2026-11-02 23:50:40 +00:00
2026-06-16 12:16:34 +02:00
2026-11-01 12:08:23 +01:00
2026-11-02 18:48:39 +01:00
2026-11-03 10:58:46 +00:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-02 18:48:39 +01:00
2026-11-01 12:08:23 +01:00
2024-05-21 14:33:47 +02:00
2026-10-14 01:06:14 +02:00
2026-10-14 01:06:14 +02:00
2026-07-06 12:53:45 +02:00
2026-07-23 00:03:21 +02:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-09-27 21:18:38 +02:00
2026-10-23 01:00:07 +02:00
2026-06-20 22:44:44 +02:00
2026-06-20 22:44:44 +02:00
2026-10-29 22:06:41 +01:00
2026-10-14 01:06:14 +02:00
2026-10-14 01:06:14 +02:00
2026-10-14 01:06:14 +02:00
2026-10-14 01:06:14 +02:00
2026-07-19 12:46:50 +02:00
2026-04-21 21:53:10 +02:00
2026-10-29 22:06:41 +01:00
2026-07-06 12:56:09 +02:00
2026-07-14 17:46:15 +02:00
2026-10-29 22:06:41 +01:00
2026-10-14 01:06:14 +02:00
2026-10-14 01:06:14 +02:00
2026-10-14 01:06:14 +02:00
2026-10-11 17:39:22 +02:00
2026-10-14 01:06:14 +02:00
2026-09-27 07:42:21 +00:00
2026-09-27 07:42:21 +00:00
2026-07-30 12:13:00 +02:00
2026-03-22 00:57:15 +01:00
2026-03-22 00:57:15 +01:00
2026-10-16 08:45:28 +02:00
2026-10-13 08:08:43 +00:00
2026-05-25 09:28:27 +02:00
2026-09-18 06:12:03 +01:00
2026-09-18 06:12:03 +01:00
2026-07-23 16:50:50 +02:00
2026-07-23 16:50:50 +02:00
2026-07-19 12:01:36 +02:00
2026-07-20 22:12:39 +02:00
2026-07-19 12:01:36 +02:00
2026-10-29 22:06:41 +01:00
2026-11-01 12:08:23 +01:00
2026-10-11 00:30:09 +02:00
2026-11-01 12:08:23 +01:00
2026-10-10 20:27:28 +02:00
2026-10-08 09:56:12 +02:00
2026-10-08 09:56:12 +02:00
2026-09-27 07:42:20 +00:00
2026-09-27 07:42:21 +00:00
2026-10-24 22:47:04 +02:00
2026-10-14 01:06:14 +02:00
2026-07-23 16:50:50 +02:00
2026-07-29 12:50:22 +02:00
2026-09-27 07:42:21 +00:00
2026-11-01 12:08:23 +01:00
2026-10-19 23:42:40 +02:00
2026-08-24 19:11:16 +00:00
2026-08-24 19:11:16 +00:00
2026-08-22 22:44:03 +02:00
2026-08-24 19:11:16 +00:00
2026-10-29 22:06:41 +01:00
2026-11-01 12:08:23 +01:00
2026-07-22 09:30:23 +02:00
2026-07-22 09:30:23 +02:00
2026-04-28 12:58:49 +00:00
2026-08-10 10:18:47 +02:00
2026-06-07 22:09:02 +02:00
2026-04-13 11:00:29 +02:00
2026-06-11 08:43:12 +01:00
2026-06-30 09:01:22 +02:00
2026-08-18 09:37:43 +02:00
2026-10-27 10:27:45 +01:00
2026-10-25 08:50:08 +00:00
2026-10-04 09:34:21 +02:00
2026-08-18 09:37:43 +02:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-07-16 22:39:59 +02:00
2026-07-16 22:39:59 +02:00
2026-11-01 12:08:23 +01:00
2026-11-02 23:50:40 +00:00
2026-09-27 21:18:38 +02:00
2026-09-27 21:18:38 +02:00
2026-11-01 12:08:23 +01:00
2026-07-14 17:46:15 +02:00
2026-07-14 17:46:15 +02:00
2026-10-11 00:30:09 +02:00
2026-10-11 00:30:09 +02:00
2026-10-13 08:27:24 +00:00
2026-08-06 12:10:56 +02:00
2026-08-06 12:10:56 +02:00
2026-06-21 21:07:10 +02:00
2026-11-01 18:41:33 +01:00