| Sv translation | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||
Начиная с версии 7.14, Traffic Monitor может отправлять события в Платформу двумя способами:
Отправка событий в реальном времени позволяет уменьшить нагрузку на Traffic Monitor.
Чтобы переключить способ отправки событий в настройках Traffic Monitor, на сервере Traffic Monitor запустите утилиту
Укажите в ней следующие параметры соединения с платформенным сервисом FactsLoader:
Пример команды включения отправки в реальном времени: Блок кода | | ||||||||||||||||||||||||||||||||
|
| Информация | ||
|---|---|---|
| ||
В случае распределенной установки утилиту нужно запускать на сервере, установленном при помощи шаблона Перехватчики. |
Пример команды включения отправки в реальном времени:
| Блок кода | ||
|---|---|---|
| ||
platform_conf_ctl --fl-set-enabled true --fl-set-uri http://10.60.23.249:10104 --fl-set-token default --fl-set-integration-id e06bd150-513b-4eb6-975a-533cf96e50ab --ds-set-enabled true --ds-set-uri http://10.60.23.249:40731 --ds-set-token default |
Команда отключения отправки в реальном времени и перехода на отправку по расписанию:
| Блок кода | ||
|---|---|---|
| ||
platform_conf_ctl --fl-set-enabled false |
Настройка отправки событий в реальном времени
Чтобы настроить отправку в реальном времени:
- В Центре расследований скопируйте ID интеграции.
- На сервере Traffic Monitor используйте утилиту, чтобы переключить способ отправки событий.
Перезапустите службу
iw_x2db:
Настройка отправки событий в реальном времени
Чтобы настроить отправку в реальном времени:
- В Центре расследований скопируйте ID интеграции.
- На сервере Traffic Monitor используйте утилиту, чтобы переключить способ отправки событий.
Перезапустите службу
iw_x2db:Блок кода language text systemctl restart iw_x2db- Перейдите в Центр расследований. Чтобы отображались события с момента последней синхронизации до переключения на режим отправки в реальном времени, запустите синхронизацию вручную.
- Переключите способ отправки в Центре расследований и сохраните изменения.
- На сервере базы данных Traffic Monitor нормализуйте табличные пространства (ТП).
Нормализация табличных пространств
Для лучшего взаимодействия Traffic Monitor с Платформой измените наименование корзин (bucket) с данными. Для этого нормализуйте ТП:
- Перейдите в папку сервиса Space Manager
Блок кода language text
platform_conf_ctl --fl-set-enabled false --ds-set-enabled falsesystemctl restart iw_x2db- Перейдите в Центр расследований. Чтобы отображались события с момента последней синхронизации до переключения на режим отправки в реальном времени, запустите синхронизацию вручную.
- Переключите способ отправки в Центре расследований и сохраните изменения.
- Если вы используете Data Storage, то при необходимости нормализуйте табличные пространства (ТП). Подробнее см. далее.
Нормализация табличных пространств
Для лучшего взаимодействия Traffic Monitor с Платформой необходимо нормализовать ТП. Нормализация заключается в изменении наименования корзин (bucket) с данными в Data Storage. Она происходит автоматически ночью при запуске задачи (cron) сервиса space_manager.
Заполненные ТП, т.е. те в которых уже есть события, не нормализуются. Нормализуются только пустые ТП за текущую и будущие даты.
Если ТП за текущую дату пусты (например, если вы установили Traffic Monitor и Data Storage впервые), рекомендуется сразу нормализовать их. Если ТП за текущую дату не пусты, то вы можете пропустить этот шаг и дождаться выполнения задачи (cron) по расписанию.
Чтобы нормализовать ТП немедленно:
На сервере базы данных Traffic Monitor перейдите в папку сервиса space_manager:
Блок кода cd /opt/iw/tm5/www/space_manager/
Выполните команду для вывода списка пространств для нормализации:
Блок кода php space_manager tbs:normalize-platform --configpath=/opt/iw/tm5/etc --dry-run
Запустите нормализацию ТП с помощью команды:
Блок кода php space_manager tbs:normalize-platform --configpath=/opt/iw/tm5/etc
После нормализации у пространств будет изменено наименование в столбце STORAGE_BUCKET_ID.
Вы можете выполнить команду для вывода списка ТП:
Блок кода php space_manager tbs:get --configpath=/opt/iw/tm5/etc/
Пример списка с недоступными для нормализации и нормализованными ТП:
В Traffic Monitor и Платформе отличаются методы хранения данных. Так как в Платформе записи о данных по неделям, после нормализации в Traffic Monitor для ТП с событиями без нарушений и с нарушениями будет заполнен "Размер в хранилище" на всю текущую неделю. Для всех этих ТП будет указан общий суммарный размер. Если в текущей неделе были ненормализованные ТП, их значение не будет учтено в сумме. Для ТП со снимками экрана "Размер в хранилище" продолжит заполняться по дням, как было до нормализации.
| Раскрыть | |||||
|---|---|---|---|---|---|
| |||||
|
Настройка отправки событий по расписанию
Если ранее Центр расследований не синхронизировался с Traffic Monitor, то достаточно настроить интеграцию в Центре расследований.
Если ранее была настроена отправка событий в реальном времени:
На сервере Traffic Monitor используйте утилиту, чтобы переключить способ отправки событий:
Блок кода platform_conf_ctl --fl-set-enabled false --dsfl-set-enabled false
- Если вы хотите вернуть наименование ТП в столбце STORAGE_BUCKET_ID к значению до нормализации:
На сервере базы данных Traffic Monitor перейдите в папку сервиса Space Manager space_manager:
Блок кода cd /opt/iw/tm5/www/space_manager/
Выполните команду:
Блок кода php space_manager tbs:normalize-platform --configpath=/opt/iw/tm5/etc
Наименование корзин (bucket) будет изменено только у пустых ТП и созданных после выполнения команды. Заполненные ТП не будут изменены.
Перезапустите службу
iw_x2db:Блок кода language text systemctl restart iw_x2db
- Перейдите в Центр расследований и в интеграции с Traffic Monitor отключите загрузку событий в реальном времени.
- При необходимости измените расписание автоматической синхронизации и сохраните изменения.
Подробнее о настройках интеграции в Центре расследований см. Руководство администратора используемого платформенного продукта, статья Интеграция с InfoWatch Traffic Monitor.
| Sv translation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Starting with version 7.14, Traffic Monitor can send events to the Platform in two ways:
Sending events in real time helps reduce Traffic Monitor load.
To switch the way of sending events in Traffic Monitor settings, use the
In the command above, specify the following parameters of connection with the platform FactsLoader service:
If Traffic Monitor use Data Storage to store its own data, then, in the | --fl-set-integration-id | Unique ID of the Platform integration with Traffic Monitor. For instructions on getting the ID, see Integration with InfoWatch Traffic Monitor article in Administration Guide for the Platform product you are using
| Информация | ||
|---|---|---|
| ||
In case of distributed installation, the utility must be run on the server installed with the Interceptors template. |
Example of enabling real-time pushing:
| Блок кода | ||
|---|---|---|
| ||
platform_conf_ctl --fl-set-enabled true --fl-set-uri http://10.60.23.249:10104 --fl-set-token default --fl-set-integration-id e06bd150-513b-4eb6-975a-533cf96e50ab --ds-set-enabled true --ds-set-uri http://10.60.23.249:40731 --ds-set-token default |
Command to disable real-time pushing and switch to scheduled sending:
| Блок кода |
|---|
platform_conf_ctl --fl-set-enabled false --ds-set-enabled false |
Switching algorithm
To configure real-time pushing:
- In the Investigation Centre, copy the integration ID.
- On the Traffic Monitor server, switch the way of sending events using the utility.
Restart the
iw_x2dbservice:Блок кода language text systemctl restart iw_x2db- Go to the Investigation Centre. For the System to display events between the last synchronization and until switching to real-time pushing, start the synchronization manually.
- In the Investigation Centre, switch the way of sending events and save the changes.
- Normalize tablespaces (TS) on the Traffic Monitor database server.
Tablespace normalization
To ensure better interaction between Traffic Monitor and the Platform, change the name of data buckets. To do this, normalize TS:
Go to the Space ManagerCommand to disable real-time pushing and switch to scheduled sending:
| Блок кода |
|---|
platform_conf_ctl --fl-set-enabled false |
Configuring real-time pushing
To configure real-time pushing:
- In the Investigation Centre, copy the integration ID.
- On the Traffic Monitor server, switch the way of sending events using the utility.
Restart the
iw_x2dbservice:Блок кода language text systemctl restart iw_x2db- Go to the Investigation Centre. For the System to display events between the last synchronization and until switching to real-time pushing, start the synchronization manually.
- In the Investigation Centre, switch the way of sending events and save the changes.
- If you use Data Storage, then, if needed, normalize tablespaces (TS). Details are described further.
Tablespace normalization
To ensure better interaction between Traffic Monitor and the Platform, it is necesary to normalize TS. Normalization lies in changing names of data buckets in Data Storage. It happens automatically at night, when a task (cron) of the space_manager service runs.
System does not normalize filled TS, i.e. TS that already contain events. It normalize only empty TS for the current and future date.
If TS for the current date are empty (e.g., you install Traffic Monitor and Data Storage for the first time), it is recommended to normalize them immediately. If TS for the current date are not empty, then you can skip this step and wait for the task (cron) to complete on schedule.
To normalize TS immediately:
On the Traffic Monitor database server, go to the space_manager service folder:
Блок кода cd /opt/iw/tm5/www/space_manager/
Run the command to display the list of TS to normalize:
Блок кода php space_manager tbs:normalize-platform --configpath=/opt/iw/tm5/etc --dry-run
Run the TS normalization using the command:
Блок кода php space_manager tbs:normalize-platform --configpath=/opt/iw/tm5/etc
After the normalization, TS will have their names changed in the STORAGE_BUCKET_ID column.
You can run the command to display the TS list:
Блок кода php space_manager tbs:get --configpath=/opt/iw/tm5/etc/
Example of a list with non-normalized and normalized TS:
Traffic Monitor and the Platform use different data storage methods. Since the Platform has weekly data records, after normalization, the "Storage size" for the entire current week will be filled in the Traffic Monitor for TS with events with and without violations. The total size will be displayed for all these TS. If there were non-normalized TS during the current week, their value will not be included in the total. For TS with screenshots, the "Storage size" will continue to be filled on a daily basis, as it was before the normalization.
| Раскрыть | |||||
|---|---|---|---|---|---|
| |||||
|
Configuring scheduled events sending
If the Investigation Centre has not previously synced with Traffic Monitor, you only need to set up the integration in the Investigation Centre.
If real-time event pushing was previously configured:
On the Traffic Monitor server, switch the way of sending events using the utility:
Блок кода platform_conf_ctl --fl-set-enabled false --ds-set-enabled false- If you want to return the TS name in the STORAGE_BUCKET_ID column to the value before the normalization:
On the Traffic Monitor database server, go to the Space Manager space_manager service folder:
Блок кода cd /opt/iw/tm5/www/space_manager/
Run the command:
Блок кода php space_manager tbs:normalize-platform --configpath=/opt/iw/tm5/etc
The bucket name will be changed only for empty TS and those created after executing the command. The filled TS will not be changed.
Restart the service
iw_x2db:Блок кода language text systemctl restart iw_x2db
- Go to the Investigation Centre and disable the real-time event loading in the integration with Traffic Monitor.
- If necessary, change the automatic synchronization schedule and save the changes.
For more information about integration settings in the Investigation Centre, see Integration with InfoWatch Traffic Monitor article in Administration Guide for the Platform product you are using.




