Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Fatal1ty/logstash-easy
Very easy to use Logstash logging handler
https://github.com/Fatal1ty/logstash-easy
Last synced: 3 days ago
JSON representation
Very easy to use Logstash logging handler
- Host: GitHub
- URL: https://github.com/Fatal1ty/logstash-easy
- Owner: Fatal1ty
- License: mit
- Created: 2016-03-28T15:11:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-22T12:06:53.000Z (about 7 years ago)
- Last Synced: 2024-10-25T21:56:23.568Z (9 days ago)
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
logstash-easy
=============.. image:: https://requires.io/github/Fatal1ty/logstash-easy/requirements.svg?branch=master
:target: https://requires.io/github/Fatal1ty/logstash-easy/requirements/?branch=master
:alt: Requirements Status.. image:: https://img.shields.io/pypi/v/logstash-easy.svg
:target: https://pypi.python.org/pypi/logstash-easy.. image:: https://img.shields.io/pypi/pyversions/logstash-easy.svg
:target: https://pypi.python.org/pypi/logstash-easy.. image:: https://img.shields.io/badge/license-MIT-blue.svg
:target: https://raw.githubusercontent.com/Fatal1ty/logstash_easy/master/LICENSEVery easy to use Logstash logging handler.
Installation
============Install via pip:
::
pip install logstash-easy
Usage
=====Just write one line of code and enjoy:
.. code:: python
import logstash_easy
By default logging messages will be sent to ``localhost:5000`` but you
can set environment variables ``LOGSTASH_HOST``, ``LOGSTASH_PORT`` and
``LOGSTASH_TAG`` for tagging your application. If you define
``LOGSTASH_APP_NAME`` variable then ``app_name`` field will be added
to all logging messages (it can be used for creating Elasticsearch
indices per application).