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.

Features

  • Create a logging server
  • Forward of logs to another logging server
  • Read logs from stdin
  • Secure the transmission with TLS

Usage examples

Start a logging server

Without SSL: $ python3 -m log_proxy

With SSL: $ python3 -m log_proxy --cert <...> --key <...>

Start a logging server and forward logs to another server

Without SSL: $ python3 -m log_proxy -f <IP>

With SSL: $ python3 -m log_proxy -f <IP> --forward-ca <...>

Forward the a file to a logging server

$ tail -f <file> | python3 -m log_proxy --log-stdin --no-server -f <IP>

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

log_proxy-1.3-py3-none-any.whl (12.7 kB view hashes)

Uploaded Python 3

Supported by

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