tflow2

command module
v0.0.0-...-8992419 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

README

tflow2

CircleCI Codecov Go ReportCard

tflow2 is an in memory netflow version 9, IPFIX and Sflow analyzer. It is designed for fast arbitrary queries and exports data to Prometheus.

Usage

Quick install with go get -u github.com/bio-routing/tflow2 and go build github.com/bio-routing/tflow2 or download a pre-built binary from the releases page.

The release binaries have an additional command, tflow2 -version, which reports the release version.

Once you start the main binary it will start reading netflow version 9 packets on port 2055 UDP and IPFIX packets on port 4739 on all interfaces. For user interaction it starts a webserver on port 4444 TCP on all interfaces.

The webinterface allows you to run queries against the collected data. Start time and router are mandatory criteria. If you don't provide any of these you will always receive an empty result.

Config file

There is YAML file as config. Defaults can be found in config-example.yml. You'll at least need to add your Netflow/IPFIX/Sflow agents and adjust (if you don't want to work with interface IDs) your SNMP RO community.

Command line arguments

-alsologtostderr

Will send logs to stderr on top.

-channelBuffer=int

This is the amount of elements that any channel within the program can buffer.

-dbaddworkers=int

This is the amount of workers that are used to add flows into the in memory database.

-log_backtrace_at

when logging hits line file:N, emit a stack trace (default :0).

-log_dir

If non-empty, write log files in this directory.

-logtostderr

log to standard error instead of files.

-samplerate=int

Samplerate of your routers. This is used to deviate real packet and volume rates in case you use sampling.

-sockreaders=int

Num of go routines reading and parsing netflow packets (default 24).

-stderrthreshold

logs at or above this threshold go to stderr.

-v value

log level for V logs.

-vmodule value

comma-separated list of pattern=N settings for file-filtered logging.

Limitations

Please be aware this software is not platform independent. It will only work on little endian machines (such as x86)

License

(c) Google, EXARING, Oliver Herms, 2017. Licensed under Apache-2 license.

This is not an official Google product.

Documentation

Overview

Package main is the main package of tflow2

Directories

Path Synopsis
Package annotation annotates flows with meta data from external sources
Package annotation annotates flows with meta data from external sources
annotators
Package avltree provides an universal AVL tree
Package avltree provides an universal AVL tree
Package convert provides helper functions to convert data between various types, e.g.
Package convert provides helper functions to convert data between various types, e.g.
Package database keeps track of flow information
Package database keeps track of flow information
Package frontend provides services via HTTP
Package frontend provides services via HTTP
Package ifserver provides IPFIX collection services via UDP and passes flows into annotator layer
Package ifserver provides IPFIX collection services via UDP and passes flows into annotator layer
Package ipfix provides structures and functions to decode and analyze IPFIX packets.
Package ipfix provides structures and functions to decode and analyze IPFIX packets.
Package netflow is a generated protocol buffer package.
Package netflow is a generated protocol buffer package.
Package nf9 provides structures and functions to decode and analyze NetFlow v9 packets.
Package nf9 provides structures and functions to decode and analyze NetFlow v9 packets.
Package nfserver provides netflow collection services via UDP and passes flows into annotator layer
Package nfserver provides netflow collection services via UDP and passes flows into annotator layer
Package sfserver provides sflow collection services via UDP and passes flows into annotator layer
Package sfserver provides sflow collection services via UDP and passes flows into annotator layer
Package stats provides central statistics about tflow2
Package stats provides central statistics about tflow2

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL