Skip to main content
Version: 4.3

script_mc

Description

Executes a script and appends the results to the query.

warning

To use the script_mc source, a configured SA Script Proxy connector and Memcached server are required. It is optimal to set up the Memcached server with SAF Script Proxy (or an intermediary), rather than on the SAF server itself.

Syntax

...| script_mc "<path_to_script_engine> <path_to_script>"

Required Arguments

ParameterSyntaxDescription
path_to_script_engine<string>Path to the executable file.
path_to_script<string>Path to the script.

Source Configuration

info

All source settings are stored in _cluster/settings.

"sme" : {
"core" : {
"memcached": {
"port": "11211",
"ip": "127.0.0.1"
}
}
}

Query Example

Example #1
| script_mc "python /home/user/dev/test-script/test-script.py"