ves-io-schema-log_receiver-API-Replace

Examples of replacing log_receiver

Usecase:

Replace syslog log receiver, to modify max message length.

Request using vesctl:

vesctl configuration replace log_receiver -i log_receiver.yaml

where file log_receiver.yaml has following contents (log_receiver.ReplaceRequest):

RequestJSON:

{"metadata":{"name":"syslog","namespace":"documentation"},"spec":{"syslog":{"udp_server":{"server_name":"syslog.example.com","port":514},"syslog_rfc3164":1024},"site_local":{}}} `

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"syslog","namespace":"documentation"},"spec":{"syslog":{"udp_server":{"server_name":"syslog.example.com","port":514},"syslog_rfc3164":1024},"site_local":{}}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build1372770011_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/log_receivers/syslog'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Thu, 28 Jul 2022 12:10:52 GMT
Vary: Accept-Encoding

{

}