Skip to content

Commit 3979da2

Browse files
committed
IPFIX input: add support for reading IPFIX Files, documentation
1 parent 14d6b6f commit 3979da2

File tree

3 files changed

+280
-35
lines changed

3 files changed

+280
-35
lines changed

src/plugins/input/ipfix/README.rst

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,30 @@
1-
IPFIX file (input plugin)
1+
IPFIX File (input plugin)
22
=========================
33

4-
TODO
4+
The plugin reads flow data from one or more files in IPFIX File format. It is possible to
5+
use it to load flow records previously stored using IPFIX output plugin.
6+
7+
Unlike UDP and TCP input plugins which infinitely waits for data from NetFlow/IPFIX
8+
exporters, the plugin will terminate the collector after all files are processed.
59

610
Example configuration
711
---------------------
812

913
.. code-block:: xml
1014
1115
<input>
12-
<name>IPFIX input</name>
16+
<name>IPFIX File</name>
1317
<plugin>ipfix</plugin>
1418
<params>
15-
<dirPath>4739</dirPath>
16-
<fileName></fileName>
19+
<path>/tmp/flow/file.ipfix</path>
1720
</params>
1821
</input>
1922
2023
Parameters
2124
----------
2225

23-
TODO
26+
:``path``:
27+
Path to file(s) in IPFIX File format. It is possible to use asterisk instead of
28+
a filename/directory, tilde character (i.e. "~") instead of the home directory of
29+
the user, and brace expressions (i.e. "/tmp/{source1,source2}/file.ipfix").
30+
Directories and non-IPFIX Files that match the file pattern are skipped/ignored.

src/plugins/input/ipfix/config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848

4949
/** Configuration of a instance of the IPFIX plugin */
5050
struct ipfix_config {
51-
/** Local port */
52-
const char *path;
51+
/** File pattern */
52+
char *path;
5353
};
5454

5555
/**

0 commit comments

Comments
 (0)