Hi Dario,
Thanks for the answer, after some research I found a workaround for that issue. We were looking to obtain the logs from the docker instances for every marathon app. Since Marathon adds a EnvVar to the dockers we modified the heka source
https://github.com/mozilla-services/heka/pull/1546 that allow us to send the MESOS_TASK_ID (the one that marathon sets) instead of the docker instance name.
This way we can query for an app using the marathon API, get all task_ids and query for the logs in InfluxDB with a simple select (select * from logs where ContainerName=task_id1 OR ContainerName = task_id2 ....)
Before that, we thought making a simple service that could read the envvar and container name to make that match, but was a really flaky solution, since we could make it simpler.
Thanks a lot.
Antonio