7. General Settings » Graphs & Storage¶
In a later chapter, you will see how to configure Sensors to generate traffic graphs, top statistics, and accounting information for every IP in the monitored network. In Configuration » General Settings » Graphs & Storage, you can configure how much disk space will be used to store that data, as well as other storage-related settings.
The Graph Storage Engine parameters let you select the third-party software used to store graph data:
► InfluxDB is a specialized database designed for time series data. It uses more RAM than RRDTool but requires less storage space, is faster in most cases, can be configured for High Availability, and does not delete existing data when you change the configuration► RRDTool is a very stable and old solution for time series data. However, it can be slow in some cases (due to disk seek times), uses more storage space (due to pre-allocation of data), and some configuration changes (e.g., adding a decoder) reset existing graph data
Click the Options button on the right-hand side to configure the selected Graph Storage Engine:
InfluxDB 1.9 is the preferred choice for new installations.
This method optimizes the long-term storage of IP graph data by allowing up to three Round Robin Archives.
This method is not optimal for long-term storage because it allows a single Round Robin Archive per IP graph file. Select this method when you can’t use InfluxDB and when the previous method (configured with RRDCached) is not fast enough to sustain updating thousands of very high-granularity IP graphs.
Decoders are internal functions (traffic dissectors) that identify and classify the underlying protocols of each packet or flow. Each enabled decoder increases the size of IP graphs, tops, and accounting data, and introduces a minimal performance penalty. Only enable the decoders you need. You can create custom decoders under General Settings » Custom Decoders. The built-in decoders are:
IP |
Matches all IP packets, regardless of higher-layer protocols. Always enabled. |
TCP |
Matches TCP traffic |
TCP+SYN |
Matches TCP traffic with the SYN flag set and ACK unset. Flow Sensor counts one packet per flow |
UDP |
Matches UDP traffic |
ICMP |
Matches ICMP traffic |
OTHER |
Matches IP protocols other than TCP, UDP, and ICMP |
INVALID |
Matches TCP or UDP port 0, or IP protocol 0 |
FLOWS |
Matches flow records and replaces packets/s with flows/s. Works only with Flow Sensor |
FLOW+SYN |
Matches flow records with the SYN flag set. Flow Sensor counts all packets per flow |
FRAGMENT |
Matches fragmented IP packets. Works only with Packet Sensor |
TCP-NULL |
Matches TCP traffic without TCP flags (indicative of reconnaissance sweeps) |
TCP+RST |
Matches TCP traffic with the RST flag set |
TCP+ACK |
Matches TCP traffic with the SYN flag unset and ACK set |
TCP+SYNACK |
Matches TCP traffic with both SYN and ACK flag set |
NETBIOS |
Matches TCP traffic on source or destination port 139 |
QUIC |
Matches Google’s QUIC protocol on UDP ports 80 and 443 |
UDP-QUIC |
Matches UDP traffic that is not part of the QUIC protocol |
MEMCACHED |
Matches UDP traffic on port 11211 |
HTTP |
Matches TCP traffic on source or destination port 80 |
HTTPS |
Matches TCP traffic on source or destination port 443 |
Matches TCP traffic on source or destination ports 25, 110, 143, 465, 585, 587, 993, 995 |
|
DNS |
Matches UDP traffic on source or destination port 53 |
SIP |
Matches TCP or UDP traffic on source or destination port 5060 |
IPSEC |
Matches IP traffic on IP protocols 50 or 51 |
WWW |
Matches TCP traffic on source or destination ports 80 or 443 |
SSH |
Matches TCP traffic on source or destination port 22 |
NTP |
Matches UDP traffic on source or destination port 123 |
SNMP |
Matches UDP traffic on source or destination ports 161 or 163 |
RDP |
Matches TCP or UDP traffic on source or destination port 3389 |
YOUTUBE |
Matches IP traffic to or from YouTube AS 43515, 36561, or YouTube subnets |
NETFLIX |
Matches IP traffic to or from Netflix AS 55095, 40027, 2906, or Netflix subnets |
HULU |
Matches IP traffic to or from Hulu AS 23286 or Hulu subnets |
Matches IP traffic to or from Facebook AS 54115, 32934, or Facebook subnets |
IP Sweep Graphing allows storing IP graph data for IPv4 and/or IPv6 addresses receiving traffic without returning any. Avoid setting it to Off when monitoring unidirectional links or asymmetric traffic. Enabling it for IPv6 is generally not recommended because the vast number of possible IPv6 addresses can quickly exhaust RAM (when using InfluxDB) or disk space (when using RRDTool).
Sensor Top N (default: 20) Specifies the maximum number of items stored for each ordered data set, such as top talkers, external IPs, ASNs, countries, TCP/UDP ports, IP protocols, etc.
Flow Sensor saves flow data on the local disk in the path defined by the Flow Collector Path, using a directory structure determined by Flow Data Hierarchy.
Packet Sensor saves packet dumps in the path set by the Packet Dump Path.
RRDTool stores all graph files on the Console server in the Graphs Disk Path. InfluxDB stores graph data in /var/lib/influxdb/data/. If you want to use another path or drive, symlink it to the original location.
Note
It is strongly recommended to automate the deletion of old data and to monitor disk usage for IP graphs in General Settings » Data Retention..