Labels configuration (#135)
This commit is contained in:
parent
59008bda4d
commit
e97a0ff7a3
@ -300,3 +300,8 @@ wazuh_agent_config:
|
||||
location: 'System'
|
||||
- format: 'syslog'
|
||||
location: 'active-response\active-responses.log'
|
||||
labels:
|
||||
enable: false
|
||||
list:
|
||||
- key: Env
|
||||
value: Production
|
||||
|
||||
@ -339,4 +339,13 @@
|
||||
</localfile>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if wazuh_agent_config.labels.enable == true %}
|
||||
<labels>
|
||||
{% for label in wazuh_agent_config.labels.list %}
|
||||
<label key="{{ label.key }}"{% if label.hidden is defined %} hidden="{{ label.hidden }}"{% endif %}>{{ label.value }}</label>
|
||||
{% endfor %}
|
||||
</labels>
|
||||
{% endif %}
|
||||
|
||||
</ossec_config>
|
||||
|
||||
@ -271,6 +271,11 @@ wazuh_manager_config:
|
||||
- server: null
|
||||
port: null
|
||||
format: null
|
||||
labels:
|
||||
enable: false
|
||||
list:
|
||||
- key: Env
|
||||
value: Production
|
||||
|
||||
wazuh_agent_configs:
|
||||
- type: os
|
||||
|
||||
@ -539,4 +539,12 @@
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if wazuh_manager_config.labels.enable == true %}
|
||||
<labels>
|
||||
{% for label in wazuh_manager_config.labels.list %}
|
||||
<label key="{{ label.key }}"{% if label.hidden is defined %} hidden="{{ label.hidden }}"{% endif %}>{{ label.value }}</label>
|
||||
{% endfor %}
|
||||
</labels>
|
||||
{% endif %}
|
||||
|
||||
</ossec_config>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user