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

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

Ключ

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

Файл конфигурации attributor.conf

Scroll Table Layout
widths60%,40%

СодержимоеОписание
{

    "СontentAmountPerRequest": "1000",

Определяет максимальное количество контентов, которое может быть отправлено в DAS в одном запросе.

  • Пачки контентов (например, один файл) могут содержать большее количество контентов, чем указано в этом значении. В этом случае пачка не разбивается и отправляется отдельным запросом.
  • Пачки, в которых количество контентов меньше заданного значения, будут объединяться в соответствии с заданным параметром и количеством контентов в них. В зависимости от сортировки обрабатываемых Системой файлов количество запросов и контентов в них может быть разным. Например, 10 пачек по 1 контенту могут объединиться в 1 запрос или в 2 запроса по 5 контентов каждый.
    "TextSizeMinimumInBytes": "500",

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

Например:

  • Из изображения размером 50000 байт было извлечено 12 байт текста. В этом случае Система будет фильтровать вложение по размеру 12 байт.
  • В контейнере формата docx содержится 500 байт текста и вложение размером 20 килобайт. После сжатия этот контейнер весит 11 килобайт. Однако при извлечении текста из контейнера и распаковке вложенного сжатого файла общий объем текстовых данных составляет 20500 байт. В таком случае Система будет фильтровать это вложение по размеру 20500 байт.
  • Если вложение представляет собой архив, он будет распакован, и каждый элемент его содержимого будет рассматриваться и проходить фильтрацию отдельно.
    "RequestToDasTimeoutInSec": "1800",
Ограничивает временной таймаут при ожидании ответа от DAS (в секундах).
    "de": {
Параметры взаимодействия Traffic Monitor и Data Analysis Service.
        "tmhost": "set_tmhost_here",
Адрес Traffic Monitor.
        "tokenslist": "/opt/iw/tm5/etc/config/access_control/tokens.list"
Полный путь к файлу, содержащему токены аутентификации.
    },

   "logger": {
Настройки логирования.
        "filename": "/var/log/infowatch/attributor.log",
Полный путь к файлу, в который происходит запись логов.
        "level": "debug"

Уровень логирования.

Возможные значения уровня логирования (Severity):

  • trace - наиболее  – самое подробное логирование (включаются все сообщения с уровнями уровнями debug, info и  и выше);
  • debug - debug – вывод отладочной информации, обычно для диагностики ошибок и общения с отделами разработки и поддержки;
  • info - – информационные сообщения, могут быть отключены в стабильной системеСистеме;
  • warning - – предупреждения;
  • error -  – ошибки;
  • fatal  - наиболее – наиболее важные сообщения, приводящие к завершению работы или отказу.
    }

}

Unit-файл iw_attributor.service 

Scroll Table Layout
widths50%, 50%

КодОписание
[Unit]
Раздел для определения метаданных демона и настройки его взаимодействия с другими демонами.
Description=InfoWatch iw_attributor service
Название демона.
After=network-online.target iwtm-consul.service
Демоны, которые будут запущены до запуска текущего демона.


[Service]
Раздел настройки запуска демона.
Type=simple
Тип запуска демона. simple – демон запускается и переходит в режим ожидания на консоли.
PermissionsStartOnly=true
Запуск команд из ExecStartPre под пользователем root.
ExecStartPre=/bin/bash /opt/iw/tm5/bin/check_coredumps.sh -d iw_attributor_pg
Только для СУБД PostgreSQL. Полный путь и аргументы команды, которая должна быть выполнена до запуска основного процесса.
ExecStartPre=/bin/bash /opt/iw/tm5/bin/check_coredumps.sh -d iw_attributor_ora
Только для СУБД Oracle. Полный путь и аргументы команды, которая должна быть выполнена до запуска основного процесса процесса.
ExecStart=/opt/iw/tm5/bin/iw_attributor_pg -p /opt/iw/tm5/etc
Только для СУБД PostgreSQL. Полный путь и аргументы команды, которая должна быть выполнена для запуска демона. Запускается от пользователя, указанного в User.
ExecStart=/opt/iw/tm5/bin/iw_attributor_ora -p /opt/iw/tm5/etc
Только для СУБД Oracle. Полный путь и аргументы команды, которая должна быть выполнена для запуска демона. Запускается от пользователя, указанного в User.
ExecStop=/bin/kill -s SIGTERM $MAINPID
Команда для остановки демона. Если не указано, процесс будет немедленно уничтожен, когда демон будет остановлен. Запускается от Запускается от пользователя,  указанного в указанного в User.
ExecReload=/bin/kill -s SIGHUP $MAINPID
Команда для перезагрузки конфигурации демона, если она доступна.  Запускается от Запускается от пользователя,  указанного в указанного в User.
Restart=on-failure
Команда для рестарта демона, если он остановится или упадет. Значение on-failure означает, что демон будет перезапускаться, если он остановился с ненулевым кодом возврата или был завершен по сигналу (kill <pid_демона>).
RestartSec=5
Время ожидания перед попыткой перезапуска демона.
TimeoutStopSec=0
Время, в течение которого система Система будет ждать остановки демона, прежде чем принудительно пометить его как недоступный или завершенный завершенный.
User=iwtm
Имя пользователя, от которого осуществляется запуск демона.
Group=iwtm
Имя группы пользователягруппы пользователя.
LimitNOFILE=
Максимальное количество открытых файлов.
LimitFSIZE=
Максимальный размер файла (КБ). infinity – без ограничений.
LimitNPROC=
Максимальное количество процессов.
LimitCORE=
Ограничение на размер coredump-файла (КБ).
LimitMEMLOCK=
Максимальное заблокированное в памяти адресное пространство (КБ).


