docker.task-logs

Collect logs from a docker swarm task

docker.task-logs

type object

Collect logs from a docker swarm task

collect:
  v1:
    - docker.task-logs:
        output_dir: /swarm/tasks/logs
        description: Logs from cooltool tasks in the www and api tiers
        task_list_options:
          Filters:
            label:
              - com.cooltool.tier=www
              - com.cooltool.tier=api

Optional Parameters

  • container_logs_options - Args as would be given to docker logs, as in The Docker API

  • id - The id of a single task

  • task_list_options - Options for filtering stack tasks

Outputs

  • {{.TaskId}}.stdout - The stdout output. Will generate this file for each matched service task

  • {{.TaskId}}.stderr - The stderr output. Will generate this file for each matched service task


Shared Parameters

This spec also inherits all of the required and optional Shared Parameters