@@ -19,6 +19,11 @@ paths:
19
19
tags :
20
20
- Dataset Management
21
21
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.
22
27
requestBody :
23
28
content : {}
24
29
security :
@@ -55,6 +60,12 @@ paths:
55
60
tags :
56
61
- Dataset Management
57
62
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.
58
69
requestBody :
59
70
content :
60
71
application/json :
@@ -136,6 +147,14 @@ paths:
136
147
tags :
137
148
- Query
138
149
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**
139
158
requestBody :
140
159
content :
141
160
application/json :
@@ -158,6 +177,13 @@ paths:
158
177
tags :
159
178
- Data Ingestion
160
179
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.
161
187
requestBody :
162
188
content :
163
189
application/json :
0 commit comments