Skip to content
Snippets Groups Projects
Commit 1cb2b8c3 authored by ale's avatar ale
Browse files

Save logs from all hosts

parent 008dd51a
No related branches found
No related tags found
1 merge request!200Set a memory limit for thanos
- hosts: log-collector - hosts: all
gather_facts: no gather_facts: no
tasks: tasks:
- name: Archive remote logs - name: Archive remote logs
...@@ -9,4 +9,4 @@ ...@@ -9,4 +9,4 @@
- name: Fetch remote logs - name: Fetch remote logs
fetch: fetch:
src: /tmp/logs.tar.gz src: /tmp/logs.tar.gz
dest: "{{ out_dir }}" dest: "{{ out_dir }}/{{ inventory_hostname }}-logs.tar.gz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment