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