Validates that an already parsed fluentbit or fluentd config is semantically valid. To parse the raw agent config take a look at https://github.com/calyptia/fluent-bit-config-parser.
/v1/config_validate/{agentType}
fluentbit
fluentd
OK
curl -L \ --request POST \ --url 'https://cloud-api.calyptia.com/v1/config_validate/{agentType}' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \ --header 'Content-Type: application/json' \ --data '{"config":[{"command":"text","name":"text","optional":null,"id":"text"}]}'
{ "errors": { "runtime": [ "text" ], "input": { "ANY_ADDITIONAL_PROPERTY": [ "text" ] }, "output": { "ANY_ADDITIONAL_PROPERTY": [ "text" ] }, "filter": { "ANY_ADDITIONAL_PROPERTY": [ "text" ] } } }