[Install]
Определение поведения демона, если он включен или отключен.
WantedBy=multi-user.target
Запускать этот демон, когда система Система загружается в multi-user режиме.
Sv translation
languageen

The iw_The attributor.conf configuration file:

Scroll Table Layout
widths
50%
60%,
50%
40%

- levels  debug - - the system- system and
ContentDescription
{

    "СontentAmountPerRequest": "1000",

Defines the maximum number of contents that can be sent to DAS in a single request.

  • Bundles of content (for example, a single file) may contain more contents than specified in the value. In this case, the bundle is not split and is sent as a separate request.
  • Bundles in which the number of contents is less than the specified value will be combined according to the set parameter and the number of contents in them. Depending on the sorting of files processed by the System, the number of requests and contents in them may vary. For example, 10 bundles of 1 content can be combined into 1 request or 2 requests of 5 content each.
    "TextSizeMinimumInBytes": "500",

Restricts sending data for analysis only by the volume of text content. If the attachment contains images or other types of containers, any materials other than text will not be counted.

For example:

  • 12 bytes of text were extracted from a 50000 byte image. In this case, the System will filter the attachment by the size of 12 bytes.
  • A docx container contains 500 bytes of text and a 20 kilobyte attachment. After compression, this container eventually weighs 11 kilobytes. However, when extracting text from the container and decompressing the attached file, the total amount of text data is 20500 bytes. In this case, the System will filter this attachment by the size of 20500 bytes.
  • If the attachment is an archive, it will be unpacked, and each element of its content will be viewed and filtered separately.
    "RequestToDasTimeoutInSec": "1800",
Limits the timeout when waiting for a response from DAS (in seconds).
    "de": {
Parameters of interaction between Traffic Monitor and Data Analysis Service.
        "tmhost": "set_tmhost_here",
Traffic Monitor address.
        "tokenslist": "/opt/iw/tm5/etc/config/access_control/tokens.list"
The full path to the file containing authentication tokens.
    },

   "logger": {
Logging parameters.
        "filename": "/var/log/infowatch/attributor.log",
The full path to the file, in which logs are recorded.
        "level": "debug"

Logging level.

Possible logging levels (Severity):

  • trace 
  • – the most detailed logging (including messages with the
  • levels debug, info
  • , and higher);
  • debug – debugging information output, usually for error diagnostics and communication with developers/tech support;
  • info
  • – information messages, could be disabled in
  • a stable
  • System;
  • warning – warnings;
  • error – errors;
  • fatal 
  • – most important messages leading to
  • System crash
  • or failure.
    }

}

The The iw_attributor.service  unit file:

Scroll Table Layout
widths60%50%, 40%50%

-  on under  The etc  The   field The   field The  field The  field system signal the process core dump size of memory locked a when system
CodeDescription
[Unit]
A section where the daemon metadata is determined and interaction settings with other daemons are specified.
Description=InfoWatch iw_attributor service
Daemon name.
After=network-online.target iwtm-consul.service
Daemons that will be started before the current one.


[Service]
A section where the daemon start settings are specified.
Type=simple
Daemon start type. simple – the daemon is started and goes into standby in the console.
PermissionsStartOnly=true
Running commands from ExecStartPre under root.
ExecStartPre=/bin/bash /opt/iw/tm5/bin/check_coredumps.sh -d iw_attributor_pg
Only for the PostgreSQL DBMS. The full path and arguments of the command that should be executed before the main process is started.
ExecStartPre=/bin/bash /opt/iw/tm5/bin/check_coredumps.sh -d iw_attributor_ora
Only for the Oracle DBMS. The The full path and arguments of the command that should be executed before the main process is started.
ExecStart=/opt/iw/tm5/bin/iw_attributor_pg -p /opt/iw/tm5/
etc
Only for the PostgreSQL DBMS. The full path and arguments of the command that should be executed before starting the daemon. The command is run under user specified in the User field.
ExecStart=/opt/iw/tm5/bin/iw_attributor_ora -p /opt/iw/tm5/etc
Only for the Oracle DBMS. The full path and arguments of the command that should be executed before starting the daemon. The command is run under user specified in the User field.
ExecStop=/bin/kill -s SIGTERM $MAINPID
A command to stop the daemon. If the command is not specified, the process will be killed once the daemon is stopped. The command is run under user specified in the User field.
ExecReload=/bin/kill -s SIGHUP $MAINPID
A command that reloads the daemon configuration, if it is available. The command is run under user specified in the User field.
Restart=on-failure
A command that restarts the daemon when it stops or crashes. The on-failure value indicates that the daemon will be restarted if it has stopped with a non-zero return code or was ended by signal (kill <daemon_pid>).
RestartSec=5
A timeout before attempting to restart the daemon.
TimeoutStopSec=0
The time during which the System waits for the daemon to stop before marking it as unavailable or terminated.
User=iwtm
The name of the user under whose account the daemon is started.
Group=iwtm
Name of the user group.
LimitNOFILE=
The maximum number of open files.
LimitFSIZE=
The maximum size of a file (KB). The infinity value means that the size is unlimited.
LimitNPROC=
The maximum number of processes.
LimitCORE=
Limit for coredump size (KB).
LimitMEMLOCK=
The maximum address space locked in memory (KB).


[Install]
Defines the behavior of the daemon if it is enabled/disabled.
WantedBy=multi-user.target
Start the daemon when the System is loaded in a multi-user mode.