Create a new destinationCopy Pagepost https://{hostname}/api/log-streaming/v1/destinationsThis operation creates a new destination.Body ParamsKafka destinationHydrolix destinationLoki estinationKafka log stream destination create schema.compressionstringenumThis sets the compression type to GZIP.GZIPAllowed:GZIPenablebooleanDefaults to trueEnables the destination. If disabled, logs don't stream to the destination.truetruefalsehostsarray of stringsrequiredlength between 1 and 4A set of up to four hostnames.hosts* stringADD stringmessageFormatstringenumDefaults to RAWDefines the message format sent to the Kafka topic. Supports JSON and RAW formats. If not specified, RAW is the default.JSONRAWAllowed:JSONRAWnamestringrequiredlength between 1 and 128The unique name for this destination.HeadersacceptstringenumDefaults to application/jsonGenerated from available response content typesapplication/jsonapplication/problem+jsonAllowed:application/jsonapplication/problem+jsonResponses 201The response shows the newly created destination, which is available at the Location header's URL. 400Bad request 403Forbidden 409ConflictUpdated 4 months ago