Skip to main content
https://travis-ci.org/ambitioninc/python-logentries-api.png https://coveralls.io/repos/ambitioninc/python-logentries-api/badge.png?branch=master

python-logentries-api

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.

Example

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(
    name=label['title'],
    regexes=['user_agent = /curl\/[\d.]*/'],
    tag_id=tag['id'],
    logs=[log['key']]
)

Installation

To install the latest release, type:

pip install python-logentries-api

To install the latest code directly from source, type:

pip install git+git://github.com/ambitioninc/python-logentries-api.git

Documentation

Full documentation is available at http://python-logentries-api.readthedocs.org

License

MIT License (see LICENSE)

Release files for python-logentries-api 0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-logentries-api 0.7
File Size Uploaded
python-logentries-api-0.7.tar.gz 13.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-logentries-api 0.7
File Interpreter ABI Platform
python_logentries_api-0.7-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 38.7 kB

Release files / python-logentries-api-0.7.tar.gz

Download URL python-logentries-api-0.7.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f7db0a8518d3b7be5d7c52b9dbc6bc85fd6e049f5861f6c280d49cf26a251ab4
BLAKE2b-256 checksum
How to use checksums
b58118bd06e91b8ff142e113196ae7382258c7c27f695a4e3e7c3b8949ed3424
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / python_logentries_api-0.7-py2.py3-none-any.whl

Download URL python_logentries_api-0.7-py2.py3-none-any.whl
Size 25.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9468ab88340eae94fde94c84b3d23b5d3ba1bbc7c458a20ff0ab99fffba7b4ac
BLAKE2b-256 checksum
How to use checksums
c3405d9e3db53bb00f3e5bb1fddbae5af72ca223b8486432bb49983723a6717c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.7 This release

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page