getRawScriptLog
First introduced in version: 2.00.16.6
Syntax
getRawScriptLog([userId], [startTime], [endTime])
Details
Returns the raw script logs of specified users. This function can only be executed by an administrator.
Parameters
userId (optional) is a string scalar or vector specifying which users' raw script logs to query. Defaults to empty, meaning all users.
startTime (optional) is an integral or temporal scalar specifying the query start time. Defaults to 0 (i.e., from 1970.01.01).
endTime (optional) is an integral or temporal scalar specifying the query end time. Defaults to empty, meaning up to the current time. startTime must be no larger than endTime.
Returns
A table containing the following fields:
-
node: STRING, node alias where the script was executed.
-
username: STRING, user who ran the script.
-
sessionID: LONG, current session ID.
-
rootJobID: STRING, current root job ID.
-
remoteIP: IPADDR, user IP address.
-
remotePort: INT, user port.
-
startTime: NANOTIMESTAMP, script execution start time.
-
endTime: NANOTIMESTAMP, script execution end time.
-
script: STRING, full script code.
-
errorMsg: STRING, error message if the script execution failed, empty otherwise.
Examples
Query raw script logs for user1:
getRawScriptLog(`user1)
