Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:dpi:dpi_components:utilities:rcollector [2018/07/11 22:51] – created kvazikrav | en:dpi:dpi_components:utilities:rcollector [2024/10/11 08:31] (current) – removed elena.krasnobryzh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Utility designed to assemble the IPFIX flows ====== | ||
| - | {{indexmenu_n> | ||
| - | ===== Introduction ===== | ||
| - | The utility is designed to complement streams such as clickstream, | ||
| - | |||
| - | ===== Installation and upgrade ===== | ||
| - | - add the VAS Experts repository similar to the item 1 of [[en: | ||
| - | - install the rcollector: | ||
| - | - edit the configuration files in the / | ||
| - | |||
| - | ===== Delivery files ===== | ||
| - | - configuration examples:\\ < | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | / | ||
| - | </ | ||
| - | - program files are located withing the directory: | ||
| - | - auxiliary files:\\ < | ||
| - | - links to the executable module:\\ < | ||
| - | |||
| - | ===== Configuration ===== | ||
| - | - create the following directories to place the ipfixreceiver and rcollector files < | ||
| - | mkdir -p / | ||
| - | mkdir -p / | ||
| - | mkdir -p / | ||
| - | |||
| - | mkdir -p / | ||
| - | mkdir -p / | ||
| - | mkdir -p / | ||
| - | mkdir -p / | ||
| - | mkdir -p / | ||
| - | mkdir -p / | ||
| - | </ | ||
| - | - copy the / | ||
| - | mkdir -p / | ||
| - | cp / | ||
| - | chmod a+x / | ||
| - | </ | ||
| - | - edit the [[ipfixreceiver|ipfixreceiver]] configuration files :< | ||
| - | 1. specify the configuration of the port used to receive stream data depending on the DPI configuration, | ||
| - | port=1501 | ||
| - | 2. specify the handler for the received file, for example for the clickstream of device 111: | ||
| - | processcmd=/ | ||
| - | 3. specify the directory for the received files, for example for clickstream: | ||
| - | dumpfiledir=/ | ||
| - | |||
| - | </ | ||
| - | - edit configuration files rcollector. Example for device 111, local ASN = 47438, | ||
| - | chome="/ | ||
| - | cipfix="/ | ||
| - | localASN=" | ||
| - | devuid=" | ||
| - | here | ||
| - | chome - the root directory of the resulting collector files | ||
| - | cipfix - root directory of configuration files | ||
| - | localASN - local autonomous systems of the communications provider | ||
| - | devuid - device number | ||
| - | </ | ||
| - | - create a file for log rotation< | ||
| - | / | ||
| - | / | ||
| - | { | ||
| - | rotate 5 | ||
| - | missingok | ||
| - | notifempty | ||
| - | compress | ||
| - | size 10M | ||
| - | daily | ||
| - | copytruncate | ||
| - | nocreate | ||
| - | postrotate | ||
| - | endscript | ||
| - | } | ||
| - | </ | ||
| - | - create jobs that move files to the archive or delete them as in the example: < | ||
| - | # dell collector data after 1.5 and 1 days | ||
| - | 15 * * * * /bin/find / | ||
| - | 05 * * * * /bin/find / | ||
| - | 15 * * * * /bin/find /var/dump/ -name url_\*gz -cmin +1440 -delete > /dev/null 2>&1 | ||
| - | </ | ||