Skip to main content
Sumo Logic

base64Encode

The base64Encode operator takes an ASCII string and converts it to a base64 string.

Syntax

  • | base64Encode("string") as base64
  • | base64Encode(string_field) as base64

Example

| base64Encode("hello world") as base64    Returns base64 with a value of aGVsbG8gd29ybGQ=.