Sha256: 52a2c737d9cad7bd7dc0fef2a36442cf7a87326b363a0b5af5848a370de7686c
Contents?: true
Size: 1.27 KB
Versions: 2
Compression:
Stored size: 1.27 KB
Contents
log2mail.rb Installation ======================== Requirements ------------ * Ruby 1.9.3 Debian 7 (and higher) --------------------- To install Ruby: sudo apt-get install ruby To get this pre-release version of log2mail.rb: rbenv shell system # if using rbenv sudo gem install log2mail --pre Next Steps ---------- Create a configuration file, e.g. at `/usr/local/etc/log2mail.conf`: cat > /usr/local/etc/log2mail.conf <<EOF defaults mailto = your@mail.address file = /tmp/test.log pattern = test EOF Test the configuration: log2mail.rb configtest --config /usr/local/etc/log2mail.conf should return: +---------------+---------+-------------------+----------+ | File | Pattern | Recipient | Settings | +---------------+---------+-------------------+----------+ | /tmp/test.log | test | your@mail.address | | +---------------+---------+-------------------+----------+ Run *log2mail.rb* in foreground (`-N`) in verbose mode (`-v`) and 10 seconds sleep time in the processing loop: log2mail.rb start --config /usr/local/etc/log2mail.conf -Nv --sleeptime 10 `echo "a first test" >> /tmp/test.log` should result in an email report after few seconds. See `gem man log2mail` for more information.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
log2mail-0.0.1.pre3 | INSTALL |
log2mail-0.0.1.pre2 | INSTALL |