Skip to content

Commit 4de3a2c

Browse files
authored
Merge pull request #271 from stackhpc/feat/debug-monitoring
Add debug logging options for opensearch & filebeat
2 parents ece4722 + 7375f0d commit 4de3a2c

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

ansible/roles/filebeat/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
#filebeat_config_path: undefined # REQUIRED. Path to filebeat.yml configuration file template
44
filebeat_podman_user: "{{ ansible_user }}" # User that runs the filebeat container
55
filebeat_version: 7.12.1 # latest usable with opensearch - see https://opensearch.org/docs/2.4/tools/index/#compatibility-matrix-for-beats
6+
filebeat_debug: false

ansible/roles/opensearch/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ opensearch_data_path: /usr/share/opensearch/data
99
opensearch_state: started # will be restarted if required
1010
opensearch_systemd_service_enabled: true
1111
opensearch_certs_duration: "{{ 365 * 10 }}" # days validity for self-signed certs
12+
opensearch_debug: false

ansible/roles/opensearch/templates/opensearch.yml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ plugins.security.system_indices.enabled: true
3232

3333
# Fake version for filebeat: https://opensearch.org/docs/2.4/tools/index/#agents-and-ingestion-tools
3434
compatibility.override_main_response_version: true
35+
36+
{% if opensearch_debug | default(false) | bool %}logger.level: debug{% endif %}

environments/common/files/filebeat/filebeat.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ output.elasticsearch:
5454
ssl.verification_mode: none
5555
username: "admin"
5656
password: "{{ vault_elasticsearch_admin_password }}"
57+
58+
{% if filebeat_debug | default(false) | bool %}logging.level: debug{% endif %}

0 commit comments

Comments
 (0)