fixes #2239 addes suricata eve.json as input (#2309)

This commit is contained in:
tiny6996
2021-04-02 20:18:23 +02:00
committed by GitHub
parent aed72a5fec
commit 16f3522d08
5 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= telegraf
PLUGIN_VERSION= 1.9.0
PLUGIN_VERSION= 1.10.0
PLUGIN_COMMENT= Agent for collecting metrics and data
PLUGIN_DEPENDS= telegraf
PLUGIN_MAINTAINER= m.muenz@gmail.com
+3
View File
@@ -10,6 +10,9 @@ Kafka, MQTT, NSQ, and many others.
Plugin Changelog
================
1.10.0
* Add intrusion detection alert input
1.9.0
@@ -137,4 +137,10 @@
<type>checkbox</type>
<help>Can increase metric gather times.</help>
</field>
<field>
<id>input.intrusion_detection_alerts</id>
<label>Intrusion Dectection Alerts</label>
<type>checkbox</type>
<help>Requires Intrustion detection alerts are stored locally.</help>
</field>
</form>
@@ -121,5 +121,9 @@
<default></default>
<Required>N</Required>
</datadog_apikey>
<intrusion_detection_alerts type="BooleanField">
<default>0</default>
<Required>N</Required>
</intrusion_detection_alerts>
</items>
</model>
@@ -252,6 +252,14 @@
{% else %}
dns_lookup = false
{% endif %}
{% if helpers.exists('OPNsense.telegraf.input.intrusion_detection_alerts') and OPNsense.telegraf.input.intrusion_detection_alerts == '1' %}
[[inputs.tail]]
data_format = "json"
files = ["/var/log/suricata/eve.json"]
name_override = "suricata"
tag_keys = ["event_type","src_ip","src_port","dest_ip","dest_port"]
json_string_fields = ["*"]
{% endif %}
{% endif %}
{% endif %}