[log.timeshift]

log.timeshift is a slot in the log namespace, in Hyperlambda, the language of Magic Cloud. Aggregates log entries into time buckets.

  • Value (log-search), required: Search string or log entry type to aggregate over the last two weeks
  • Returns: Returns one child node per day with [when] and [count] values for the time bucket

Guide

How to use log.timeshift

JSON declaration

This is the complete declaration of log.timeshift, as the running system describes it. It is also published as slot.json.

JSON declaration
{
  "name": "log.timeshift",
  "description": "Aggregates log entries into time buckets",
  "signature": {
    "input": {
      "kind": "log-search",
      "description": "Search string or log entry type to aggregate over the last two weeks",
      "required": true,
      "mode": "ValueOrExpression"
    },
    "output": {
      "mode": "Lambda",
      "kind": "log-timeshift-list,node-list",
      "element-kind": "log-timeshift-bucket",
      "description": "Returns one child node per day with [when] and [count] values for the time bucket"
    }
  }
}

← log.query all log.* slots