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

Log JSON Schema - context.system

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

The system context adds server / system related context to your logs.

Example JSON Structure

1
2
3
4
5
6
7
8
9
10
{
  "context": {
    "system": {
      "hostname": "server123.myhost.com",
      "ip": "123.34.32.123",
      "pid": "4576",
      "process_name": "rails/server"
    }
  }
}

Field descriptions

NameTypeDescription
context.system.hostnamestringThe system hostname identified by the hostname command.
context.system.ipstringThe IP of the machine the log was generated on.
context.system.pidintegerThe PID of the process the log was generated in.
context.system.process_namestringThe name of the process the log was generated in.

Using this data

  1. Search it with queries like: system.hostname:server123.myhost.com
  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