Register on the following services & make a gist with your OWN settings, have fun to collect!
-
Make a log dir, like /log on your MAIN host like:
mkdir /log && ln -f /var/log/syslog /log/syslog
docker run --name=logstash
-e LOGSTASH_CONFIG_URL=https://gist.githubusercontent.com/dbiesecke/2c49b8c80f42186d78e5/raw/logstash-1.conf
-v /var/log/syslog:/log/syslog -v /log:/log
-p 555:555 -p 514:514/udp -p 9292:9292
-e VIRTUAL_HOST="logs.nated.at" -e VIRTUAL_PORT="9292"
pblittle/docker-logstash -
Lets write som logs!
-
Write directly over tcp:
echo das | nc -v YOURHOST 555
-
Lets scrap logs with logstash:
ln -f /var/log.... /log/syslog
-
Write debug stuff:
echo blablalba > /log/das
......