You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plugin outputs incoming IPFIX Data to an IPFIX File or a series of IPFIX Files.
5
-
6
-
An IPFIX File is a serialized stream of IPFIX Messages. Simply put, the plugin stores all valid packets received by the collector into one or more IPFIX Files. Although this is not an optimal way to store flows, it can be quite useful for testing purposes - capture flow records into IPFIX File(s) and replay them using ipfixsend2 tool.
7
-
8
-
After a new file is started, all the (options) templates seen in the (options) template sets of an ODID that are still available are written to the file once the first IPFIX Message corresponding to the ODID arrives with at least one successfully parsed data record. This is necessary so each file can be used individually independent of the (options) template sets from previous files.
4
+
The plugin writes incoming IPFIX Messages to an IPFIX File or a series of IPFIX
5
+
Files.
9
6
7
+
An IPFIX File is a serialized stream of IPFIX Messages. Simply put, the plugin
8
+
stores all valid packets received by the collector into one or more IPFIX Files.
9
+
Although this is not an optimal way to store flows, it can be quite useful
10
+
for testing purposes - capture flow records into IPFIX File(s) and replay them
11
+
using ``ipfixsend2`` tool.
10
12
11
13
Limitations
12
14
-----------
13
-
As there is no session information in raw IPFIX Data, we can't distinguish messages from multiple sessions using the same ODID. For this reason, the same ODID can only be used by one session at a time, and all messages from other sessions using the ODID that's already in use are ignored and a warning message is printed. All ODIDs used by a session are released once the session closes and they can be used by another session.
14
15
16
+
In a situation when multiple exporters are using the same ODID at a time, the
17
+
file format can store flow records only from one of the conflicting exporters
18
+
with the given ODID.
19
+
20
+
This is due to fact that the IPFIX Data Records (i.e. flow records) are
21
+
formatted based on so called (Options) Template definitions (i.e. descriptions
22
+
of flow record structures), which are unique for combination of a Transport
23
+
Session (e.g. connection to a flow exporter) and an ODID. As there is no session
24
+
information in raw IPFIX Messages, we can't distinguish Messages from multiple
25
+
sessions using the same ODID. For this reason, each ODID can be used only by
26
+
one session at a time, and all messages from other sessions using the
27
+
same ODID that's already in use are ignored and a warning message is shown.
28
+
Once a Transport Session is closed, ODIDs used by the session are released
The output filename, allows the use of strftime format values to add the export time into the file path.
53
+
Specifies an absolute path of output files. The path should contain format
54
+
specifier for day, month, etc. For example "/tmp/ipfix/%Y%m%d%H%M%S.ipfix".
55
+
See ``strftime``\ (3) for more information.
39
56
40
57
:``useLocalTime``:
41
-
Specifies whether the time values in filenames should be in local time instead of UTC. [default: false]
58
+
Specifies whether the time values in filenames should be in local time
59
+
instead of UTC. [default: false]
42
60
43
61
:``windowSize``:
44
-
The number of seconds before a new file is created. The value of 0 means the file will never split. [default: 0]
62
+
Specifies the time interval in seconds to rotate files. If the value
63
+
is "0", all flow will be stored into a single file. [default: 0]
45
64
46
65
:``alignWindows``:
47
-
Specifies whether the file should only be split on multiples of windowSize. [default: true]
66
+
Align file rotation with next N minute interval (true/false). [default: true]
48
67
49
68
:``skipUnknownDataSets``:
50
-
Specifies whether data sets with missing template should be left out from the output file. Sequence numbers and message lengths will be adjusted accordingly. [default: false]
69
+
Specifies whether Data Sets with unknown (Options) Template should be left
70
+
out from the output file. Sequence numbers and message lengths will be
71
+
adjusted accordingly. [default: false]
51
72
52
73
:``splitOnExportTime``:
53
-
Specifies whether files should be split based on export time instead of system time. [default: false]
74
+
Specifies whether files should be rotated based on IPFIX Export Time
75
+
(i.e. timestamp from IPFIX Message header) instead of system time.
76
+
Warning: If the plugin receives flow records from multiple exporters at time
77
+
the rotation could be unsteady. [default: false]
78
+
79
+
Note
80
+
----
81
+
82
+
After a new IPFIX File is created, all previously seen and still valid (Options)
83
+
Templates of the each ODID are written to the file once the first IPFIX Message
84
+
corresponding to the ODID arrives with at least one successfully parsed data record.
85
+
This is necessary so each file can be used independently of the (Options) Template
86
+
definitions from previous files.
87
+
88
+
``ipfixsend2`` tool doesn't support sequential reading of multiple IPFIX Files
89
+
right now. However, there is a workaround - you can merge multiple IPFIX Files
90
+
using cat tool e.g. ``cat file1.ipfix file2.ipfix > merge.ipfix`` and then use
0 commit comments