Datadog

Download 3
Last updated Jun 3, 2025

datadog-logs

Search for logs in the Datadog service.

datadog-logs [profile=PROFILE] [duration=NUM{mon|w|d|h|m|s}] [from=yyyyMMddHHmmss] [to=yyyyMMddHHmmss] [query=QUERY] [sort=SORT]
profile=PROFILE
Connect profile code of Datadog
duration=NUM{mon|w|d|h|m|s}
Scan only recent data. You should use s(second), m(minute), h(hour), d(day), mon(month) time unit. For example, 10s means data from 10 seconds earlier.
from=yyyyMMddHHmmss
Start time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
to=yyyyMMddHHmmss
End time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
query=QUERY
Datadog query string supports full-text search, attribute filters (@attribute:value), wildcards (,?), numeric comparisons (@response_time:>100), tag searches (env:prod), boolean operators (AND, OR, NOT), and ranges (@status:[400 TO 499]). Use quotes for exact matches. Default is '' (all logs). Example: service:web AND @status_code:>=400
sort=SORT
Sort order. default is '-timestamp'

Output Fields

FieldTypeNameDescription
_timeDateTimeLog timestamp
profileStringConnect profileDatadog connect profile code
idStringLog IDe.g. AwAAAZczaSmqtsPVlwAAABhBWmN6Y...
typeStringTypee.g. log
serviceStringServicee.g. store
hostStringHoste.g. i-089f591fd1d28b9b5
attributesMapAttributesKey-value pairs
msgStringMessageLog message
statusStringStatuse.g. info, error, warn
tagsListTagse.g. datadog.index:main, source:java