Skip to main content

Proxy the log from one system to another

Project description

License: MIT PyPI - Python Version Code style: black

log-proxy

This package implements a logging server which can be secured with TLS. The server can forward the logs to another server allowing the definition of gateways. The transmission happens using JSON instead of pickle used by pythons SocketHandler to prevent code execution.

The main purpose of this project is to aggregate logs via the network inside of a database like PostgreSQL or MongoDB. The client is able to collect the logs from different sources.

This tool is not designed to later process, view, or manage the logs inside of the database.

Features

  • Log aggregation and proxy servers
  • Forward the logs in a server to another server or database (MongoDB, PostgreSQL)
  • Logging handlers to send logs to the logging server from existing apps
  • Client tool for testing
  • Secure the transmission with TLS and token authentication

Usage examples

Start a logging server and forward the logs to a MongoDB database

$ python3 -m log_proxy server mongodb --db logs --db-table log <...>

Start a logging server and forward the logs to the next server

$ python3 -m log_proxy server socket --forward <host>

Start client for testing

$ python3 -m log_proxy client --forward <host> --log-stdin

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.

log_proxy-2.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file log_proxy-2.0-py3-none-any.whl.

File metadata

  • Download URL: log_proxy-2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for log_proxy-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8a81b98717b1530e66c00859967a5a0e553c291776d84aeedc7925153d82a8d
MD5 891a9779fafbaeffeff4982399ead94e
BLAKE2b-256 4a4a0b3eb3dddb9e83f14d63f9673d989cb44a2b59d71b6a023e42cb65d457bf

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