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

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

Ключ

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

В Traffic Monitor для событий с вложениями вы можете выполнить Поиск аналогов (подробнее. см. InfoWatch Traffic Monitor. Руководство пользователя. Поиск аналогов).

Чтобы включить Поиск аналогов, настройте интеграцию Traffic Monitor с Data Analysis Service:

  1. Установите Data Analysis Service. Подробнее см. InfoWatch Data Analysis Service. Руководство по установке, конфигурированию и администрированию. Установка Data Analysis Service.

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

    Для взаимодействия Traffic Monitor версии 7.15.2 и ниже с Data Analysis Service версии 1.6.x, начиная с 1.6.4, и версии 1.7.x, начиная с 1.7.1, после установки/обновления Сервиса необходимо выполнить следующую команду для каждого его экземпляра:

    Блок кода
    kubectl set env deploy -n infowatch das-adapter-<node_label> AUTH_REQUIRED=False

    где <node_label> – это лейбл ноды платформенного кластера, на которую установлен экземпляр Data Analysis Service. Для центральной ноды используйте лейбл central. Для офисной ноды лейбл задается при установке, по умолчанию: office.

  2. Настройте соединение с Data Analysis Service с помощью утилиты platform_conf_ctl. Для этого:
    1. На сервере Traffic Monitor перейдите в директорию /opt/iw/tm5/bin/, где находится утилита.
    2. Выполните команду:
      ./platform_conf_ctl --das-set-uri <host_DAS>:30050 --das-set-token <token_value> --das-set-enabled 1
      где <host_DAS> – это имя хоста или IP-адрес сервера Data Analysis Service,
      <token_value> – это значение токена для соединения с Data Analysis Service. По умолчанию используйте значение токена 2exwo92iwpczl1hy6jxy .
      Узнать актуальное значение токена можно:
      • на центральной ноде кластера, в котором расположен сервер Data Analysis Service, с помощью командной строки:
        1. Перейдите в директорию <distr>/platform , где <distr> – это директория, куда был распакован дистрибутив Data Analysis Service или какого-либо платформенного продукта;
        2. Выполните команду:
          ./setup.py tokens list
          В результате будет выведен список токенов для подключения к Платформе. Актуальный токен авторизации Data Analysis Service будет указан напротив сущности DMServer.
      • в консоли управления продукта Платформы, в разделе Основные настройки в поле Токен для Device Monitor Server.
        Доступно, если в кластере установлен платформенный продукт с веб-интерфейсом и в нем есть данная настройка.
  3. В конфигурационном файле /opt/iw/tm5/etc/attributor.conf в строке "tmhost": "set_tmhost_here" вместо set_tmhost_here укажите IP-адрес сервера Traffic Monitor. Сохраните изменения.

    Информация
    titleПримечание:

    Здесь вы также можете изменить:

    • уровень логирования процесса iw_attributor. Для этого в секции "Logger" установите нужное значение для параметра "level". Подробнее см. Логирование работы Системы;
    • минимальный размер контентов, отправляемых на обработку в Data Analysis Service. Подробнее см. ниже;
    • максимальное количество контентов, отправляемых на обработку в Data Analysis Service в одном запросе. Подробнее см. ниже.
  4. Включите файловую очередь в базе данных (БД). Для этого подключитесь к серверу БД (подробнее см. раздел Администрирование базы данных) и выполните следующую команду:
    UPDATE object_queue
    SET enabled = 1
    WHERE object_queue_id = 5;
  5. Демаскируйте процесс iw_attributor. Для этого на сервере Traffic Monitor выполните команду:
    systemctl unmask iw_attributor
  6. Запустите процесс iw_attributor:
    iwtm start iw_attributor
  7. Убедитесь, что процесс iw_attributor запущен и имеет статус active.

    Для этого выполните команду:
    iwtm status iw_attributor
  8. Включите автозапуск процесса iw_attributor:
    iwtm enable iw_attributor
Информация
titleПримечание:
Data Analysis Service обрабатывает события, произошедшие после данной настройки. Для событий, произошедших до настройки, функция Поиск аналогов будет недоступна, и они не будут учтены при поиске аналогов других событий.

