Skip to main content

A python wrapper for the Logentries API

Project description


This is a Python wrapper for the Logentries API. The API object terms follow the semantics from the Logentries website, not the Logentries API.

The InactivityAlert and AnomalyAlert classes simulate a user login to create the appropriate alerts.

This is not endorsed or provided by Logentries, and no commercial support is provided.


To create a new tag called ‘user_agent = curl’ and associate it with a log called ‘someset/somelog’:

from logentries_api import Tags, Hooks, Labels, LogSets

label = Labels().create('user_agent = curl')
log = LogSets().get('someset/somelog')
tag = Tags().create(label['sn'])
hook = Hooks().create(
    regexes=['user_agent = /curl\/[\d.]*/'],


To install the latest release, type:

pip install python-logentries-api

To install the latest code directly from source, type:

pip install git+git://


Full documentation is available at


MIT License (see LICENSE)

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 python-logentries-api, version 0.7
Filename, size File type Python version Upload date Hashes
Filename, size python_logentries_api-0.7-py2.py3-none-any.whl (25.7 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size python-logentries-api-0.7.tar.gz (13.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page