Connectors of the 1c-xml type are used for getting data from 1C registration logs when working with Linux agents. When the connector handles multi-line events, it converts them into single-line events.
Settings for a connector of the 1c-xml type are described in the following tables.
Basic settings tab
Setting |
Description |
---|---|
Name |
Unique name of the resource. The maximum length of the name is 128 Unicode characters. Required setting. |
Tenant |
The name of the tenant that owns the resource. Required setting. |
Type |
Connector type: 1c-xml. Required setting. |
Tags |
Tags for resource search. Optional setting. |
Directory path |
The full path to the directory with the files that you want to interact with, for example, Limitations when using prefixes in file paths Required setting. |
Description |
Description of the resource. The maximum length of the description is 4000 Unicode characters. |
Advanced settings tab
Setting |
Description |
---|---|
Debug |
The switch enables resource logging. The toggle switch is turned off by default. |
Buffer size |
Buffer size in bytes for accumulating events in the RAM of the server before sending them for further processing or storage. The value must be a positive integer. Default buffer size: 1,048,576 bytes (1 MB). Maximum buffer size: 67,108,864 bytes (64 MB). |
File/folder polling mode |
Specifies how the connector rereads files in the directory:
|
Poll interval, ms |
The interval in milliseconds at which the connector rereads files in the directory. Default value: |
Character encoding |
Character encoding. The default is UTF-8. |
Connector operation diagram:
ВыгрузитьЖурналРегистрации()
function. The connector only supports logs received this way. For more information on how to obtain 1C logs, see the official 1C documentation.Information about processed files is stored in the file /<collector working directory>/1c_xml_connector/state.ini and has the following format: offset=<
number
>\ndev=<
number
>\ninode=<
number
>
.
Connector limitations: