dcloud monitoring logs filter

Search an app’s log lines, newest first

IAM monitoring:FilterLogEventsRead

start defaults to a day before end, end to now. contains is a case-insensitive substring. limit is at most 1000. Logs are kept 7 days.

Synopsis

dcloud monitoring logs filter --resource-id resourceId [flags]

Flags

  • --resource-typeOptional

    enum

    What ships the logs: app (default), schedule, function, event_rule, load_balancer or cdn_distribution

    One of: app, schedule, function, event_rule, load_balancer, cdn_distribution

  • --resource-idRequired

    string

    Its id, a uuid. An id the organization does not have answers no lines, not 404

    Constraints: uuid

  • --startOptional

    string

    ISO 8601; a day before end when omitted. Must not be after end

  • --endOptional

    string

    ISO 8601; now when omitted

  • --containsOptional

    string

    Only lines containing this, case-insensitive; up to 200 characters, % and _ literal

  • --streamOptional

    string

    Only this stream, exactly (an app’s are <service>/stdout and <service>/stderr); up to 100 characters

  • --limitOptional

    number

    Lines to return, newest first, 1–1000 (default 200)

    Constraints: integer

Example

dcloud monitoring logs filter --resource-id 00000000-0000-0000-0000-000000000000

Generated from the API description, the same one the API checks requests against and the CLI is built from.