ECS Field Reference
Log
ECS Version:

Log

Details about the event's logging mechanism.

Fields

Field Summary

FieldTypeLevelDescription
log.file.pathkeywordExtendedFull path to the log file this event came from.
log.levelkeywordCoreLog level of the log event.
log.loggerkeywordCoreName of the logger.
log.origin.file.linelongExtendedThe line number of the file which originated the log event.
log.origin.file.namekeywordExtendedThe code file which originated the log event.
log.origin.functionkeywordExtendedThe function which originated the log event.
log.syslogobjectExtendedSyslog metadata
log.syslog.appnamekeywordExtendedThe device or application that originated the Syslog message.
log.syslog.facility.codelongExtendedSyslog numeric facility of the event.
log.syslog.facility.namekeywordExtendedSyslog text-based facility of the event.
log.syslog.hostnamekeywordExtendedThe host that originated the Syslog message.
log.syslog.msgidkeywordExtendedAn identifier for the type of Syslog message.
log.syslog.prioritylongExtendedSyslog priority of the event.
log.syslog.procidkeywordExtendedThe process name or ID that originated the Syslog message.
log.syslog.severity.codelongExtendedSyslog numeric severity of the event.
log.syslog.severity.namekeywordExtendedSyslog text-based severity of the event.
log.syslog.structured_dataflattenedExtendedStructured data expressed in RFC 5424 messages.
log.syslog.versionkeywordExtendedSyslog protocol version.

Field Details

log.file.path

Type: keyword

Level: Extended

Description: Full path to the log file this event came from.

Example: /var/log/fun-times.log

Indexed: true

log.level

Type: keyword

Level: Core

Description: Log level of the log event.

Example: error

Indexed: true

log.logger

Type: keyword

Level: Core

Description: Name of the logger.

Example: org.elasticsearch.bootstrap.Bootstrap

Indexed: true

log.origin.file.line

Type: long

Level: Extended

Description: The line number of the file which originated the log event.

Example: 42

Indexed: true

log.origin.file.name

Type: keyword

Level: Extended

Description: The code file which originated the log event.

Example: Bootstrap.java

Indexed: true

log.origin.function

Type: keyword

Level: Extended

Description: The function which originated the log event.

Example: init

Indexed: true

log.syslog

Type: object

Level: Extended

Description: Syslog metadata

Indexed: true

log.syslog.appname

Type: keyword

Level: Extended

Description: The device or application that originated the Syslog message.

Example: sshd

Indexed: true

log.syslog.facility.code

Type: long

Level: Extended

Description: Syslog numeric facility of the event.

Example: 23

Indexed: true

log.syslog.facility.name

Type: keyword

Level: Extended

Description: Syslog text-based facility of the event.

Example: local7

Indexed: true

log.syslog.hostname

Type: keyword

Level: Extended

Description: The host that originated the Syslog message.

Example: example-host

Indexed: true

log.syslog.msgid

Type: keyword

Level: Extended

Description: An identifier for the type of Syslog message.

Example: ID47

Indexed: true

log.syslog.priority

Type: long

Level: Extended

Description: Syslog priority of the event.

Example: 135

Indexed: true

log.syslog.procid

Type: keyword

Level: Extended

Description: The process name or ID that originated the Syslog message.

Example: 12345

Indexed: true

log.syslog.severity.code

Type: long

Level: Extended

Description: Syslog numeric severity of the event.

Example: 3

Indexed: true

log.syslog.severity.name

Type: keyword

Level: Extended

Description: Syslog text-based severity of the event.

Example: Error

Indexed: true

log.syslog.structured_data

Type: flattened

Level: Extended

Description: Structured data expressed in RFC 5424 messages.

Indexed: true

log.syslog.version

Type: keyword

Level: Extended

Description: Syslog protocol version.

Example: 1

Indexed: true