Protected
configurationOptional
initOverrides: InitOverrideDelete a log stream.
Delete log stream
Optional
initOverrides: InitOverrideRetrieve a log stream configuration and status.
{
"id": "string",
"name": "string",
"type": "eventbridge",
"status": "active|paused|suspended",
"sink": {
"awsAccountId": "string",
"awsRegion": "string",
"awsPartnerEventSource": "string"
}
}
{
"id": "string",
"name": "string",
"type": "http",
"status": "active|paused|suspended",
"sink": {
"httpContentFormat": "JSONLINES|JSONARRAY",
"httpContentType": "string",
"httpEndpoint": "string",
"httpAuthorization": "string"
}
}
{
"id": "string",
"name": "string",
"type": "datadog",
"status": "active|paused|suspended",
"sink": {
"datadogRegion": "string",
"datadogApiKey": "string"
}
}
{
"id": "string",
"name": "string",
"type": "splunk",
"status": "active|paused|suspended",
"sink": {
"splunkDomain": "string",
"splunkToken": "string",
"splunkPort": "string",
"splunkSecure": "boolean"
}
}
{
"id": "string",
"name": "string",
"type": "sumo",
"status": "active|paused|suspended",
"sink": {
"sumoSourceAddress": "string",
}
}
status
of a log stream maybe any of the following:
1. active
- Stream is currently enabled.
2. paused
- Stream is currently user disabled and will not attempt log delivery.
3. suspended
- Stream is currently disabled because of errors and will not attempt log delivery.
Get log stream by ID
Optional
initOverrides: InitOverrideRetrieve details on log streams.
[{
"id": "string",
"name": "string",
"type": "eventbridge",
"status": "active|paused|suspended",
"sink": {
"awsAccountId": "string",
"awsRegion": "string",
"awsPartnerEventSource": "string"
}
}, {
"id": "string",
"name": "string",
"type": "http",
"status": "active|paused|suspended",
"sink": {
"httpContentFormat": "JSONLINES|JSONARRAY",
"httpContentType": "string",
"httpEndpoint": "string",
"httpAuthorization": "string"
}
},
{
"id": "string",
"name": "string",
"type": "eventgrid",
"status": "active|paused|suspended",
"sink": {
"azureSubscriptionId": "string",
"azureResourceGroup": "string",
"azureRegion": "string",
"azurePartnerTopic": "string"
}
},
{
"id": "string",
"name": "string",
"type": "splunk",
"status": "active|paused|suspended",
"sink": {
"splunkDomain": "string",
"splunkToken": "string",
"splunkPort": "string",
"splunkSecure": "boolean"
}
},
{
"id": "string",
"name": "string",
"type": "sumo",
"status": "active|paused|suspended",
"sink": {
"sumoSourceAddress": "string",
}
},
{
"id": "string",
"name": "string",
"type": "datadog",
"status": "active|paused|suspended",
"sink": {
"datadogRegion": "string",
"datadogApiKey": "string"
}
}]
Get log streams
Optional
initOverrides: InitOverrideProtected
requestOptional
initOverrides: RequestInit | InitOverrideFunctionUpdate a log stream.
eventbridge
and eventgrid
, updating the sink
is not permitted.
{
"status": "active|paused"
}
{
"name": "string"
}
http
{
"sink": {
"httpEndpoint": "string",
"httpContentType": "string",
"httpContentFormat": "JSONARRAY|JSONLINES",
"httpAuthorization": "string"
}
}
datadog
{
"sink": {
"datadogRegion": "string",
"datadogApiKey": "string"
}
}
splunk
{
"sink": {
"splunkDomain": "string",
"splunkToken": "string",
"splunkPort": "string",
"splunkSecure": "boolean"
}
}
sumo
{
"sink": {
"sumoSourceAddress": "string"
}
}
Update a log stream
Optional
initOverrides: InitOverride
Create a log stream.
Log Stream Types
Thetype
of log stream being created determines the properties required in thesink
payload.HTTP Stream
For anhttp
Stream, thesink
properties are listed in the payload below Request: Response:Amazon EventBridge Stream
For aneventbridge
Stream, thesink
properties are listed in the payload below Request: The response will include an additional fieldawsPartnerEventSource
in thesink
:Azure Event Grid Stream
For anAzure Event Grid
Stream, thesink
properties are listed in the payload below Request: Response:Datadog Stream
For aDatadog
Stream, thesink
properties are listed in the payload below Request: Response:Splunk Stream
For aSplunk
Stream, thesink
properties are listed in the payload below Request: Response:Sumo Logic Stream
For aSumo Logic
Stream, thesink
properties are listed in the payload below Request: Response:Create a log stream
Throws