Skip to content

Commit

Permalink
chore: update filebeat platform template for tenderdash logs (#576)
Browse files Browse the repository at this point in the history
* chore: update filebeath platform template for tenderdash logs

* fix: duplicate logs

---------

Co-authored-by: Ivan Shumkov <ivan@shumkov.ru>
  • Loading branch information
strophy and shumkov authored Oct 11, 2023
1 parent 66c5c0f commit 6db814f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ansible/roles/elastic_beats/vars/platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ filebeat_platform_inputs:
to: "log.level"
ignore_missing: true
fail_on_error: true
- type: container
- type: log
enabled: "{{ tenderdash_host_info.containers | length > 0 }}"
json.message_key: message
exclude_files: ['\.gz$']
index: "logs-drive.tenderdash-{{ dash_network_name }}-%{[agent.version]}"
paths:
- '/var/lib/docker/containers/{{ tenderdash_container_id }}/*.log'
- "{{ abci_logs_path }}/tenderdash.log*"
processors:
- add_fields:
target: event
Expand Down

0 comments on commit 6db814f

Please sign in to comment.