Scribe runs logstash-forwarder
which forwards logs to a logstash
server.
For setup instructions, see clay/journalist-public
- You need ssl certs in
./certs
- Edit
run.sh
to point to your log files
docker build -t scribe .
docker run \
--restart always \
-v /var/log/app:/var/log/app \
-e LOGSTASH_SERVER=1.2.3.4:5043 \
--name scribe \
-d \
-t scribe
You may also want to run logrotate
on your server.
After editing logrotate.conf
:
-
apt-get install logrotate
-
copy logrotate config
src=./logrotate.conf dest=/etc/logrotate.conf
-
copy logrotate cron
src=.s/logrotate.sh dest=/etc/cron.daily/logrotate