Metadata-Version: 2.1
Name: log-proxy
Version: 1.3
Summary: Proxy the log from one system to another
Home-page: https://github.com/fkantelberg/log-proxy
Author: Florian Kantelberg
Author-email: florian.kantelberg@mailbox.org
License: MIT
Keywords: logging socket proxy
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Provides-Extra: full
Requires-Dist: influxdb ; extra == 'full'
Requires-Dist: psycopg2 ; extra == 'full'
Requires-Dist: pymysql ; extra == 'full'
Requires-Dist: watchdog ; extra == 'full'
Provides-Extra: influxdb
Requires-Dist: influxdb ; extra == 'influxdb'
Provides-Extra: mysql
Requires-Dist: pymysql ; extra == 'mysql'
Provides-Extra: observe
Requires-Dist: watchdog ; extra == 'observe'
Provides-Extra: postgres
Requires-Dist: psycopg2 ; extra == 'postgres'

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/log-proxy)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/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>`


