filebeat: prospectors: paths: "/var/lib/docker/containers/*/*-json.log" relativeFields: container_name: "./hostname"
The idea is not to do a heavy parsing,
but create a utility to include dynamic field values,
relative to an individual log file. (./hostname is beside the log file)
These file can then be dynamically generated by other programs subsequently.
Or in this case docker itself [the main reason why i want this] =)