Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Ship logs to lumigo platform

Project description

CircleCI codecov Version

lumigo-python-log-shipper

lumigo-log-shipper is Lumigo's log shipper for Python

Usage

Install lumigo-log-shipper:

pip:

$ pip3 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/CustomerLogsWriteRole"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for lumigo-log-shipper, version 1.0.8
Filename, size File type Python version Upload date Hashes
Filename, size lumigo_log_shipper-1.0.8-py3-none-any.whl (12.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page