OpenObserve Docs
ReferenceApiFunctions

Create function

Endpoint: POST /api/{organization}/functions

Function can be used to modify input data. You can use it to drop some fields, convert some field's data type, or drop some records.

Request

{
	"function": "function(row) return row end",
	"order": 1
}

Description

Field nameData typeDefault valueDescription
functionstring-function body
orderint640execute order, minimum will execute first.

Currently, we only support VRL as a functional language.

Response

{
	"code": 200,
	"message": "Function saved successfully"
}
Was this page helpful?

Last updated on

On this page