concepts / log-json-schema / contexts / user-context

Log JSON Schema - context.user

Note: This context is automatically added to your logs through our libraries

The user context adds user level context data to your logs such as id, name, and email.

Example JSON Structure

1
2
3
4
5
6
7
8
9
{
  "context": {
    "user": {
      "id": "23",
      "name": "Ben Johnson",
      "email": "hi@timber.io"
    }
  }
}

Field descriptions

NameTypeDescription
context.user.idstringThe unique identifier of the current user. optional, max-length: 255
context.user.namestringThe name of the current user. optional, max-length: 255
context.user.emailstringThe email of the current user. optional, max-length: 255
context.user.typestringThe type of the current user. Helpful in the case of polymorphism. optional, max-length: 255
context.user.metaobjectAdditional metadata about the user. optional

Using this data

  1. Search it with queries like: user.id:123 or has:user.id
  2. Alert on it with threshold based alerts
  3. Graph & visualize it
  4. Access this data by viewing the log's metadata
Questions?

Chat with us, just click the talk button in the bottom right of this page.

Chat with us
Sign Up

Log better and solve problems faster, today. Install in under a minute.

Sign Up