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

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

Ключ

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

Для удобства отслеживания работы процессов, подсистема протоколирования имеет шесть уровней:

Название уровня

Описание

fatal

Показывает ошибки, которые препятствуют дальнейшей работе процесса

error

Показывает сообщения об ошибках, которые не являются критическими для работоспособности процесса

warning

Выводит сведения о потенциально опасных ситуациях

info

Общая полезная информация о процессе (старт/стоп, применение конфигураций и т.д.)

debug

Выводит информацию, которая чаще всего используется для диагностики работы сервиса (IT, системные администраторы и т.д.)

trace

Чаще всего используется для отслеживания кода разработчиками

Настройка уровней протоколирования

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

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

Конфигурационные файлы хранятся в директории /opt/iw/tm5/etc. По умолчанию все процессы имеют уровень протоколирования warning.

Чтобы изменить уровень протоколирования для процессов Traffic Monitor Server:

  1. В конфигурационном файле нужного процесса, в секции Logging установите для параметра GlobalLevel необходимое значение.
  2. Cохраните измененный файл.
  3. После внесения изменений в системный журнал, перезапустите процесс:
    service iwtm restart имя<имя_службы службы> 

Все логи процессов по умолчанию хранятся в каталоге /var/log/infowatch.

Для экстракторов, у которых нет отдельного конфигурационного файла, настройте уровень протоколирования в конфигурационном файле /opt/iw/tm5/etc/config-perm/bookworm/extractors.confxml:

  1. Откройте конфигурационный файл;
  2. Для параметра text-extractor добавьте значение –l <level>
    Где , где <level> - уровень протоколирования.
    Например: 

      },

        "docx": {

            "Command": [

                "
  1.       <Command>bin/text-extractor –l error -t ooxml -i
${SRC} -d
  1. ${OUTDIR}"<Command>
  2. После внесения изменений, перезапустите процессы:
    iwtm restart bookworm
    iwtm restart warpd
Информация
titleПримечание:

Данный тип настройки протоколирования доступен для экстракторов следующих форматов: docx, html, msoffice_xml, msole, odp, odt, pptx, xlsx, xml.

Sv translation
languageen

To monitor For the convenience of monitoring processes, the logging subsystem has 6 levels of logging:

ValueLevel

Description

fatal

Writes errors , which stops further process functioningthat are critical for the process operation

error

Writes messages about errors , which that are not critical for the process functioningoperation

warning

Writes information about potentially dangerous situationscases

Information

General useful information about the process that can be useful (process start/stop, applying configuration and so onconfigurations, etc.)

debug

Writes information , which is mostly used for service functioning diagnostics to diagnose the service operation (IT, system administrators and so on)

trace

Mostly used by programmers to track the code

Configuring logging levels

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

Keep in mind that an increase in the Please, note that choosing a more detailed logging level may dramatically significantly reduce the System performance.

Configuration files are located in directory the /opt/iw/tm5/etc. All processes have warning logging level by default warning directory. By default, the warning level is used for all processes.

To change the logging level for Traffic Monitor Server processes:

  1. In the configuration file of the required process, in section  Logging  set for parameter  GlobalLevel  required valuefind the Logging section and set the needed value for GlobalLevel  parameter.
  2. Save changes.
  3. After committing changes to system journalyou have changed the system log, restart the process:
    service iwtm restart service<service_name 
All processes
  1. name> 

By default, all process logs are being saved stored in catalogue the /var/log/infowatch directory.

For extractors , which do not have an individual a separate configuration file, the logging level can be set in configuration file the /opt/iw/tm5/etc/config-perm/bookworm/extractors.confxml configuration file: 

  1. Open the configuration file;.
  2. For parameter For text-extractor add  parameter, add the value –l <level>
    Where <level> , where <level> is the recording logging level.
    ExampleFor example:

      },

        "docx": {

            "Command": [

                "
  1.      <Command> bin/text-extractor –l error -t ooxml -
i Dollars {{SRC} -d
  1. i ${OUTDIR}"<Command>
  2. After you have made changes, restart processes:
    iwtm restart bookworm
    iwtm restart warpd
Информация
titleNote:

This type of configuring the logging configuration level is only available for extractors of the following formats: docx, html, msoffice_xml, msole, odp, odt, pptx, xlsx, xml.