etcd-io / etcd-io/etcd

Add client IP information to etcd log

Open
#21,608 8 comments 0 reactions 0 assignees View on GitHub
type/feature
Dominant language
Go
Stars
52.3k
Forks
10.5k
Avg merge
3d 1h
Merged PRs (30d)
44

Description

### What would you like to be added?

```json
{
"level": "info",
"ts": "2026-04-13T23:24:49.890285+0800",
"clientip":"x.x.x.x", // can we add ip field ?
"caller": "auth/simple_token.go:175",
"msg": "deleted a simple token",
"user-name": "root"
}
{
"level": "warn",
"ts": "2026-04-13T23:36:18.211339+0800",
"clientip":"x.x.x.x", // can we add ip field ?
"caller": "etcdserver/util.go:167",
"msg": "apply request took too long",
"took": "9.999968424s",
"expected-duration": "100ms",
"prefix": "read-only range ",
"request": "key:\"/tt/tangram/sso_http/\" range_end:\"/tt/tangram/sso_http0\" ",
"response": "",
"error": "auth: invalid auth token"
}
```

### Why is this needed?

Added Client IP field for easier troubleshooting.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.