Răsfoiți Sursa

Create UniFi_AP_2023.json

Graylog Extractor for UnIFi Access points to parse device MAC and RSSI. Make sure once you import and if you make changes that the GROK extractor is above the JSON one.
Lawrence Systems 2 ani în urmă
părinte
comite
3cbb4a6b71
1 a modificat fișierele cu 38 adăugiri și 0 ștergeri
  1. 38 0
      UniFi_AP_2023.json

+ 38 - 0
UniFi_AP_2023.json

@@ -0,0 +1,38 @@
+{
+  "extractors": [
+    {
+      "title": "Unifi AP JSON data",
+      "extractor_type": "json",
+      "converters": [],
+      "order": 1,
+      "cursor_strategy": "copy",
+      "source_field": "json_data",
+      "target_field": "",
+      "extractor_config": {
+        "list_separator": ", ",
+        "kv_separator": "=",
+        "key_prefix": "",
+        "key_separator": "_",
+        "replace_key_whitespace": false,
+        "key_whitespace_replacement": "_"
+      },
+      "condition_type": "none",
+      "condition_value": ""
+    },
+    {
+      "title": "UniFi AP",
+      "extractor_type": "grok",
+      "converters": [],
+      "order": 0,
+      "cursor_strategy": "copy",
+      "source_field": "message",
+      "target_field": "",
+      "extractor_config": {
+        "grok_pattern": "%{DATA:access_point} %{DATA:unifi_device_mac_address},%{DATA:ap_model}: %{DATA:stahtd}: %{DATA:stahtd_process}\\[%{INT:stahtd_id}\\]: %{DATA:stahtd_event}: %{GREEDYDATA:json_data}"
+      },
+      "condition_type": "none",
+      "condition_value": ""
+    }
+  ],
+  "version": "5.0.7"
+}