System log forwarder
The System log forwarder (aws.greengrass.SystemLogForwarder
) uploads active system logs directly
to Amazon CloudWatch using the CloudWatch HTTPS API.
Important
This component will only forward systemd-journald logs generated during runtime. For more
information on systemd-journald logs, see systemd-journald
Note
This component requires specific permissions to create and manage CloudWatch log groups and streams.
Versions
This component has the following versions:
-
2.0.x
Type
This component is a generic component (aws.greengrass.generic
). The Greengrass nucleus runs the component's lifecycle
scripts.
For more information, see Component types.
Operating system
This component must be installed on systemd-based Linux systems.
Requirements
This component has the following requirements:
The component requires access to create log and stream groups in CloudWatch as well as permission to perform the PutLogEvents HTTP call. You must add the following policy to your Greengrass device's role alias:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "logs:CreateLogGroup", "logs:CreateLogStream", "logs:DescribeLogGroups", "logs:DescribeLogStreams", "logs:PutLogEvents" ], "Resource": "*" } ] }
Warning
The Resource value "*" in the example above is overly permissive. Consider limiting the scope according to your security requirements.
Endpoints and ports
This component must be able to perform outbound requests to the following endpoints and ports, in addition to endpoints and ports required for basic operation. For more information, see Allow device traffic through a proxy or firewall.
Endpoint | Port | Required | Description |
---|---|---|---|
|
443 | No |
Required if you write logs to CloudWatch Logs. |
Dependencies
When you deploy a component, AWS IoT Greengrass also deploys compatible versions of its dependencies. This means that you must meet the requirements for the component and all of its dependencies to successfully deploy the component. This section lists the dependencies for the released versions of this component and the semantic version constraints that define the component versions for each dependency. You can also view the dependencies for each version of the component in the AWS IoT Greengrass console
Configuration
This component provides the following configuration parameters that you can customize when you deploy the component.
Changelog
The following table describes the changes in each version of the component.
Version |
Changes |
---|---|
2.0.x |
Initial version. |