Чтобы выключить Поиск аналогов:

  1. Остановите процесс iw_attributor. Для этого на сервере Traffic Monitor выполните команду:
    iwtm stop iw_attributor
  2. Выключите автозапуск процесса iw_attributor:
    iwtm disable iw_attributor
  3. Выключите файловую очередь в БД. Для этого подключитесь к серверу БД и выполните следующую команду:
    UPDATE object_queue
    SET enabled = 0
    WHERE object_queue_id = 5;

Якорь
Min_size
Min_size
Настройка минимального размера контентов, отправляемых на обработку в Data Analysis Service

Чтобы отфильтровать поток контентов, отправляемых на обработку в Data Analysis Service, вы можете задать их минимальный размер для отправки. Это позволит отсеять малоинформативные контенты небольшого размера, например тексты, извлеченные с изображений и содержащие менее 50 кириллических символов. Чтобы задать минимальный размер:

  1. На сервере Traffic Monitor откройте для редактирования конфигурационный файл /opt/iw/tm5/etc/attributor.conf
  2. В поле "TextSizeMinimumInBytes" укажите минимальный размер в байтах.
  3. Сохраните изменения в файле.

По умолчанию поле "TextSizeMinimumInBytes" имеет значение 500 байтов.

Информация
titleПримечание:

Данный параметр ограничивает отправку данных только по объему текстового контента. Если вложение содержит изображения или другие виды контейнеров, учитывается только размер извлеченного из них текста.

Если вложение представляет собой архив, то каждый элемент его содержимого будет проходить фильтрацию отдельно.

Якорь
Max_number
Max_number
Настройка количества контентов, отправляемых в Data Analysis Service в одном запросе

Если в Data Analysis Service отправляется слишком много контентов в одном запросе, то время, в течение которого Traffic Monitor ожидает ответ от Сервиса, может быть превышено. В таком случае запрос может быть не обработан. Во избежание этого максимально допустимое количество контентов в одном запросе ограничено параметром contentAmountPerRequest.

Traffic Monitor объединяет в один запрос группы контентов, извлеченные из разных файлов, если суммарное количество этих контентов не превышает заданного в параметре.
Если количество контентов из одного файла превышает значение параметра contentAmountPerRequest, то они все равно будут отправлены одним запросом.

Чтобы изменить максимально допустимое количество контентов, отправляемых в одном запросе:

  1. На сервере Traffic Monitor откройте для редактирования конфигурационный файл /opt/iw/tm5/etc/attributor.conf
  2. В поле "contentAmountPerRequest" укажите количество контентов.
  3. Сохраните изменения в файле.

По умолчанию поле "contentAmountPerRequest" имеет значение 1000.

Sv translation
languageen

In Traffic Monitor, you can use the Search for analogues feature for events that contain attachments (for details, see InfoWatch Traffic Monitor. User Guide. Search for Analogues).

