Stacktape
Stacktape


Log Forwarding



Log forwarding is the process of sending log data from your applications and services to a centralized location or a third-party log management provider. While CloudWatch is the primary log management service in AWS, many users choose to forward logs to third-party providers for advanced features like real-time analysis, machine learning insights, and customizable dashboards, or to meet specific compliance requirements.

Stacktape makes it easy to forward logs to the endpoint of your choice.

Forwards logs to a specified destination for monitoring, analysis, or long-term storage.

Log forwarding is handled by an Amazon Kinesis Data Firehose delivery stream. You will incur costs based on the volume of data transferred (approximately $0.03 per GB). For detailed pricing, see the AWS Kinesis Firehose Pricing page.

Supported destinations:

For more information, refer to the Stacktape documentation on log forwarding.

If logs fail to be delivered after multiple retries, they are stored in a backup S3 bucket named {stackName}-{resourceName}-logs-{generatedHash}. The retry duration can be configured.

HTTP endpoint forwarding

You can forward logs to any HTTP endpoint that complies with the Firehose request and response specifications. Many third-party vendors are compliant with these specifications out of the box.

resources:
myFunction:
type: function
properties:
logging:
logForwarding:
type: http-endpoint
properties:
endpointUrl: https://my-endpoint.com
packaging:
type: stacktape-lambda-buildpack
properties:
entryfilePath: lambdas/js-lambda.js
HttpEndpointLogForwarding  API reference
type
Required
properties.endpointUrl
Required
properties.gzipEncodingEnabled
properties.parameters
properties.retryDuration
Default: 300
properties.accessKey

Datadog forwarding

Forwards logs to your Datadog account.

resources:
myFunction:
type: function
properties:
logging:
logForwarding:
type: datadog
properties:
apiKey: your_datadog_api_key
packaging:
type: stacktape-lambda-buildpack
properties:
entryfilePath: lambdas/js-lambda.js
DatadogLogForwarding  API reference
type
Required
properties.apiKey
Required
properties.endpointUrl
Default: https://aws-kinesis-http-intake.logs.datadoghq.com/v1/input

Highlight forwarding

Forwards logs to your Highlight project.

resources:
myFunction:
type: function
properties:
logging:
logForwarding:
type: highlight
properties:
projectId: your_highlight_project_id
packaging:
type: stacktape-lambda-buildpack
properties:
entryfilePath: lambdas/js-lambda.js
HighlightLogForwarding  API reference
type
Required
properties.projectId
Required
properties.endpointUrl
Default: https://pub.highlight.io/v1/logs/firehose

Contents