Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 991 Bytes

quick_start_nsq.md

File metadata and controls

50 lines (40 loc) · 991 Bytes

Install vFlow with NSQ - Linux

Download and install vFlow

Debian Package

wget https://github.com/VerizonDigital/vflow/releases/download/v0.4.1/vflow-0.4.1-amd64.deb
dpkg -i vflow-0.4.1-amd64.deb

RPM Package

wget https://github.com/VerizonDigital/vflow/releases/download/v0.4.1/vflow-0.4.1.amd64.rpm
rpm -ivh vflow-0.4.1.amd64.rpm 
or
yum localinstall vflow-0.4.1.amd64.rpm

Download NSQ

wget https://s3.amazonaws.com/bitly-downloads/nsq/nsq-1.0.0-compat.linux-amd64.go1.8.tar.gz
tar -xvf nsq-1.0.0-compat.linux-amd64.go1.8.tar.gz
cp nsq-1.0.0-compat.linux-amd64.go1.8/bin/* /usr/bin

NSQ - start service

nsqd &

vFlow - NSQ config

echo "mq-name: nsq" >> /etc/vflow/vflow.conf

vFlow - start service

service vflow start

vFlow - Load generator

vflow_stress -sflow-rate-limit 1 0ipfix-rate-limit 1 &

Consume IPFIX topic from NSQ

nsq_tail --topic vflow.ipfix -nsqd-tcp-address localhost:4150