vrl 0.32.0

Vector Remap Language
Documentation
{
  "anchor": "get_env_var",
  "name": "get_env_var",
  "category": "System",
  "description": "Returns the value of the environment variable specified by `name`.",
  "arguments": [
    {
      "name": "name",
      "description": "The name of the environment variable.",
      "required": true,
      "type": [
        "string"
      ]
    }
  ],
  "return": {
    "types": [
      "string"
    ]
  },
  "internal_failure_reasons": [
    "Environment variable `name` does not exist.",
    "The value of environment variable `name` is not valid Unicode"
  ],
  "examples": [
    {
      "title": "Get an environment variable",
      "source": "get_env_var!(\"HOME\")",
      "return": "/root"
    }
  ],
  "pure": true
}