Ship logs to lumigo platform
Project description
lumigo-python-log-shipper
In case your log group is already subscribed to a Lambda as a destination, use this library to send logs to Lumigo. Please contact Lumigo's support through the platform chat so we can enable this feature for you.
Usage
Install lumigo-log-shipper
:
pip:
$ pip install lumigo-log-shipper
In your lambda's code:
from lumigo_log_shipper import lumigo_shipper
def handler(event, context):
lumigo_shipper.ship_logs(event)
With programtic error:
from lumigo_log_shipper import lumigo_shipper
def handler(event, context):
lumigo_shipper.ship_logs(event, ["WARNING-EXAMPLE"])
Add to your lambda's serverless.yml
iamRoleStatements:
- Effect: Allow
Action:
- "firehose:PutRecordBatch"
Resource:
- "arn:aws:firehose:[YOUR-REGION]:114300393969:deliverystream/prod_logs-edge-stfl_customer-logs-firehose"
- Effect: Allow
Action:
- "sts:AssumeRole"
Resource:
- "arn:aws:iam::114300393969:role/prod-CustomerLogsWriteRole"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for lumigo_log_shipper-1.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b35df07a7d8503c73259a224c891e7dd1a35b3040d8bd07e69d96bb62548244b |
|
MD5 | ecaf98e5d1b83bd32d15ef7789bb0650 |
|
BLAKE2b-256 | 349a4d36916ed60d5368bd1e6381c4dc789e58edb96a2c86de8f6dc5e062f146 |