datadog get-logs-hourly-usage
Get hourly usage for logs
Description
Get hourly usage for logs
Synopsis
datadog get-logs-hourly-usage
[--site <site>]
--start <start>
[--end <end>]
[--index <index>]
[--retention]
Arguments
site
- (string)
Site where this command will be executed
Example: --site "site-1"
Default: input.site
Attributes: optional
start
- (string)
Datetime in ISO-8601 format, UTC,for usage beginning at this hour
Example: --start "start-1"
Default: _None_
Attributes: required
end
- (string)
Datetime in ISO-8601 format, UTC, for usage ending before this hour
Example: --end "end-1"
Default: _None_
Attributes: optional
index
- (string)
Comma-separated list of log index names
Example: --index "index-1"
Default: _None_
Attributes: optional, multiple allowed
retention
- (bool)
Get hourly usage for indexed logs by retention period
Example: --retention
Default: false
Attributes: optional
Examples
Input:
Output:ID ORG-NAME LOGS-INGESTED BILLABLE-BYTES LOGS-REHYDRATED
b9fd8016-82a9-11ed-82e4-da7ad0900005 maira 0 0 0
b9fd8016-82a9-11ed-82e4-da7ad0900005 maira 0 0 0
b9fd8016-82a9-11ed-82e4-da7ad0900005 maira 0 0 0
b9fd8016-82a9-11ed-82e4-da7ad0900005 maira 0 0 0
b9fd8016-82a9-11ed-82e4-da7ad0900005 maira 0 0 0
b9fd8016-82a9-11ed-82e4-da7ad0900005 maira 0 0 0
b9fd8016-82a9-11ed-82e4-da7ad0900005 maira 0 0 0
b9fd8016-82a9-11ed-82e4-da7ad0900005 maira 0 0 0
b9fd8016-82a9-11ed-82e4-da7ad0900005 maira 0 0 0
b9fd8016-82a9-11ed-82e4-da7ad0900005 maira 0 0 0
Access Control
To use this command, you need access to the following:
Field | Value |
---|---|
Action | "read" |
Service Type | "datadog" |
Service Instance | |
Namespace | |
Object Type | "logs" |
Object ID |
Please see Access Control for details.