Skip to main content

Script Logs

Scripts run from the portal, from processes and from automations. When a curve is missing or a number looks wrong, the script's own log tells you what it did. Script Logs lists those runs and answers questions like:

  • Did the script run last night, and did it succeed?
  • Which function was called, and what started it?
  • What did the script report when it failed?

At Northgate Energy, Priya Shah checks the script northgate\curves\build-spark-spreads after one evening's spread curves did not build.

Script Logs for northgate\curves\build-spark-spreads over the last 7 days


Opening the report​

On the Scripts screen, select a script and open Script Logs from its insights. It is registered as #SCRIPT_LOGS in the category Script Insights, and receives the selected script's id (ID).

Script Logs is a configured insight: it has no template of its own and uses the platform's standard single table layout, with the columns set in its registration.

The list loads as soon as the report opens, for Today.

ControlWhat it does
Date RangeToday, Yesterday, Last 7 days, Last 30 days, Last 60 days, This Month, Last Month or All. Choosing one fills in Start and End and reloads.
Start, EndChange either date and time to set your own range
Report nameClick the report name at the top to hide or show the header and the date range

The report​

One row per logged run of the script in the range:

ColumnWhat it shows
TimestampWhen the run was logged
FunctionThe function in the script that was called
TypeThe script type
TriggerWhat started the run, such as the portal or a process
StatusGreen for a run that succeeded, red for one whose status starts with fail
MessageWhat the script reported, such as the result or the error

The table shows 100 rows a page. Click a column header to sort on it, and use the filter icon in a header to filter the rows on screen.