To enable the Search for Analogues feature, configure integration between Traffic Monitor and Data Analysis Service:

  1. Install Data Analysis Service. For details, see InfoWatch Data Analysis Service. Installation, Configuration and Administration Guide. Installing Data Analysis Service.

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

    For Traffic Monitor version 7.15.2 or earlier to interact with Data Analysis Service version 1.6.x, starting from 1.6.4, and version 1.7.x, starting from 1.7.1, after installating/updating the Service, you need to run the following command for each of its instances:

    Блок кода
    kubectl set env deploy -n infowatch das-adapter-<node_label> AUTH_REQUIRED=False

    where <node_label> is the label of the platfom cluster node where the Data Analysis Service instance is installed. For the central node, use the label central. For the office node, the label is specified during installation (office by default).

  2. Set up a connection with Data Analysis Service using the platform_conf_ctl utility. For this:
    1. On the Traffic Monitor server, open the /opt/iw/tm5/bin/ directory where the utility is located.
    2. Run the command:
      ./platform_conf_ctl --das-set-uri <host_DAS>:30050 --das-set-token <token_value> --das-set-enabled 1
      where <host_DAS> is the hostname or IP address of the Data Analysis Service server,
      <token_value> is the value of the token for connection with Data Analysis Service. By default, use the 2exwo92iwpczl1hy6jxy token value.
      You can find the actual value of the token:              
      • On the central node of the cluster, in which the Data Analysis Service server is located, via the command line:
        1. Go to the <distr>/platform directory. <distr> is the directory, where the distribution kit of Data Analysis Service or any platform product 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 Analysis Service authorization token will be displayed opposite the DMServer identity.

      • In the Platform product management console, in the Token for Device Monitor Server field of the Global settings section.
        Available if the Platform product with web interface is installed in the cluster and the web interface contains such a setting.
  3. In the  "tmhost": "set_tmhost_here" line of the /opt/iw/tm5/etc/attributor.conf configuration file, specify the IP address of the Traffic Monitor server instead of  set_tmhost_here . Save the changes.

    Информация
    titleNote:

    Here you can also change:

    • the logging level for the iw_ attributor process. For this, in the "Logger" section, set the required value for the "level" parameter. For details, see Логирование работы Системы.
    • minimum size of contents sent to Data Analysis Service for processing. For details, see below.
    • maximum number of contents sent in a single request to Data Analysis Service for processing. For details, see below.
  4. Enable file queue in the database. For this, connect to the DB server (for details, see Администрирование базы данных) and run the following command:
    UPDATE object_queue
    SET enabled = 1
    WHERE object_queue_id = 5;
  5. Unmask the iw_ attributor process. For this, on the Traffic Monitor server, run the command:
    systemctl unmask iw_attributor
  6. Run the iw_ attributor process:
    iwtm start iw_attributor
  7. Make sure the iw_ attributor process is running and have the active status.

    For this, run the command:
    iwtm status iw_attributor
  8. Enable autorun for the iw_ attributor process:
    iwtm enable iw_attributor
Информация
titleNote:

Data Analysis Service starts processing events since you have configured this setting. For events that happend before, the Search for analogues feature does not work and those events will not be taken into account if you run Search for analogues for other events.

To disable the Search for Analogues feature:

  1. Stop the iw_ attributor process. For this, on the Traffic Monitor server, run the command:
    iwtm stop iw_attributor
  2. Disable autorun for the iw_ attributor process:
    iwtm disable iw_attributor
  3. Disable file queue in the database.  For this, connect to the DB server and run the following command:
    UPDATE object_queue
    SET enabled = 0
    WHERE object_queue_id = 5;

Якорь
Min_size
Min_size
Setting a minimum size of contents sent to Data Analysis Service for processing

To filter a flow of contents sent to Data Analysis Service for processing, you can set their minimum size for sending. It allows you to filter out uninformative contents of a small size, e.g. texts extracted from images and containing less than 50 symbols. To set a minimum size:

  1. On the Traffic Monitor server, open the /opt/iw/tm5/etc/attributor.conf configuration file for editing.
  2. In the "TextSizeMinimumInBytes" field, specify the minimum size in bytes.
  3. Save the changes.

By default, the "TextSizeMinimumInBytes" field has the value of 500 bytes.

Информация
titleNote:

The parameter limits sending data only by text content size. If the attachment contains an image or a container of another kind, only the size of extracted text will be considered.

If the attachment is an archive, then each element of its content will be filtered separately.

Якорь
Max_number
Max_number
Setting a number of contents sent to Data Analysis Service in a request

If too much contents are sent to Data Analysis Service in a single query, the time during which Traffic Monitor waits for a response from Service can be exceeded. In this case, the request may not be processed. To prevent this, the maximum allowable number of contents in a request is limited by the contentAmountPerRequest parameter.

Traffic Monitor combines groups of contents extracted from different files into one request if the total number of these contents does not exceed the parameter value.
If the number of contents from a single file exceeds the contentAmountPerRequest parameter value, then nevertheless they will be sent in a single request.

To change the maximum allowable number of contents sent in a single request:

  1. On the Traffic Monitor server, open the /opt/iw/tm5/etc/attributor.conf configuration file for editing.
  2. In the "contentAmountPerRequest" field, specify the number of contents.
  3. Save the changes.

By default, the "contentAmountPerRequest" field has the value of 1000.