Configuring the HTTP Connector
Kaspersky MLAD uses the HTTP Connector to receive data from CSV files during scheduled uploads of data using the POST
method.
Configuration of the HTTP Connector is performed by a Kaspersky employee or certified integrator.
To configure the HTTP Connector:
- In the administrator menu, select System parameters → HTTP Connector.
A list of options appears on the right.
- Use the Write data to the Message Broker service toggle button to enable writing data to the Message Broker service.
- If necessary, move the Save received file toggle button to enable the function for saving received CSV files.
- In the Size of written block (tag count) field, specify the number of tags that are written to the Message Broker at one time.
- In the Maximum size of uploaded file (MB) field, specify the maximum size (in megabytes) of a file transmitted to the HTTP Connector.
If you try to download a larger CSV file, the file would not be passed to the HTTP Connector.
If
0
is defined, the maximum file size is unlimited. - Click the Save button.
Kaspersky MLAD will receive data from CSV files using the HTTP Connector.
An example of sending a CSV file to the HTTP Connector via cURL using the POST
method to port 4999 of the Kaspersky MLAD server:
curl -F "file=@<file name>.csv" -X POST "http://<Kaspersky MLAD server IP address or domain name>:4999/" |
The HTTP Connector accepts CSV files with the following fields:
timestamp;tag_name;value
where:
timestamp
is the time stamp in the format %Y-%m-%dT%H:%M:%S.tag_name
is the name of the tag.value
is the tag value.If a tag value contains a fractional portion, use a dot to separate the integer from the fractional portion.