Please, see comment - going back into JVM through REST API is not the optimal solution.
For example, what if the REST API is locked via auth?
We should stay at JVM level.
there is already distributed task collecting logs, please use it
let user to specify the location in the same way as we expose ModelSerializationSupport trait