Skip to content

Commit 4ac9d6a

Browse files
authored
Update parseable-open-api-schema.yaml
1 parent 4386106 commit 4ac9d6a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

parseable-open-api-schema.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ paths:
1919
tags:
2020
- Dataset Management
2121
summary: Create a log stream
22+
description: |
23+
This endpoint is used to create a new log stream within Parseable.
24+
A **log stream** is a group of similar logs. For example, you can create a log stream
25+
for a specific application's logs, another log stream for your database logs, and so on.
26+
You can create as many log streams as needed to organize and manage logs efficiently.
2227
requestBody:
2328
content: {}
2429
security:
@@ -55,6 +60,12 @@ paths:
5560
tags:
5661
- Dataset Management
5762
summary: Send logs to a log stream URL
63+
description: |
64+
**Log Ingestion API via Stream Endpoint**
65+
In this approach, you need to create a stream first using the **Create Stream API**.
66+
Once the stream is created, you can send logs to the stream ingestion API endpoint:
67+
**http://{{endpoint}}/api/v1/logstream/{{stream_name}}**
68+
This API does not require any headers for specifying the stream name.
5869
requestBody:
5970
content:
6071
application/json:
@@ -136,6 +147,14 @@ paths:
136147
tags:
137148
- Query
138149
summary: Query a log stream
150+
description: |
151+
**Parseable Log Query API**
152+
The Parseable log query API allows you to query logs in real-time using **standard PostgreSQL syntax**.
153+
To retrieve logs, the API requires **startTime** and **endTime** parameters.
154+
155+
#### Timezone and Format
156+
Parseable expects both the **startTime** and **endTime** in **UTC**, following **RFC 3339** and **ISO 8601** standards.
157+
Example format: **2022-09-10T05:00:00+00:00**
139158
requestBody:
140159
content:
141160
application/json:
@@ -158,6 +177,13 @@ paths:
158177
tags:
159178
- Data Ingestion
160179
summary: Send logs to a log stream with HTTP Header
180+
description: |
181+
**Log Ingestion API via Ingestion Endpoint and HTTP Header**
182+
In this approach, you can add the **x-p-stream** header to the request to specify the stream name.
183+
If the stream does not exist, it will be created automatically.
184+
185+
This method is particularly useful for **automation scenarios**, where you want to dynamically create a stream
186+
and send logs to it via agents without requiring a separate stream creation step.
161187
requestBody:
162188
content:
163189
application/json:

0 commit comments

Comments
 (0)