1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-12-04 19:08:22 +01:00
fastnetmon-rewritten/docs/LUA_SUPPORT.md
2015-07-03 18:31:32 +03:00

847 B

We have LUA support for processing NetFlow flows

It supported only for NetFlow v5 and sFLOW at this moment.

It's not compiled by default and you need build it explicitly.

Install dependency list (Debian 8 and Ubuntu 14.04 has it):

apt-get install -y libluajit-5.1-dev luajit lua-json

Build it:

cmake -DENABLE_LUA_SUPPORT=ON ..
make

Please be aware! In Ubuntu 14.04 lua-json 1.3.1 is buggy and should be upgraded to 1.3.2.

Fast and dirty fix for lua-json for Ubuntu 14.04:

wget https://raw.githubusercontent.com/harningt/luajson/1.3.3/lua/json/decode/util.lua -O/usr/share/lua/5.1/json/decode/util.lua

wget https://raw.githubusercontent.com/harningt/luajson/1.3.3/lua/json/decode/strings.lua -O/usr/share/lua/5.1/json/decode/strings.lua