Skip to main content

Ship logs to lumigo platform

Project description

CircleCI codecov Version

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


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

If you're not sure about the file name format, learn more about wheel file names.

lumigo_log_shipper-1.0.17-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file lumigo_log_shipper-1.0.17-py3-none-any.whl.

File metadata

  • Download URL: lumigo_log_shipper-1.0.17-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.4

File hashes

Hashes for lumigo_log_shipper-1.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 b223012b4e28d4a9a2c7e2311710847aa8b40563c491c585195869c731be8fa8
MD5 8258ff15c2ffbf05c6b980f1750b4ef7
BLAKE2b-256 29f70cdd18e2bc1d6d20c58f84561917a662ad4cef9a710884f7951cdedf029a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page