Skip to main content

A syslog proxy server forwarding messages to Loggly via HTTPS

Project description

This is a syslog server proxy. The messages it receives are forwarded to Loggly via HTTPS. The server uses gevent and keep-alive http sessions for performance.

Usage:

logglyproxy -c config_file

Here’s an example config file:

[logglyproxy]
bind_address = 127.0.0.1
port = 5140
apikey = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

And an LSB init script:

#! /bin/sh
### BEGIN INIT INFO
# Provides:          logglyproxy
# Required-Start:    $local_fs $remote_fs $network $syslog
# Required-Stop:     $local_fs $remote_fs $network $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# X-Interactive:     false
# Short-Description: Start/stop logglyproxy

DAEMON="logglyproxy"
DAEMON_USR=logglyproxy
DAEMON_GRP=logglyproxy
INSTALLPATH=/path/to/logglyproxy/virtualenv
PIDFILE=/var/run/logglyproxy.pid

. /lib/lsb/init-functions

case "$1" in
  start)
    log_begin_msg "Starting logglyproxy server..."

    # Activate the virtual environment
    . $INSTALLPATH/bin/activate

    start-stop-daemon --background --make-pidfile \
        --start --pidfile $PIDFILE \
        --user $DAEMON_USR --group $DAEMIN_GRP \
        --chuid $DAEMON_USR \
        --exec "$INSTALLPATH/bin/$DAEMON"  -- -c /etc/logglyproxy.cfg
    log_end_msg $?
    ;;
  stop)
    log_begin_msg "Stopping logglyproxy server..."
    start-stop-daemon --stop --pidfile $PIDFILE --verbose
    log_end_msg $?
    ;;
  *)
    log_success_msg "Usage: /etc/init.d/logglyproxy {start|stop}"
    exit 1
    ;;
esac

exit 0

1.0 (01/02/2011)

  • Initial release.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

logglyproxy-1.0.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file logglyproxy-1.0.tar.gz.

File metadata

  • Download URL: logglyproxy-1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for logglyproxy-1.0.tar.gz
Algorithm Hash digest
SHA256 c5f86d672faf5230e7bf40130ad4bf14f71f515091aa41c025b44359ef9b0496
MD5 d487ea392570ada54a16ee346d0083f8
BLAKE2b-256 fcb6c29d2c9baee8ba014664b2931c56b8722ec15f21efcb84e5febc61c909b0

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