curl --request GET \
--url https://api.ravion.com/aws/cloudwatch/stream \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ravion.com/aws/cloudwatch/stream"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ravion.com/aws/cloudwatch/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ravion.com/aws/cloudwatch/stream",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ravion.com/aws/cloudwatch/stream"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ravion.com/aws/cloudwatch/stream")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ravion.com/aws/cloudwatch/stream")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"events": [
{
"logStreamName": "<string>",
"message": "<string>",
"timestamp": "<string>",
"ingestionTime": "<string>",
"level": "<string>"
}
],
"isFinal": true,
"missingLogGroups": [
"<string>"
]
}Stream CloudWatch logs (SSE)
Stream CloudWatch logs via SSE. Fetches historical logs first, then optionally tails for new logs. GET /aws/cloudwatch/stream in the Ravion API reference.
curl --request GET \
--url https://api.ravion.com/aws/cloudwatch/stream \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ravion.com/aws/cloudwatch/stream"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ravion.com/aws/cloudwatch/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ravion.com/aws/cloudwatch/stream",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ravion.com/aws/cloudwatch/stream"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ravion.com/aws/cloudwatch/stream")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ravion.com/aws/cloudwatch/stream")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"events": [
{
"logStreamName": "<string>",
"message": "<string>",
"timestamp": "<string>",
"ingestionTime": "<string>",
"level": "<string>"
}
],
"isFinal": true,
"missingLogGroups": [
"<string>"
]
}Query Parameters
CloudWatch log group names to stream from (e.g., /flightcontrol/runner). Usually a single group; the ECS task-detail drawer passes several because a single task's containers can log to different groups (a FireLens-routed app plus awslogs sidecars). Each group is queried with the same stream filter and the results are merged and deduped. At least one group is required.
Explicit list of log stream names to filter by. When set, the handler uses FilterLogEvents with logStreamNames instead of logStreamNamePrefix, which lets the task-detail drawer scope its feed to the exact CloudWatch streams (//) owned by a single ECS task. Mutually exclusive with logStreamPrefix.
Response
SSE stream of CloudWatch log events
SSE event containing a batch of log events
Requested log groups that do not exist in the requested account and region. CloudWatch reports a missing group as an error, but the stream treats it as "no logs yet" so a deploy whose task has not booted still renders; this field lets a client tell a missing group (often a wrong region) apart from a quiet one.
Was this page helpful?