You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failed events from the main pipeline are redirected to a dead-letter queue (DLQ) to prevent data loss and enable recovery.
8
+
9
+
### Examples
10
+
11
+
#### Dead queue to the reserve elasticsearch
12
+
13
+
Consumes logs from a Kafka topic. Sends them to Elasticsearch (primary cluster). Fails over to a reserve ("dead-letter") Elasticsearch if the primary is unavailable.
14
+
15
+
```yaml
16
+
main_pipeline:
17
+
input:
18
+
type: kafka
19
+
brokers:
20
+
- kafka:9092
21
+
topics:
22
+
- logs
23
+
output:
24
+
type: elasticsearch
25
+
workers_count: 32
26
+
endpoints:
27
+
- http://elasticsearch-primary:9200
28
+
# route to reserve elasticsearch
29
+
deadqueue:
30
+
endpoints:
31
+
- http://elasticsearch-reserve:9200
32
+
type: elasticsearch
33
+
```
34
+
35
+
#### Dead queue with second kafka topic and low priority consumer
36
+
37
+
Main Pipeline: Processes logs from Kafka → Elasticsearch. Failed events go to a dead-letter Kafka topic.
38
+
39
+
Dead-Queue Pipeline: Re-processes failed events from the DLQ topic with lower priority.
It writes events to stdout(also known as console).
185
199
186
200
[More details...](plugin/output/stdout/README.md)
201
+
202
+
## dead queue
203
+
204
+
Failed events from the main pipeline are redirected to a dead-letter queue (DLQ) to prevent data loss and enable recovery.
205
+
206
+
### Examples
207
+
208
+
#### Dead queue to the reserve elasticsearch
209
+
210
+
Consumes logs from a Kafka topic. Sends them to Elasticsearch (primary cluster). Fails over to a reserve ("dead-letter") Elasticsearch if the primary is unavailable.
211
+
212
+
```yaml
213
+
main_pipeline:
214
+
input:
215
+
type: kafka
216
+
brokers:
217
+
- kafka:9092
218
+
topics:
219
+
- logs
220
+
output:
221
+
type: elasticsearch
222
+
workers_count: 32
223
+
endpoints:
224
+
- http://elasticsearch-primary:9200
225
+
# route to reserve elasticsearch
226
+
deadqueue:
227
+
endpoints:
228
+
- http://elasticsearch-reserve:9200
229
+
type: elasticsearch
230
+
```
231
+
232
+
#### Dead queue with second kafka topic and low priority consumer
233
+
234
+
Main Pipeline: Processes logs from Kafka → Elasticsearch. Failed events go to a dead-letter Kafka topic.
235
+
236
+
Dead-Queue Pipeline: Re-processes failed events from the DLQ topic with lower priority.
237
+
238
+
```yaml
239
+
main_pipeline:
240
+
input:
241
+
type: kafka
242
+
brokers:
243
+
- kafka:9092
244
+
topics:
245
+
- logs
246
+
output:
247
+
type: elasticsearch
248
+
workers_count: 32
249
+
endpoints:
250
+
- http://elasticsearch:9200
251
+
# route to deadqueue pipeline
252
+
deadqueue:
253
+
brokers:
254
+
- kafka:9092
255
+
default_topic: logs-deadqueue
256
+
type: kafka
257
+
258
+
deadqueue_pipeline:
259
+
input:
260
+
type: kafka
261
+
brokers:
262
+
- kafka:9092
263
+
topics:
264
+
- logs-deadqueue
265
+
output:
266
+
type: elasticsearch
267
+
workers_count: 1# low priority
268
+
fatal_on_failed_insert: false
269
+
endpoints:
270
+
- http://elasticsearch:9200
271
+
```
187
272
<br>*Generated using [__insane-doc__](https://github.com/vitkovskii/insane-doc)*
0 commit comments