Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:dpi:dpi_components:utilities:ipfixreceiver2 [2019/04/01 07:08] – kvazikrav | en:dpi:dpi_components:utilities:ipfixreceiver2 [2024/09/26 15:29] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== ipfixreceiver2: | ====== ipfixreceiver2: | ||
+ | {{indexmenu_n> | ||
===== Introduction ===== | ===== Introduction ===== | ||
Line 13: | Line 13: | ||
==== CentOS ==== | ==== CentOS ==== | ||
- | - Add the VAS Experts repository | + | - Add the VAS Experts repository |
+ | rpm -Uvh http:// | ||
- Add the [[https:// | - Add the [[https:// | ||
- Install the ipfixreceiver2: | - Install the ipfixreceiver2: | ||
Line 64: | Line 65: | ||
=== Section [connect] === | === Section [connect] === | ||
- | В данной секции задаются параметры для приема данных | + | The section is used to specify the parameters for receiving |
- | * protocol - IP протокол | + | * protocol - IP protocol |
- | * host - интерфейс, на котором будет осуществляться прием данных | + | * host - interface, used to receive the data |
- | * port - номер порта | + | * port - port number |
- | * flow_type - тип принимаемого потока: ipfix или | + | * flow_type - the type of flow to receive: ipfix or netflow9. |
- | === Секция | + | === Section |
- | В данной секции задаются параметры дампа принятых данных в файл. | + | The section is used to specify the parameters of data dump received. |
- | * delimiter - символ разделителей данных в файле. | + | * delimiter - character used as delimiter within the file. |
- | * rotate_minutes - через сколько минут закрывать временный файл и переименовывать его в постоянный. | + | * rotate_minutes - the time period after which the temporary file will be closed and renamed to a persistent one |
- | * rotate_flows - через какое количество | + | * rotate_flows - the ipfix records number upon the exceeding of which the temporary file will be closed and renamed to a persistent one. 0 - to disable this rotation type. |
- | * dumpfiledir - каталог для размещения файлов с дампом. | + | * dumpfiledir - directory used to store the dump files. |
- | * fileprefix - префикс имени файла с дампом. | + | * fileprefix - dump file name prefix. |
- | * rotateformat - формирует имя файла с дампом. | + | * rotateformat - generates a dump file name. |
- | * extension - расширение файла с дампом. | + | * extension - extension of a dump file. |
- | * temp_file_suffix - суффикс имени временного файла. | + | * temp_file_suffix - name suffix of a temporary file. |
- | * processcmd - команда для запуска при ротации файла. %s задает имя постоянного файла с дампом. | + | * processcmd - command used to set rotate option. %s specifies the name of persistent file containing the dump. |
- | * detach_child - если | + | * detach_child - when is set to true, the processcmd |
- | * decode_url - декодировать символы в url при использовании | + | * decode_url - to decode characters in url when using decodepath. |
- | * decode_host - декодировать | + | * decode_host - to decode |
- | * decode_referer - декодировать | + | * decode_referer - to decode |
- | * reopen_time - через сколько секунд будет предпринята попытка открыть файл для записи дампа после возникшей ошибки с файлом. По умолчанию | + | * reopen_time - the time period upon the exceeding of which the attempt to reopen a file for recording a dump after an error occurred (when attempting to access the file) will be made. The default value is 30 seconds. |
- | * checkdir - проверять ли на существование | + | * checkdir - boolean parameter; is used to check whether |
- | * fw_max_elements_in_queue - количество элементов, | + | * fw_max_elements_in_queue - the items number upon the exceeding of which they will be forwarded to the queue to be written to the file. The default value is 100000. |
- | * fw_max_queue_size - максимальное количество массивов элементов в очереди. Если на момент добавления в очередь количество находящихся в очереди будет больше, то добавляемые данные будут отброшены. По умолчанию | + | * fw_max_queue_size - the maximum number of arrays of elements in the queue. If the number of people at the time of adding them to the queue will be more than fw_max_queue_size, then the data will be discarded. The default value is 2. |
- | * bad_characters - символы, | + | * bad_characters - characters that do not need to be displayed when writing to a file. Single characters along with escape |
- | === Секция | + | === Section |
- | В данной секции задается | + | This section specifies an xml file describing the type of data within the received |
- | * XMLElements - путь к xml файлу с описанием типа данных в формате | + | * XMLElements - path to xml file with data type description using the [[https:// |
- | === Секция | + | === Section |
- | В данной секции задается порядок следования данных в принимаемом потоке | + | The section is responsible for the data sequence order within the received |
- | * Elements - список принимаемых данных (через запятую). | + | * Elements - comma separated list of received data. |
- | * filter_tid - только данные с данным идентификатором будут обрабатываться, а с иными будут отброшены. | + | * filter_tid - only the data with the given identifier will be processed, all the other ones will be discarded. |
- | === Секция | + | === Section |
- | В данной секции определяется порядок и формат вывода полученных данных. | + | This section specifies the order and format of the received data to be exported. |
- | * Elements - список данных, | + | * Elements - comma separated list of data to be stored in the file. You can change the predefined export format |
- | ^Формат_вывода^Описание^ | + | ^Output_format^Description^ |
- | |decode_unsigned|Декодировать как | + | |decode_unsigned|Decode as unsinged| |
- | |decode_signed|Декодировать как | + | |decode_signed|Decode as signed| |
- | |decodeipv4|Декодировать как | + | |decodeipv4|Decode as IPv4 address| |
- | |decodeipv6|Декодировать как | + | |decodeipv6|Decode as IPv6 address| |
- | |decode_string|Декодировать как строку| | + | |decode_string|Decode as string| |
- | |decode_seconds|Декодировать как дату и время в секундах. Формат вывода по умолчанию | + | |decode_seconds|Decode as date and time in seconds. The default output format is ' |
- | |decode_milliseconds|Декодировать как дату и время в миллисекундах. Формат вывода по умолчанию | + | |decode_milliseconds|Decode as date and time in milliseconds. The default output format is |
- | |decodehost|Декодировать как имя хоста| | + | |decodehost|Decode as host name| |
- | |decodepath|Декодировать как путь в url| | + | |decodepath|Decode as url| |
- | |decodereferer|Декодировать как | + | |decodereferer|Decode as referer| |
- | === Секция | + | === Section |
- | В данной секции задаются параметры вывода статистики работы программы в telegraf. | + | The section specifies the export options for sending ipfixreceiver2 statistics (metrics and events) to the telegraf |
- | * socket_path - путь к datagram socket | + | * socket_path - path to the telegraf' |
- | * interval - через сколько секунд отправлять статистику в telegraf. | + | * interval - the time period upon the exceeding of which the statistics will be sent to the telegraf |
- | * tag - тег, выставляемый в поле | + | * tag - tag set in the ipfix_tag |
- | === Секция | + | === Section |
- | *to - задаются адреса коллекторов для экспорта полученных | + | *to - specifies the collector addresses to be used to export received |
- | to=10.0.0.2/ | + | to=10.0.0.2/ |
+ | :!: When using the udp protocol, you should make sure that one ipfix record does not exceed the size of the MTU. | ||
- | === Секция | + | === Section |
- | В данной секции задаются параметры логирования программы. | + | The section specifies the logging parameters. |
- | * loggers.root.level - уровень логирования | + | * loggers.root.level - log level |
- | * loggers.root.channel - канал для вывода сообщений | + | * loggers.root.channel - channel to display messages |
- | * channels.fileChannel.class - класс канала вывода | + | * channels.fileChannel.class - output channel class |
- | * channels.fileChannel.path - путь к лог-файлу | + | * channels.fileChannel.path - path to the log file |
- | * channels.fileChannel.rotation - параметр ротации | + | * channels.fileChannel.rotation - rotation parameter |
- | * channels.fileChannel.archive | + | * channels.fileChannel.archive |
- | * channels.fileChannel.purgeCount - количество архивных файлов | + | * channels.fileChannel.purgeCount - number of archive files |
- | * channels.fileChannel.formatter.class - класс форматировщика | + | * channels.fileChannel.formatter.class - formatter class |
- | * channels.fileChannel.formatter.pattern - шаблон для форматировщика | + | * channels.fileChannel.formatter.pattern - formatter pattern |
- | * channels.fileChannel.formatter.times - время | + | * channels.fileChannel.formatter.times - time |
- | :!: Более подробно ознакомиться с параметрами логирования можно по ссылке | + | :!: For more information about logging parameters please follow the [[https:// |
- | ===== Примеры конфигураций | + | ===== Configuration examples |
- | === Приём | + | === Receiving of ipfix data === |
- | В файлах | + | The / |
- | * При необходимости внести изменения в секцию | + | * If necessary, make changes to the [connect] |
- | * В секции | + | * Specify within |
- | * dumpfiledir - каталог, | + | * dumpfiledir - the directory where the temporary file and data files will be created. |
- | * rotate_minutes - время, через которое закрывать временный файл, переименовывать его в файл с постоянным именем и выполнить команду из параметра | + | * 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 |
- | * processcmd - команду, | + | * processcmd - this command should be executed on the file with data. |
- | * delimiter - символ разделитель между полями данных. | + | * delimiter - delimiter character between data fields. |
- | * В секции | + | * You should specify the required order of the fields in the saved file within the [ExportModel] |
- | === Экспорт | + | === Exporting of ipfix data === |
- | Для экспорта получаемых | + | To export the data received by ipfix, |
< | < | ||
to = 10.0.0.5/ | to = 10.0.0.5/ | ||
- | Если необходимо задать несколько | + | If you need to specify multiple |
< | < | ||
to = 10.0.0.5/ | to = 10.0.0.5/ | ||