The plugin converts and store IPFIX flow records into NfDump compatible files. Only a subset of IPFIX fields that have NetFlow equivalents are stored into NfDump files. Other fields are discarded. Biflow records are split into two unidirectional flow records.
To speed up search of flow records of an IP address in multiple data files, the plugin can also create index files. These files will be created simultaneously with data files and they can be utilized by tools such as fdistdump to promptly determine if there is at least one record with the specified IP address in a file. This can dramatically reduce the number of processed files and provide query results faster.
By default, the plugin is not distributed with IPFIXcol due to extra dependencies. To build the plugin, IPFIXcol (and its header files) and the following dependencies must be installed on your system:
Finally, compile and install the plugin:
$ mkdir build && cd build && cmake ..
$ make
# make install
<output>
<name>LNF storage</name>
<plugin>lnfstore</plugin>
<params>
<storagePath>/tmp/ipfixcol/</storagePath>
<compress>yes</compress>
<dumpInterval>
<timeWindow>300</timeWindow>
<align>yes</align>
</dumpInterval>
<index>
<enable>yes</enable>
<autosize>yes</autosize>
</index>
</params>
</output>
Warning: The storage path must already exist in your system. Otherwise all data will be lost.
storagePath : | The path element specifies the storage directory for data files. Keep on mind that the path
must exist in your system. Otherwise, no records are stored. All files will be stored based
on the configuration using the following template:
|
||||||||
---|---|---|---|---|---|---|---|---|---|
compress : | Enable/disable LZO compression for files. [values: yes/no, default: no] |
||||||||
identificatorField : | Specifies an identification string, which is put into statistic records to describe the source. [default: <empty>] |
||||||||
dumpInterval : | Configuration of output files rotation.
|
||||||||
index : | Configuration of IP address indexes. Index files are independent and exists besides "lnf.*" files as "bfi.*" files with matching identification.
|