idlethreat

stupid is durable

Echo.py Released!

without comments

Introduction

This is an old-ish app that I've been sitting on over the past few months and thought I should release it before it joins my BPOUS (Big Pile Of Unpublished Stuff) on a random hard drive somewhere.

Echo.py is a one trick pony. It tails a (configurable) log file on the system and sends the logs off to a syslog server for further processing. It's configurable for either UDP or TCP syslogging and is highly configurable, depending on your environment and needs. It's been tested on OS X 10.5 and Ubuntu 7.10 with Python 2.5.*

Since this application is written in Python, it can run on Windows, Linux, etc. Pretty much any OS with a Python interpreter can run this script. This script can be compiled as a “frozen binary” and run on systems without a Python interpreter installed on it. I will leave that exercise up to you, Dear Reader, on how to accomplish this.

The only real caveat to using the script is that if the application which creates the log file dies and the log is overwritten whenever it comes back up, echo.py will not catch that change and hang up, not sending out logs until it's restarted. Since the standard UN*X 'tail -f' exhibits the same issue, this should be considered normal.

Click Read More for more information.

How To Use

After downloading and unzipping the archive, run echo.py from the command line without any arguments. It will create a new configuration file (named echo.cfg) in the local directory. Edit the configuration file as you like it and save your changes. Re-run echo.py and it will use the new configuration. The configuration file is well documented and is in a standard .INI format that works well on either UN*X or Windows systems.

Download

That should be it. My contact information is in the script itself, let me know if you have any questions or issues with it. Like all the applications and scripts, there's a license:

# File Scanner. Copyright (C) 2008 by idlethreat (tgiles at gmail dot com). All rights reserved.
# This program is released under Creative Commons by-nc-sa. http://creativecommons.org/licenses/by-nc-sa/3.0/us/
# Read the license. Know your rights.

Enjoy!

echo.py.zip

Written by admin

July 24th, 2008 at 7:05 am

Posted in Code