From 8a171c9d74e16d540ef8a9531b6adc2e9da92ec1 Mon Sep 17 00:00:00 2001 From: Giuseppe Longo Date: Sun, 3 Mar 2024 18:25:48 +0100 Subject: [PATCH] doc: add arp changes --- doc/userguide/output/eve/eve-json-format.rst | 44 ++++++++++++++++++++ doc/userguide/output/eve/eve-json-output.rst | 14 +++++++ doc/userguide/partials/eve-log.yaml | 2 + doc/userguide/upgrade.rst | 2 + 4 files changed, 62 insertions(+) diff --git a/doc/userguide/output/eve/eve-json-format.rst b/doc/userguide/output/eve/eve-json-format.rst index a2140149eb..9da9e82d3e 100644 --- a/doc/userguide/output/eve/eve-json-format.rst +++ b/doc/userguide/output/eve/eve-json-format.rst @@ -3011,3 +3011,47 @@ Example of DHCP log entry (extended logging enabled): "client_id":"54:ee:75:51:e0:66", "dns_servers":["192.168.1.50","192.168.1.49"] } + +Event type: ARP +--------------- + +Fields +~~~~~~ + +* "hw_type": network link protocol type +* "proto_type": internetwork protocol for which the request is intended +* "opcode": operation that the sender is performing (e.g. request, response) +* "src_mac": source MAC address +* "src_ip": source IP address +* "dest_mac": destination MAC address +* "dest_ip": destination IP address + +Examples +~~~~~~~~ + +Example of ARP logging: request and response + +:: + + "arp": { + "hw_type": "ethernet", + "proto_type": "ipv4", + "opcode": "request", + "src_mac": "00:1a:6b:6c:0c:cc", + "src_ip": "10.10.10.2", + "dest_mac": "00:00:00:00:00:00", + "dest_ip": "10.10.10.1" + } + +:: + + "arp": { + "hw_type": "ethernet", + "proto_type": "ipv4", + "opcode": "reply", + "src_mac": "00:1a:6b:6c:0c:cc", + "src_ip": "10.10.10.2", + "dest_mac": "00:1d:09:f0:92:ab", + "dest_ip": "10.10.10.1" + } + diff --git a/doc/userguide/output/eve/eve-json-output.rst b/doc/userguide/output/eve/eve-json-output.rst index 6e1778ed5e..4cd3f74986 100644 --- a/doc/userguide/output/eve/eve-json-output.rst +++ b/doc/userguide/output/eve/eve-json-output.rst @@ -266,6 +266,20 @@ enabled, then the log gets more verbose. By using ``custom`` it is possible to select which TLS fields to log. +ARP +~~~ + +ARP records are logged as one entry for the request, and one entry for +the response. + +YAML:: + + - arp: + enabled: no + +The logger is disabled by default since ARP can generate a large +number of events. + Drops ~~~~~ diff --git a/doc/userguide/partials/eve-log.yaml b/doc/userguide/partials/eve-log.yaml index d71c80b894..5cc492c554 100644 --- a/doc/userguide/partials/eve-log.yaml +++ b/doc/userguide/partials/eve-log.yaml @@ -165,6 +165,8 @@ outputs: # BitTorrent DHT logging. - bittorrent-dht - ssh + - arp: + enabled: no - stats: totals: yes # stats for all threads merged together threads: no # per thread stats diff --git a/doc/userguide/upgrade.rst b/doc/userguide/upgrade.rst index 81e487fc0c..cd0dd6c511 100644 --- a/doc/userguide/upgrade.rst +++ b/doc/userguide/upgrade.rst @@ -55,6 +55,8 @@ Major changes - SDP parser and logger have been introduced. Due to SDP being encapsulated within other protocols, such as SIP, they cannot be directly enabled or disabled. Instead, both the SDP parser and logger depend on being invoked by another parser (or logger). +- ARP decoder and logger have been introduced. + Since ARP can be quite verbose and produce many events, the logger is disabled by default. Upgrading 6.0 to 7.0 --------------------