Merge pull request #521 from dragospe/master
add localfile labels to agent ossec.conf template
This commit is contained in:
commit
ce85f1b503
@ -353,6 +353,11 @@
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<location>{{ localfile.location }}</location>
|
||||
{% if localfile.format == 'json' %}
|
||||
{% for label in localfile.label %}
|
||||
<label key="{{ label.key }}">{{ label.value }}</label>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</localfile>
|
||||
{% endfor %}
|
||||
@ -371,6 +376,11 @@
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<location>{{ localfile.location }}</location>
|
||||
{% if localfile.format == 'json' %}
|
||||
{% for label in localfile.label %}
|
||||
<label key="{{ label.key }}">{{ label.value }}</label>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</localfile>
|
||||
{% endfor %}
|
||||
@ -389,6 +399,11 @@
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<location>{{ localfile.location }}</location>
|
||||
{% if localfile.format == 'json' %}
|
||||
{% for label in localfile.label %}
|
||||
<label key="{{ label.key }}">{{ label.value }}</label>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</localfile>
|
||||
{% endfor %}
|
||||
@ -404,6 +419,11 @@
|
||||
<query>{{ localfile.query}}</query>
|
||||
{% else %}
|
||||
<location>{{ localfile.location }}</location>
|
||||
{% if localfile.format == 'json' %}
|
||||
{% for label in localfile.label %}
|
||||
<label key="{{ label.key }}">{{ label.value }}</label>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</localfile>
|
||||
{% endfor %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user