UniF_version_9_AP_Events_and_Firewall 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. {
  2. "extractors": [
  3. {
  4. "title": "UniFi AP Events",
  5. "extractor_type": "grok",
  6. "converters": [],
  7. "order": 0,
  8. "cursor_strategy": "copy",
  9. "source_field": "message",
  10. "target_field": "unifi_ap_event",
  11. "extractor_config": {
  12. "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}"
  13. },
  14. "condition_type": "regex",
  15. "condition_value": "stahtd"
  16. },
  17. {
  18. "title": "UniFi Firewall Log",
  19. "extractor_type": "grok",
  20. "converters": [],
  21. "order": 1,
  22. "cursor_strategy": "copy",
  23. "source_field": "message",
  24. "target_field": "unifi_fw",
  25. "extractor_config": {
  26. "grok_pattern": "%{DATA:device_name} \\[%{DATA:fw_rule_id}\\] DESCR=\\\"\\[%{DATA:fw_rule_group}\\]%{DATA:fw_rule_name}\\\" IN=%{DATA:fw_in_iface} OUT=%{DATA:fw_out_iface} MAC=%{DATA:fw_mac} SRC=%{IP:src_ip} DST=%{IP:dst_ip} LEN=%{INT:ip_len} TOS=%{DATA:tos} PREC=%{DATA:prec} TTL=%{INT:ttl} ID=%{INT:packet_id} DF PROTO=%{WORD:proto}(?: SPT=%{INT:src_port})?(?: DPT=%{INT:dst_port})?(?: SEQ=%{INT:seq})?(?: ACK=%{INT:ack})?(?: WINDOW=%{INT:window})?(?: SYN)?(?: URGP=%{INT:urgp})?(?: UID=%{INT:uid})?(?: GID=%{INT:gid})?(?: LEN=%{INT:payload_len})? MARK=%{DATA:fw_mark}"
  27. },
  28. "condition_type": "regex",
  29. "condition_value": "\\[.*\\] DESCR="
  30. }
  31. ],
  32. "version": "6.2.2"
  33. }