Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 7.15
Sv translation
languageru

Для оптимизации хранения данных и увеличения производительности СУБД может быть установлено внешнее хранилище бинарных данных Data Storage. Подробнее см. InfoWatch Traffic Monitor. Руководство по установке. Схемы развертывания Системы и выбор типа установки и Установка Data Storage.

Чтобы настроить соединение между Traffic Monitor и Data Storage:

  1. Установите уровень протоколирования debug для процесса iw_x2db. Это позволит убедиться в успешности соединения после того, как оно будет настроено. Подробнее см. Логирование работы Системы.
  2. На сервере Traffic Monitor выполните команду:
    platform_conf_ctl --ds-set-enabled <bool> --ds-set-uri <platform-uri> --ds-set-token <token>
    где укажите следующие параметры:

    ПараметрОписаниеПримеры
    --ds-set-enabled <bool>Использовать Data Storage

    Использование Data Storage.
    Чтобы хранить бинарные данные событий в Data Storage, укажите значение 1.
    Если указать значение 0, то Data Storage не будет использоваться для хранения бинарных данных новых событий.

    --ds-set-enabled 1
    --ds-set-uri <platform-uri>Имя хоста или IP-адрес сервера Data Storage.
    По умолчанию используются протокол http и порт 40731.

    --ds-set-uri my.platform.com

    --ds-set-uri http://my.platform.com:40731

    --ds-set-token <token>

    Токен авторизации Data Storage.

    Значение токена по умолчанию: 1exwo92iwpczl1hy6jxy

    Предупреждение
    titleВажно!

    В целях повышения безопасности не рекомендуется рекомендуем использовать значение токена по умолчанию. 

    Узнать актуальное значение токена можно:

    • На на сервере Data Storage с помощью командной строки. Для этого:
      1. Перейдите в директорию, куда был распакован дистрибутив Платформы;.
      2. Выполните команду:
        ./setup.py tokens list
        В результате будет выведен список токенов для подключения к Платформе. Актуальный токен авторизации Data Storage будет указан напротив сущности DataStorageUser.

        Обновить токен авторизации Data Storage можно, выполнив команду:
        ./setup.py tokens refresh DataStorageUser

    • В в консоли управления продукта Платформы, в разделе Основные настройки в поле Токен для Data Storage User.
      Доступно, если на сервере с Data Storage установлен платформенный продукт с веб-интерфейсом , и в нем есть данная настройка.

      В этом случае токен можно обновить, нажав .

    --ds-set-token default

    --ds-set-token 1exwo92iwpczl1hy6jxy

При успешном соединении в логе /var/log/infowatch/x2db.log появится сообщение вида:

Блок кода
[DEBUG  ] : <DataStorage> platform request headers: GET /v2/logon?extAPIToken=1exwo92iwpczl1hy6jxy HTTP/1.1
Host: myplatformmy.infowatchplatform.rucom
User-Agent: tmOperator
Accept: application/json
X-IW-ACTIVEPRODUCT: TM

[DEBUG  ] : <DataStorage> platform response: HTTP/1.1 200 OK

После окончания настройки вы можете установить тот уровень протоколирования процесса iw_x2db, который был до настройки.

Чтобы просмотреть текущие настройки соединения с Data Storage:

На сервере Traffic Monitor выполните команду:
platform_conf_ctl

Чтобы разорвать соединение с Data Storage:

На сервере Traffic Monitor выполните команду:
platform_conf_ctl --ds-remove
Данные хранилища перестанут быть доступны.

Если вы хотите перестать сохранять бинарные данные событий в Data Storage, но иметь доступ к уже хранящимся там данным, выполните команду:
platform_conf_ctl --ds-set-enabled 0
Новые события будут целиком сохраняться в БД Traffic Monitor, начиная со следующего ежедневного табличного пространства, т. е. со следующего дня по UTC+0.

Sv translation
languageen

To optimize data storing and increase DBMS productivity, you can install external storage of binary data – Data Storage. For details, see InfoWatch Traffic Monitor. Installation Guide. System Deployment Schemes and Installation Types and Installing Data Storage.

To configure the connection between Traffic Monitor and Data Storage:

  1. Set the debug logging level for the iw_x2db process. This will allow you to make sure the connection is successful when it is configured. For details, see Логирование работы Системы.
  2. On the Traffic Monitor server, run the command:
    platform_conf_ctl --ds-set-enabled <bool> --ds-set-uri <platform-uri> --ds-set-token <token>
    where you specify the following parameters:

    ParameterDescriptionExamples
    --ds-set-enabled <bool>Use Data Storage

    Using Data Storage.
    To store binary data of events in Data Storage, specify the "1" value.
    If you specify the "0" value, the System will not use Data Storage for storing binary data of new events

    --ds-set-enabled 1
    --ds-set-uri <platform-uri>Hostname or IP address of the Data Storage server.
    The http protocol and the 40731 port are used by default.

    --ds-set-uri myplatformmy.infowatchplatform.rucom

    --ds-set-uri https://myplatformmy.infowatchplatform.rucom:4073240731

    --ds-set-token <token>

    Data Storage authorization token

    The default value of the token: 1exwo92iwpczl1hy6jxy

    Предупреждение
    titleWarning!

    To improve security, it is not recommended to use the default value of the token.

    You can find the actual value of the token:

    • On the Data Storage server, via the command line. For this:
      1. Go to the directory where the Platform distribution kit was extracted.
      2. Run the command:
        ./setup.py tokens list
        As a result, you will see a list of tokens for connecting to the Platform. The actual Data Storage authorization token will be displayed opposite the DataStorageUser identity.

        You can refresh the Data Storage authorization token by running the command:
        ./setup.py tokens refresh DataStorageUser

    • In the Platform product management console, in the Token for Data Storage User field of the Global settings section.
      Available if the Platform product with web interface is installed on the server with Data Storage and the web interface contains such a setting.

      In this case, you can refresh the token by pressing the button  .

    --ds-set-token default

    --ds-set-token  1exwo92iwpczl1hy6jxy

If the connection is succesfull, a message of the following type will appear in the /var/log/infowatch/x2db.log log file:

Блок кода
[DEBUG  ] : <DataStorage> platform request headers: GET /v2/logon?extAPIToken=1exwo92iwpczl1hy6jxy HTTP/1.1
Host: myplatformmy.infowatchplatform.rucom
User-Agent: tmOperator
Accept: application/json
X-IW-ACTIVEPRODUCT: TM

[DEBUG  ] : <DataStorage> platform response: HTTP/1.1 200 OK

After configuring is complete, you can set the logging level for the iw_x2db process  process that was set before configuring.

To view current settings of the connection with Data Storage:

On the Traffic Monitor server, run the command:
platform_conf_ctl

To break the connection with Data Storage:

On the Traffic Monitor server, run the command:
platform_conf_ctl --ds-remove
Data in the storage will no longer be available.

If you want to stop storing binary data of events in Data Storage but have access to already stored data, run the command:
platform_conf_ctl --ds-set-enabled 0
New events will be stored entirely in Traffic Monitor DB, starting with the next daily tablespace, i.e. starting tomorrow in UTC+0.