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

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

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Sv translation
languageen

The analysis.conf configuration file:

ContentDescription
{
 
    "Analysis": {
 
        "HTTP": {
 
            "CharsetDetection": 0, 
Charset detection method. 0 by default. In this case the charset is detected using common method. After extracting in the context some POST-requests might be displayed incorrectly. To fix it you may set the value 1.
        "DecodeHttpContent": true, 
Enable request content extracting if the value of the Content-Encoding header is one of the following: gzip, deflate, compress. true by default.
        "ExtractHttpEntity": false,
Enable text extraction from encrypted request content using external decompressors. This procedure is used, if the internal decoding procedure crashes using zlib. false by default.
          "MaxFileMap": 131072,
Maximum buffer size to read a http context file (bytes).
           "MaxMemoryBlock": 4096,

Maximum amount of POST-request data (kilobytes), which could be stored in RAM. Large size blocks will be unloaded to temporary files. 4096 by default.

            "MaxReadBuf": 131072,
Buffer size limit. 131072 by default.
               "MinHeader": 10,
Minimum URL encoded text size (bytes) for one block of a variable, which will be sent to the content analysis server. 10 by default.
              "MinText": 0,

Minimum text size (bytes), for which the content analysis will be performed. 0 by default. Changing this parameter enables to reduce the content analysis server load. It can be realised if refusing the context analisys of the text being so small to contain valuable messages.

               "OnlyPost": true, 
Only POST-requests interception. true by default.
               "ZimbraMail": false
Zimbra mail interception. false by default.
           },
 
        "TempDir": "tmp", 
Temporary files directory. tmp by default.
     "NumExtractorThreads": 0,
  • Value 0 - the old mode. When the number of extractors started is equal to the number of streams and every object is to be processed systematically via one stream (for example, 100 files archive).
  • Value >0 - the new mode. In this case if the object contains attachments (the same archive), they are to be processed by NumExtractorThreads streams maximum; thus, having a great number of working streams, only NumExtractorThreads of extractors is to be started at the same time.
     "WorkerThreads": 12,
Number of processed streams. Default value is 12
   }, 
 
 "AnalysisClient": {
Client data analysis settings
  "BindataMaxSizeInMb": 1024
Maximum size of file to be processed (Mb). The parameter is optional. If the value is not specified, the default value to be used is 1024 Mb
  "Cas": {
Settings of iw_cas
"SleepIntervalInSec": 5, 
Interval between connection attemps
    "ConnectTryCount": 200
Number of attempts to connect iw_cas service  
    }, 
 
"ConsulKVWatchPort": 9998,Port which Consul is using to inform interceptor about kv (key-value) changes and the necessity to update values
"Pas": {
Settings of iw_pas
 "SleepIntervalInSec": 5, 
Interval between connection attemps
},
 
    "Bookworm": {...},
see General section Bookworm
    "DebugBreak": false, 
If SIGTRAP should be sent to Windows) while any exception is handling. Used for debugging purposes.
"ExtractorCache": {

Parameters of extractors cache.

"ExtractorCacheDepth": 0,
Maximum number of objects, stored in cache, default value is 0 (cache is disabled).
"ExtractorCacheClearExistingDir": true,
Flag, indicating if the directory content of daemon cache should be deleted once started, if it's already existed and not the empty one. Default value is - true (to delete).
 "ExtractorCacheMaxSize": 107374182400,
Cache maximum size, reserved on the disk (in bytes). Default value - 107374182400 (100 Gb).
"ExtractorCacheFileMaxSize": 10485760,
File maximum size to store in cache (in bytes). Default value -  10485760 (10 Mb).
    "ExtractorCacheShards": 0
Number of streams to store data in cache. If the value is 0 - the number of System streams, otherwise - the number of specified streams, preferable that it wasn't bigger than the System streams number, default value is - 0.
},
 
    "Logging": {...},
see General section Logging
    "NookDir": "/opt/iw/tm5", 
In this section the module working directory is specified. By default –  /opt/iw/tm5
    "UnsafeSignalHandlers
":false,
Unhandled signals support. Disabled by default (false). Once true is set, it is allowed to use unsafe handlers in code (e.g. SIGSEVG). Adding, enabling/disabling this parameter is not recommended without consultation with developers.
 "Statistics":  {...},
see  Genaral section Statistics
}
 

The iw_analysis.service unit file:

CodeDescription

[Unit]

A section where the daemon metadata is determined and interaction settings with other daemons are specified
Description=InfoWatch Traffic Monitor Analysis daemon

Daemon name

After=network-online.service iwtm-consul.service  iw_bookworm.service iw_licensed.serviceDaemons 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 on the console

PermissionsStartOnly=true

Running commands from ExecStartPre under root

ExecStartPre=/bin/bash /opt/iw/tm5/bin/check_coredumps.sh -d iw_analysis

The full path and arguments of the command that should be executed before the main process is started

ExecStart=/opt/iw/tm5/bin/iw_analysis -p /opt/iw/tm5/etc

The full path and command arguments that should be executed before starting the daemon. The command is run under user specified in the User field

ExecStop=/bin/kill -s SIGQUIT $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

RestartPreventExitStatus=SIGKILL

A command that forcibly ends the daemon operation

TimeoutStopSec=0

The time during which the system waits for the signal to stop before marking the process 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=32768

The maximum number of open files

LimitFSIZE=infinity

The maximum size of a file (KB). The infinity value means that the size is unlimited

LimitNPROC=65536

The maximum number of processes

LimitCORE=infinity

Limit for core dump size (KB)

LimitMEMLOCK=infinity

The maximum size of memory locked address space (KB)

 

 
  

[Install]

Defines the behavior of a daemon when it is enabled/disabled

WantedBy=multi-user.target

Start the daemon when the system is loaded in multi-user mode

 

статье мы пишем только об отличном между системами. А FTP и принтеры есть в обоих ОС, поэтому они не указаны в различиях.