Skip to content

Commit

Permalink
Update datadog.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas1312 authored Dec 28, 2023
1 parent 0bf9065 commit aeb0d35
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions base/science-tech-maths/programming/dev-tools/datadog/datadog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
## Logs format

Datadog has some reserved fields in the JSON structure and if you use these fields for something else, the log will not be indexed and then not visible in the log search page.
Here are the reserved fields: Date attributes: @timestamp, timestamp, _timestamp, Timestamp, eventTime, date, published_date, syslog.timestamp
Host attributes: host, hostname, syslog.hostname
Service attributes: service, syslog.appname, dd.service
Status attributes: status, severity, level, syslog.severity
Trace Id attributes: dd.trace_id, contextMap.dd.trace_id
Message attributes: message, msg, logSo for example, if you use { "status": "SUCCESS" } in your JSON log, it will not be indexed because status accepts only log level values such as INFO, DEBUG, etc...
Here are the reserved fields:

- Date attributes: @timestamp, timestamp, _timestamp, Timestamp, eventTime, date, published_date, syslog.timestamp
- Host attributes: host, hostname, syslog.hostname
- Service attributes: service, syslog.appname, dd.service
- Status attributes: status, severity, level, syslog.severity
- Trace Id attributes: dd.trace_id, contextMap.dd.trace_id
- Message attributes: message, msg, logSo for example, if you use { "status": "SUCCESS" } in your JSON log, it will not be indexed because status accepts only log level values such as INFO, DEBUG, etc...

0 comments on commit aeb0d35

Please sign in to comment.