Edge Delta Base64 Decoder

Decode logs using Base64.

Overview

The Base64 node decodes the body field if it has been encoded using Base64.

For example, if the following input log enters the node, the following output log will be passed: Input:

{
  "timestamp": "1666045135471",
  "body": "dGVzdCBzdHJpbmc=",
  "resource": {
    "host.name": "host-1",
    "ed.tag": "app-dev",
    "ed.org.id": "0481a213-....",
    "config_id": "12345678-abcd-...",
    "__src_name": "source_name",
    "src_type": "K8s",
    "__logical_source": "logical_source",
    "__short_src_name": "short_source_name",
    "__group_name": "group_name",
    "k8s.namespace.name": "edgedelta",
    "k8s.pod.name": "api-deployment-d79fab72249c",
    "container.name": "echo:latest",
    "k8s.controller.kind": "Deployment",
    "k8s.controller.logical.name": "api-deployment",
    "k8s.labels": {
      "app":"my-api"
      }
  },
  "_type": "log",
  "attributes": {
    "role": "admin",
    "service": "db-service",
  },
} 

Output:

{
  "timestamp": "1666045135471",
  "body": "test string",
  "resource": {
    "host.name": "host-1",
    "ed.tag": "app-dev",
    "ed.org.id": "0481a213-....",
    "config_id": "12345678-abcd-...",
    "__src_name": "source_name",
    "src_type": "K8s",
    "__logical_source": "logical_source",
    "__short_src_name": "short_source_name",
    "__group_name": "group_name",
    "k8s.namespace.name": "edgedelta",
    "k8s.pod.name": "api-deployment-d79fab72249c",
    "container.name": "echo:latest",
    "k8s.controller.kind": "Deployment",
    "k8s.controller.logical.name": "api-deployment",
    "k8s.labels": {
      "app":"my-api"
      }
  },
  "_type": "log",
  "attributes": {
    "role": "admin",
    "service": "db-service",
  },
} 

See the full Base64 Decoder node specification (Paid Tier).