This is a sample of fluentd running on mesos, docker and marathon.
- Vagrant 1.4.1 (I checked only this version)
- vagrant-hostmanager plugin
$ git clone https://github.com/riywo/sample-fluentd-on-mesos-docker
$ cd sample-fluentd-on-mesos-docker
$ vagrant up
$ vagrant ssh mesos-master
$ sudo service lxc-net restart
$ vagrant ssh mesos-slave[12]
$ sudo service lxc-net restart
$ vagrant ssh mesos-master
$ sudo docker run -d -p 9200:9200 arcus/elasticsearch
$ sudo docker run -d -p 8888:80 -e ES_PORT=9200 -e ES_HOST=mesos-master arcus/kibana
$ vagrant ssh mesos-master
$ cat /vagrant/td-agent.json | http POST http://mesos-master:8080/v1/apps/start
HTTP/1.1 204 No Content
Content-Type: application/json
Server: Jetty(8.y.z-SNAPSHOT)
$ vagrant ssh mesos-master
$ sudo docker run -d -p 5555:8080 -e MARATHON_URL=http://mesos-master:8080 -e APP_ID=td-agent -e HEALTH_PATH=/?json=%7B%7D haproxy
$ vagrant ssh mesos-master
$ http POST http://mesos-master:5555/test a=1