policy/protocols/conn/known-services.bro
- 
Known
This script logs and tracks services.  In the case of this script, a service
is defined as an IP address and port which has responded to and fully
completed a TCP handshake with another host.  If a protocol is detected
during the session, the protocol will also be logged.
Detailed Interface
Options
- 
Known::service_tracking
- 
The hosts whose services should be tracked and logged.
See Hostfor possible choices.
 
 
State Variables
- 
Known::known_services
- 
Tracks the set of daily-detected services for preventing the logging
of duplicates, but can also be inspected by other scripts for
different purposes. 
 
Types
- 
Known::ServicesInfo
- 
| Type: | record
 
ts: time&logThe time at which the service was detected.host: addr&logThe host address on which the service is running.port_num: port&logThe port number on which the service is running.port_proto: transport_proto&logThe transport-layer protocol which the service uses.service: set[string]&logA set of protocols that match the service’s connection payloads. | 
|---|
 
 - The record type which contains the column fields of the known-services
log. 
 
Events
- 
Known::log_known_services
- 
Event that can be handled to access the Known::ServicesInforecord as it is sent on to the logging framework.