This section contains general log information. There can be additional records added both resource attributes describing source as well as log record attributes to add structured log record data.
Query logs in Grail.
fetch logs
The log module, in certain situations, may associate multiple process group instances with a single log.
This can occur when more than one process group instance opens a file in write mode or if there are multiple
process group instances in a single container. In such cases, the
dt.entity.process_group_instance
and dt.entity.process_group
may be reported as arrays. To prepare queries for such situations, use matchesValue
instead of ==
for equality checks.
content
No keepalive from datasource statsd. Restarting
dt.entity.process_group
matchesValue
instead of ==
for equality checks.entity-id
PROCESS_GROUP-E0D8F94D9065F24F
dt.entity.process_group_instance
matchesValue
instead of ==
for equality checks.entity-id
PROCESS_GROUP_INSTANCE-E0D8F94D9065F24F
dt.source_entity
entity-id
HOST-E0D8F94D9065F24F
; PROCESS_GROUP_INSTANCE-E0D8F94D9065F24F
event.type
permission
LOG
log.iostream
stdout
; stderr
log.source
/var/log/messages
; Windows Event Log
; Docker Container Output
; stdout
loglevel
ERROR
; INFO
; TRACE
process.technology
[['Java', 'Tomcat'], ['Go', 'Envoy']]
span_id
span_id
is a 8-byte id and hex-encoded if shown as a string.f76281848bd8288c
status
ERROR
; WARN
; INFO
; NONE
timestamp
1649822520123123123
trace_id
trace_id
is a 16-byte id and hex-encoded if shown as a string.357bf70f3c617cb34584b31bd4616af8
Value of this attribute will be based on one of dt.entity.<type>
attributes value. That means that both attributes dt.source_entity and corresponding dt.entity.<type>
will be set to the same ID.
Can contain e.g. a file path, standard output, an URI etc., depending on log stream type. The value should be stable for one logical source, so e.g. not affected by log file rotation digits.