Optional
requestOptions: LogStreams.RequestOptionsRequest-specific configuration.
Create a log stream.
type
of log stream being created determines the properties required in the sink
payload.
http
Stream, the sink
properties are listed in the payload below
Request: {
"name": "string",
"type": "http",
"sink": {
"httpEndpoint": "string",
"httpContentType": "string",
"httpContentFormat": "JSONLINES|JSONARRAY",
"httpAuthorization": "string"
}
}
Response: {
"id": "string",
"name": "string",
"type": "http",
"status": "active",
"sink": {
"httpEndpoint": "string",
"httpContentType": "string",
"httpContentFormat": "JSONLINES|JSONARRAY",
"httpAuthorization": "string"
}
}
eventbridge
Stream, the sink
properties are listed in the payload below
Request: {
"name": "string",
"type": "eventbridge",
"sink": {
"awsRegion": "string",
"awsAccountId": "string"
}
}
The response will include an additional field awsPartnerEventSource
in the sink
: {
"id": "string",
"name": "string",
"type": "eventbridge",
"status": "active",
"sink": {
"awsAccountId": "string",
"awsRegion": "string",
"awsPartnerEventSource": "string"
}
}
Azure Event Grid
Stream, the sink
properties are listed in the payload below
Request: {
"name": "string",
"type": "eventgrid",
"sink": {
"azureSubscriptionId": "string",
"azureResourceGroup": "string",
"azureRegion": "string"
}
}
Response: {
"id": "string",
"name": "string",
"type": "http",
"status": "active",
"sink": {
"azureSubscriptionId": "string",
"azureResourceGroup": "string",
"azureRegion": "string",
"azurePartnerTopic": "string"
}
}
Datadog
Stream, the sink
properties are listed in the payload below
Request: {
"name": "string",
"type": "datadog",
"sink": {
"datadogRegion": "string",
"datadogApiKey": "string"
}
}
Response: {
"id": "string",
"name": "string",
"type": "datadog",
"status": "active",
"sink": {
"datadogRegion": "string",
"datadogApiKey": "string"
}
}
Splunk
Stream, the sink
properties are listed in the payload below
Request: {
"name": "string",
"type": "splunk",
"sink": {
"splunkDomain": "string",
"splunkToken": "string",
"splunkPort": "string",
"splunkSecure": "boolean"
}
}
Response: {
"id": "string",
"name": "string",
"type": "splunk",
"status": "active",
"sink": {
"splunkDomain": "string",
"splunkToken": "string",
"splunkPort": "string",
"splunkSecure": "boolean"
}
}
Sumo Logic
Stream, the sink
properties are listed in the payload below
Request: {
"name": "string",
"type": "sumo",
"sink": {
"sumoSourceAddress": "string",
}
}
Response: {
"id": "string",
"name": "string",
"type": "sumo",
"status": "active",
"sink": {
"sumoSourceAddress": "string",
}
}
Optional
requestOptions: LogStreams.RequestOptionsRequest-specific configuration.
Retrieve 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"
}
}
Request: <pre><code>{
"name": "string",
"type": "mixpanel",
"sink": {
"mixpanelRegion": "string", // "us" | "eu",
"mixpanelProjectId": "string",
"mixpanelServiceAccountUsername": "string",
"mixpanelServiceAccountPassword": "string"
}
} </code></pre>
Response: <pre><code>{
"id": "string",
"name": "string",
"type": "mixpanel",
"status": "active",
"sink": {
"mixpanelRegion": "string", // "us" | "eu",
"mixpanelProjectId": "string",
"mixpanelServiceAccountUsername": "string",
"mixpanelServiceAccountPassword": "string" // the following is redacted on return
}
} </code></pre>
<h5>Segment</h5>
Request: <pre><code> {
"name": "string",
"type": "segment",
"sink": {
"segmentWriteKey": "string"
}
}</code></pre>
Response: <pre><code>{
"id": "string",
"name": "string",
"type": "segment",
"status": "active",
"sink": {
"segmentWriteKey": "string"
}
} </code></pre>
{
"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.The id of the log stream to get
Optional
requestOptions: LogStreams.RequestOptionsRequest-specific configuration.
Delete a log stream.
The id of the log stream to delete
Optional
requestOptions: LogStreams.RequestOptionsRequest-specific configuration.
Update 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"
}
}
The id of the log stream to get
Optional
requestOptions: LogStreams.RequestOptionsRequest-specific configuration.
Protected
_
Retrieve details on log streams.
Sample Response