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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
7
7
##### Enhancements
8
8
9
+
*[8231](https://github.com/grafana/loki/pull/8231)**CCOLLOT**: Lambda-promtail: add support for AWS SQS message ingestion.
9
10
*[8532](https://github.com/grafana/loki/pull/8532)**justcompile**: Adds Storage Class option to S3 objects
10
11
*[7951](https://github.com/grafana/loki/pull/7951)**MichelHollands**: Add a count template function to line_format and label_format.
11
12
*[7380](https://github.com/grafana/loki/pull/7380)**liguozhong**: metrics query: range vector support streaming agg when no overlap.
@@ -33,6 +34,7 @@
33
34
34
35
##### Fixes
35
36
37
+
*[8231](https://github.com/grafana/loki/pull/8231)**CCOLLOT**: Lambda-promtail: fix flushing behavior of batches, leading to a significant increase in performance.
36
38
*[7784](https://github.com/grafana/loki/pull/7784)**isodude**: Fix default values of connect addresses for compactor and querier workers to work with IPv6.
37
39
*[7880](https://github.com/grafana/loki/pull/7880)**sandeepsukhani**: consider range and offset in queries while looking for schema config for query sharding.
38
40
*[7937](https://github.com/grafana/loki/pull/7937)**ssncferreira**: Deprecate CLI flag `-ruler.wal-cleaer.period` and replace it with `-ruler.wal-cleaner.period`.
Copy file name to clipboardExpand all lines: docs/sources/clients/lambda-promtail/_index.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,12 @@ This workflow allows ingesting AWS loadbalancer logs stored on S3 to Loki.
109
109
110
110
Cloudfront [real-time logs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/real-time-logs.html) can be sent to a Kinesis data stream. The data stream can be mapped to be an [event source](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html) for lambda-promtail to deliver the logs to Loki.
111
111
112
+
### Triggering Lambda-Promtail via SQS
113
+
For AWS services supporting sending messages to SQS (for example, S3 with an S3 Notification to SQS), events can be processed through an [SQS queue using a lambda trigger](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html) instead of directly configuring the source service to trigger lambda. Lambda-promtail will retrieve the nested events from the SQS messages' body and process them as if them came directly from the source service.
114
+
115
+
### On-Failure log recovery using SQS
116
+
Triggering lambda-promtail through SQS allows handling on-failure recovery of the logs using a secondary SQS queue as a dead-letter-queue (DLQ). You can configure lambda so that unsuccessfully processed messages will be sent to the DLQ. After fixing the issue, operators will be able to reprocess the messages by sending back messages from the DLQ to the source queue using the [SQS DLQ redrive](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-dead-letter-queue-redrive.html) feature.
117
+
112
118
## Propagated Labels
113
119
114
120
Incoming logs can have seven special labels assigned to them which can be used in [relabeling]({{<relref "../promtail/configuration#relabel_configs">}}) or later stages in a Promtail [pipeline]({{<relref "../promtail/pipelines/">}}):
// When setting up S3 Notification on a bucket, a test event is first sent, see: https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-content-structure.html
0 commit comments