Skip to main content

script_mc

Description

Executes a script and appends the results to the query.

warning

To use the script_mc source, a configured SM Script Proxy connector and Memcached server are required. It is optimal to set up the Memcached server with SM 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"