AWS - CloudWatchLogs

Amazon Web Services CloudWatch Logs (logs).

IT Services · AWS - CloudWatchLogs

Configuration parameters

  • defaultRegion — Default Region (required)
  • roleArn — Role Arn
  • roleSessionName — Role Session Name
  • sessionDuration — Role Session Duration
  • credentials — Access Key
  • access_key — Access Key
  • secret_key — Secret Key
  • timeout — Timeout
  • retries — Retries
  • endpoint_url — PrivateLink service URL.
  • sts_endpoint_url — STS PrivateLink URL.
  • sts_regional_endpoint — AWS STS Regional Endpoints
  • proxy — Use system proxy settings

Commands (13)

  • aws-logs-create-log-group

    Creates a log group with the specified name.

  • aws-logs-create-log-stream

    Creates a log stream for the specified log group.

  • aws-logs-delete-log-group

    Deletes the specified log group and permanently deletes all the archived log events associated with the log group.

  • aws-logs-delete-log-stream

    Deletes the specified log stream and permanently deletes all the archived log events associated with the log stream.

  • aws-logs-delete-metric-filter

    Deletes the specified metric filter.

  • aws-logs-delete-retention-policy

    Deletes the specified retention policy. Log events do not expire if they belong to log groups without a retention policy.

  • aws-logs-describe-log-groups

    Lists the specified log groups. You can list all your log groups or filter the results by prefix. The results are ASCII-sorted by log group name.

  • aws-logs-describe-log-streams

    Lists the log streams for the specified log group. You can list all the log streams or filter the results by prefix. You can also control how the results are ordered.

  • aws-logs-describe-metric-filters

    Lists the specified metric filters. You can list all the metric filters or filter the results by log name, prefix, metric name, or metric namespace.

  • aws-logs-filter-log-events

    Lists log events from the specified log group. You can list all the log events or filter the results using a filter pattern, a time range, and the name of the log stream.

  • aws-logs-put-log-events

    Uploads a batch of log events to the specified log stream. You must include the sequence token obtained from the response of the previous call. An upload in a newly created log stream does not require a sequence token. You can also get the sequence token using DescribeLogStreams . If you call PutLogEvents twice within a narrow time period using the same value for sequenceToken , both calls may be successful, or one may be rejected.

  • aws-logs-put-metric-filter

    Creates or updates a metric filter and associates it with the specified log group. Metric filters allow you to configure rules to extract metric data from log events ingested through PutLogEvents .

  • aws-logs-put-retention-policy

    Sets the retention of the specified log group. A retention policy allows you to configure the number of days for which to retain log events in the specified log group.