Both sides previous revisionPrevious revisionNext revision | Previous revision |
en:dpi:dpi_components:utilities:ipfixreceiver2 [2019/04/01 09:07] – kvazikrav | en:dpi:dpi_components:utilities:ipfixreceiver2 [2024/09/26 15:29] (current) – external edit 127.0.0.1 |
---|
====== ipfixreceiver2: IPFIX/NetflowV9 collector ====== | ====== ipfixreceiver2: IPFIX/NetflowV9 collector ====== |
| {{indexmenu_n>2}} |
| |
===== Introduction ===== | ===== Introduction ===== |
==== CentOS ==== | ==== CentOS ==== |
| |
- Add the VAS Experts repository according to the p.1 of the [[en:dpi:dpi_components:platform:dpi_update:dpi_update_10:dpi_10_update:start|DPI installation instruction]]. | - Add the VAS Experts repository <code>rpm --import http://vasexperts.ru/centos/RPM-GPG-KEY-vasexperts.ru |
| rpm -Uvh http://vasexperts.ru/centos/6/x86_64/vasexperts-repo-1-0.noarch.rpm</code> |
- Add the [[https://fedoraproject.org/wiki/EPEL|EPEL]] repository | - Add the [[https://fedoraproject.org/wiki/EPEL|EPEL]] repository |
- Install the ipfixreceiver2:\\ <code>yum install -y ipfixreceiver2</code> | - Install the ipfixreceiver2:\\ <code>yum install -y ipfixreceiver2</code> |
:!: For more information about logging parameters please follow the [[https://pocoproject.org/docs/Poco.FileChannel.html|Class FileChannel]] link. | :!: For more information about logging parameters please follow the [[https://pocoproject.org/docs/Poco.FileChannel.html|Class FileChannel]] link. |
| |
===== Примеры конфигураций ===== | ===== Configuration examples ===== |
| |
=== Приём ipfix данных === | === Receiving of ipfix data === |
| |
В файлах /etc/rcollector/ipfixreceiver_*.ini приведены примеры настройки для получения различных потоков данных ipfix. Перед запуском программы необходимо изменить конфигурационный файл под ваши требования. | The /etc/rcollector/ipfixreceiver_*.ini files provide configuration examples for receiving various ipfix data flows. Before starting the program, you should to change the configuration file to meet your requirements. |
* При необходимости внести изменения в секцию [connect], указав интерфейс, порт и протокол для приема ipfix данных. | * If necessary, make changes to the [connect] section, specifying the interface, port and protocol for receiving ipfix data. |
* В секции [dump] указать: | * Specify within [dump] section the following stuff: |
* dumpfiledir - каталог, где будут создаваться временный файл и файлы с данными. | * dumpfiledir - the directory where the temporary file and data files will be created. |
* rotate_minutes - время, через которое закрывать временный файл, переименовывать его в файл с постоянным именем и выполнить команду из параметра processcmd для действий над полученным файлом. | * rotate_minutes - the time period upon the exceeding of which to close the temporary file, rename it to a file with a permanent name and execute a command from the processcmd parameter to operate on the received file. |
* processcmd - команду, небходимую выполнить над файлом с данными. | * processcmd - this command should be executed on the file with data. |
* delimiter - символ разделитель между полями данных. | * delimiter - delimiter character between data fields. |
* В секции [ExportModel] указать необходимый порядок следования полей в сохраняемом файле. | * You should specify the required order of the fields in the saved file within the [ExportModel] section. |
| |
=== Экспорт ipfix данных === | === Exporting of ipfix data === |
| |
Для экспорта получаемых ipfix данных необходимо внести изменения в конфигурационный файл, путем добавления секции [export] и указания адресов назначения. Например, для отправки ipfix данных на ipfix коллектор с адресом 10.0.0.5:1501 по протоколу tcp, элемент конфигурации будет выглядеть следующим образом: | To export the data received by ipfix, you need to make changes to the configuration file by adding the [export] section and specifying the destination addresses. For example, to send ipfix data to an ipfix collector having the 10.0.0.5:1501 address using the tcp protocol, the configuration item within [export] section will look like this: |
<code>[export] | <code>[export] |
to = 10.0.0.5/1501/tcp</code> | to = 10.0.0.5/1501/tcp</code> |
Если необходимо задать несколько ipfix коллекторов, то их можно указать через запятую. Например: | If you need to specify multiple ipfix collectors, you can specify comma-separated list of ipfix collectors. For example: |
<code>[export] | <code>[export] |
to = 10.0.0.5/1501/tcp, 192.168.1.200/1501/tcp</code> | to = 10.0.0.5/1501/tcp, 192.168.1.200/1501/tcp</code> |
| |
| |