Update output
- Base URL
-
https://{kibana_url}
- PUT /api/fleet/outputs/{outputId}
- PUT /s/{space_id}/api/fleet/outputs/{outputId}
Update output by ID.
Required privileges
fleet-settings-all
Path parameters
-
space_idstringoptional -
An identifier for the space. If
space_idis not provided in the URL, the default space is used. Refer to Spaces for more information.
Request body
-
shipperobject -
Same fields as
shipperinupdate_output_elasticsearch
-
shipperobject -
Same fields as
shipperinupdate_output_elasticsearch
-
kerberosobjectnullable -
oauth2objectnullable -
expiry_buffernumber · min: 0 · max: 86400 -
How many seconds before a token's expiry the agent requests a new one. It defaults to
300when not set. -
timeoutnumber · min: 0 · max: 86400 -
How long, in seconds, a request to the token endpoint can take before it times out. There is no limit when it is not set.
-
proxy_idstringnullable deprecated -
Kafka outputs do not support proxy configuration. This field is accepted for backwards compatibility but is ignored — it is cleared to null on save and has no effect on the compiled agent policy.
-
shipperobject -
Same fields as
shipperinupdate_output_elasticsearch
-
authunion oneOf -
How the output authenticates with the OTLP endpoint.
auth_headerandcustom_headersend the credential set insecrets.auth.credentialin a request header.azuresends a Microsoft Entra ID token that the collector requests itself: it requires thehttp/protobufprotocol, anhttps://URL forendpointand for every signal endpoint that is set, and it cannot be used withotlp_exporter.tls.insecure_skip_verify.otlp_exporter.headerscannot includeAuthorizationforauth_headerandazure.azurerequires an Elastic Agent on 9.3 or later. Not accepted for the managed OTLP endpoint. -
One of:
(determined by
type) -
azure_auth_methodenumrequired -
How the collector gets the Microsoft Entra ID token:
managed_identityuses the managed identity of the Azure resource the agent runs on,service_principaluses an application registration and its client secret, set insecrets.auth.azure_client_secret. -
Values:
managed_identityservice_principal -
client_idstring · min length: 1 · max length: 256 -
Client ID of the service principal. Required when
azure_auth_methodisservice_principal. Formanaged_identity, the client ID of a user-assigned identity; omit it to use the system-assigned identity. -
otlp_exporterunion oneOfrequired -
One of:
(determined by
protocol) -
sending_queueobjectnullable -
The sending queue of the exporter. Set to
nullto use the collector defaults for the whole queue. In an update, a setting that is left out keeps its stored value, and a setting that acceptsnullis reset to its default when set tonull. To changeenabled,sizer,wait_for_result,block_on_overfloworbatch.sizer, send the value you want. On the managed OTLP endpoint, a setting that is reset, or that has no value, gets the Elastic default. Setbatchtonullto turn batching off. -
batchobjectnullable -
Batching of the queue. An empty object batches with the defaults. Set to
nullto turn batching off. -
flush_timeoutstring · max length: 64nullable -
Time after which a batch is sent, whatever its size. Default:
200ms, or1son the managed OTLP endpoint. -
max_sizenumbernullable -
Maximum size of a batch,
0for no maximum. Default:0, or4000000on the managed OTLP endpoint. -
min_sizenumbernullable -
Minimum size of a batch, in the unit of the batch
sizer. Default:8192, or1000000on the managed OTLP endpoint. -
block_on_overflowboolean -
Whether incoming requests are blocked when the queue is full, instead of rejected. Default:
false, ortrueon the managed OTLP endpoint. -
queue_sizenumbernullable -
Maximum size of the queue, in the unit of
sizer. Default:1000, or50000000on the managed OTLP endpoint whensizerisbytes. -
sending_queueobjectnullable -
The sending queue of the exporter. Set to
nullto use the collector defaults for the whole queue. In an update, a setting that is left out keeps its stored value, and a setting that acceptsnullis reset to its default when set tonull. To changeenabled,sizer,wait_for_result,block_on_overfloworbatch.sizer, send the value you want. On the managed OTLP endpoint, a setting that is reset, or that has no value, gets the Elastic default. Setbatchtonullto turn batching off. -
batchobjectnullable -
Batching of the queue. An empty object batches with the defaults. Set to
nullto turn batching off. -
flush_timeoutstring · max length: 64nullable -
Time after which a batch is sent, whatever its size. Default:
200ms, or1son the managed OTLP endpoint. -
max_sizenumbernullable -
Maximum size of a batch,
0for no maximum. Default:0, or4000000on the managed OTLP endpoint. -
min_sizenumbernullable -
Minimum size of a batch, in the unit of the batch
sizer. Default:8192, or1000000on the managed OTLP endpoint. -
block_on_overflowboolean -
Whether incoming requests are blocked when the queue is full, instead of rejected. Default:
false, ortrueon the managed OTLP endpoint. -
queue_sizenumbernullable -
Maximum size of the queue, in the unit of
sizer. Default:1000, or50000000on the managed OTLP endpoint whensizerisbytes.
type: auth_header
type: custom_header
type: azure
protocol: grpc
protocol: http/protobuf
Responses
Successful response
-
itemunion oneOfrequired -
One of:
(determined by
type) -
shipperobject -
Same fields as
shipperinoutput_response_elasticsearch -
kerberosobjectnullable -
oauth2objectnullable -
expiry_buffernumber · min: 0 · max: 86400 -
How many seconds before a token's expiry the agent requests a new one. It defaults to
300when not set. -
timeoutnumber · min: 0 · max: 86400 -
How long, in seconds, a request to the token endpoint can take before it times out. There is no limit when it is not set.
-
proxy_idstringnullable deprecated -
Kafka outputs do not support proxy configuration. This field is accepted for backwards compatibility but is ignored — it is cleared to null on save and has no effect on the compiled agent policy.
-
shipperobject -
Same fields as
shipperinoutput_response_elasticsearch -
authunion oneOf -
How the output authenticates with the OTLP endpoint.
auth_headerandcustom_headersend the credential set insecrets.auth.credentialin a request header.azuresends a Microsoft Entra ID token that the collector requests itself: it requires thehttp/protobufprotocol, anhttps://URL forendpointand for every signal endpoint that is set, and it cannot be used withotlp_exporter.tls.insecure_skip_verify.otlp_exporter.headerscannot includeAuthorizationforauth_headerandazure.azurerequires an Elastic Agent on 9.3 or later. Not accepted for the managed OTLP endpoint. -
One of:
(determined by
type) -
azure_auth_methodenumrequired -
How the collector gets the Microsoft Entra ID token:
managed_identityuses the managed identity of the Azure resource the agent runs on,service_principaluses an application registration and its client secret, set insecrets.auth.azure_client_secret. -
Values:
managed_identityservice_principal -
client_idstring · min length: 1 · max length: 256 -
Client ID of the service principal. Required when
azure_auth_methodisservice_principal. Formanaged_identity, the client ID of a user-assigned identity; omit it to use the system-assigned identity. -
otlp_exporterunion oneOfrequired -
One of:
(determined by
protocol) -
sending_queueobjectnullable -
The sending queue of the exporter. Set to
nullto use the collector defaults for the whole queue. In an update, a setting that is left out keeps its stored value, and a setting that acceptsnullis reset to its default when set tonull. To changeenabled,sizer,wait_for_result,block_on_overfloworbatch.sizer, send the value you want. On the managed OTLP endpoint, a setting that is reset, or that has no value, gets the Elastic default. Setbatchtonullto turn batching off. -
batchobjectnullable -
Batching of the queue. An empty object batches with the defaults. Set to
nullto turn batching off. -
flush_timeoutstring · max length: 64nullable -
Time after which a batch is sent, whatever its size. Default:
200ms, or1son the managed OTLP endpoint. -
max_sizenumbernullable -
Maximum size of a batch,
0for no maximum. Default:0, or4000000on the managed OTLP endpoint. -
min_sizenumbernullable -
Minimum size of a batch, in the unit of the batch
sizer. Default:8192, or1000000on the managed OTLP endpoint. -
block_on_overflowboolean -
Whether incoming requests are blocked when the queue is full, instead of rejected. Default:
false, ortrueon the managed OTLP endpoint. -
queue_sizenumbernullable -
Maximum size of the queue, in the unit of
sizer. Default:1000, or50000000on the managed OTLP endpoint whensizerisbytes. -
sending_queueobjectnullable -
The sending queue of the exporter. Set to
nullto use the collector defaults for the whole queue. In an update, a setting that is left out keeps its stored value, and a setting that acceptsnullis reset to its default when set tonull. To changeenabled,sizer,wait_for_result,block_on_overfloworbatch.sizer, send the value you want. On the managed OTLP endpoint, a setting that is reset, or that has no value, gets the Elastic default. Setbatchtonullto turn batching off. -
batchobjectnullable -
Batching of the queue. An empty object batches with the defaults. Set to
nullto turn batching off. -
flush_timeoutstring · max length: 64nullable -
Time after which a batch is sent, whatever its size. Default:
200ms, or1son the managed OTLP endpoint. -
max_sizenumbernullable -
Maximum size of a batch,
0for no maximum. Default:0, or4000000on the managed OTLP endpoint. -
min_sizenumbernullable -
Minimum size of a batch, in the unit of the batch
sizer. Default:8192, or1000000on the managed OTLP endpoint. -
block_on_overflowboolean -
Whether incoming requests are blocked when the queue is full, instead of rejected. Default:
false, ortrueon the managed OTLP endpoint. -
queue_sizenumbernullable -
Maximum size of the queue, in the unit of
sizer. Default:1000, or50000000on the managed OTLP endpoint whensizerisbytes.
type: elasticsearch
type: remote_elasticsearch
type: kafka
type: otlp
type: auth_header
type: custom_header
type: azure
protocol: grpc
protocol: http/protobuf
Bad Request
Not Found