Nmap codec plugin
The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats. Availability This functionality is generally available and ready for production usage. Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
Stack
Generally available
- Plugin version: v0.0.22 (Other versions)
- Released on: 2022-11-16
- Changelog
For questions about the plugin, open a topic in the Discuss forums. For bugs or feature requests, open an issue in Github. For the list of Elastic supported plugins, please consult the Elastic Support Matrix.
This codec is used to parse nmap output data which is serialized in XML format. Nmap ("Network Mapper") is a free and open source utility for network discovery and security auditing. For more information on nmap, see https://nmap.org/.
This codec can only be used for decoding data.
Event types are listed below
nmap_scan_metadata: An object containing top level information about the scan, including how many hosts were up, and how many were down. Useful for the case where you need to check if a DNS based hostname does not resolve, where both those numbers will be zero. nmap_host: One event is created per host. The full data covering an individual host, including open ports and traceroute information as a nested structure. nmap_port: One event is created per host/port. This duplicates data already in nmap_host: This was put in for the case where you want to model ports as separate documents in Elasticsearch (which Kibana prefers). nmap_traceroute_link: One of these is output per traceroute connection, with a from and a to object describing each hop. Note that traceroute hop data is not always correct due to the fact that each tracing ICMP packet may take a different route. Also very useful for Kibana visualizations.
| Setting | Input type | Required |
|---|---|---|
emit_hosts |
boolean | No |
emit_ports |
boolean | No |
emit_scan_metadata |
boolean | No |
emit_traceroute_links |
boolean | No |
- Value type is boolean
- Default value is
true
Emit all host data as a nested document (including ports + traceroutes) with the type nmap_fullscan
- Value type is boolean
- Default value is
true
Emit each port as a separate document with type nmap_port
- Value type is boolean
- Default value is
true
Emit scan metadata
- Value type is boolean
- Default value is
true
Emit each hop_tuple of the traceroute with type nmap_traceroute_link