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 %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<location>{{ localfile.location }}</location>
|
<location>{{ localfile.location }}</location>
|
||||||
|
{% if localfile.format == 'json' %}
|
||||||
|
{% for label in localfile.label %}
|
||||||
|
<label key="{{ label.key }}">{{ label.value }}</label>
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</localfile>
|
</localfile>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
@ -371,6 +376,11 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<location>{{ localfile.location }}</location>
|
<location>{{ localfile.location }}</location>
|
||||||
|
{% if localfile.format == 'json' %}
|
||||||
|
{% for label in localfile.label %}
|
||||||
|
<label key="{{ label.key }}">{{ label.value }}</label>
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</localfile>
|
</localfile>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
@ -389,6 +399,11 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<location>{{ localfile.location }}</location>
|
<location>{{ localfile.location }}</location>
|
||||||
|
{% if localfile.format == 'json' %}
|
||||||
|
{% for label in localfile.label %}
|
||||||
|
<label key="{{ label.key }}">{{ label.value }}</label>
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</localfile>
|
</localfile>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
@ -404,6 +419,11 @@
|
|||||||
<query>{{ localfile.query}}</query>
|
<query>{{ localfile.query}}</query>
|
||||||
{% else %}
|
{% else %}
|
||||||
<location>{{ localfile.location }}</location>
|
<location>{{ localfile.location }}</location>
|
||||||
|
{% if localfile.format == 'json' %}
|
||||||
|
{% for label in localfile.label %}
|
||||||
|
<label key="{{ label.key }}">{{ label.value }}</label>
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</localfile>
|
</localfile>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user