Skip to content

Commit

Permalink
Adapt output file name to latest beats changes.
Browse files Browse the repository at this point in the history
This fixes the tests for beats and apm-server when checking for the output files.
Relates to changes from elastic/beats#28927
  • Loading branch information
simitt committed Dec 31, 2021
1 parent 1b27954 commit 460db71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion roles/test-beat/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
- name: Set config/output/log file vars
set_fact:
beat_config_file: '{{ beat_config_path}}/{{ beat_name }}.yml'
beat_output_file: '{{ beat_logs_path }}/output.json'
beat_output_file: '{{ beat_logs_path }}/output.json-{{ ansible_date_time.year }}{{ ansible_date_time.month }}{{ ansible_date_time.day }}.ndjson'
beat_log_file: '{{ beat_logs_path }}/{{ beat_name }}.json'
beat_registry_file: '{{ beat_data_path }}/{{ registry_file }}'
beat_metrics_file: '{{ beat_logs_path }}/metrics.json'
Expand Down
2 changes: 2 additions & 0 deletions roles/test-beat/templates/apm-server.yml.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
apm-server:
//from 8.0 on either apm-server.kibana or output.elasticsearch must be configured
kibana.enabled: true
logging:
level: info
json: true
Expand Down

0 comments on commit 460db71

Please sign in to comment.