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: docs/reference/filebeat/filebeat-input-aws-cloudwatch.md
+17-10Lines changed: 17 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,22 +77,29 @@ A string to filter the results to include only log events from log streams that
77
77
78
78
### `start_position` [_start_position]
79
79
80
-
`start_position`allows user to specify if this input should read log files from the `beginning`or from the `end`.
80
+
`start_position`allows the user to specify if this input should read log files starting from the `beginning`, the `end`, or from the last known successful sync (`lastSync`).
81
81
82
-
* `beginning`: reads from the beginning of the log group (default).
83
-
* `end`: read only new messages from current time minus `scan_frequency` going forward
82
+
* `beginning`: Read messages starting from the beginning of the log group (default).
83
+
* `end`: Read messages starting from the current time minus `scan_frequency`.
84
+
* `lastSync`: Read messages starting from the last known sync time, if available. If there is no last known sync, then
85
+
fall back to the default mode (`beginning`). This value is stored in the registry, so it persists across restarts.
84
86
85
-
For example, with `scan_frequency` equals to `30s` and current timestamp is `2020-06-24 12:00:00`:
87
+
For example, in the case where `scan_frequency: 30s` and the current timestamp is `2020-06-24 12:00:00`:
86
88
87
-
* with `start_position = beginning`:
89
+
* If `start_position: beginning`, reading starts from the earliest possible timestamp of unix epoch zero value:
88
90
89
-
* first iteration: startTime=0, endTime=2020-06-24 12:00:00
90
-
* second iteration: startTime=2020-06-24 12:00:00, endTime=2020-06-24 12:00:30
91
+
* First read: `startTime=0`, `endTime=2020-06-24 12:00:00`
92
+
* Next read: `startTime=2020-06-24 12:00:00`, `endTime=2020-06-24 12:00:30`
91
93
92
-
* with `start_position = end`:
94
+
* If `start_position: end`, reading starts with a look back that equals the `scan_frequency`:
93
95
94
-
* first iteration: startTime=2020-06-24 11:59:30, endTime=2020-06-24 12:00:00
95
-
* second iteration: startTime=2020-06-24 12:00:00, endTime=2020-06-24 12:00:30
96
+
* First read: `startTime=2020-06-24 11:59:30`, `endTime=2020-06-24 12:00:00`
97
+
* Next read: `startTime=2020-06-24 12:00:00`, `endTime=2020-06-24 12:00:30`
98
+
99
+
* If `start_position: lastSync`, reading starts from the last known sync timestamp. Assuming the last sync timestamp stored in the registry is `2020-06-23 12:00:00`:
100
+
101
+
* First read: `startTime=2020-06-23 12:00:00`, `endTime=2020-06-24 12:00:00`
102
+
* Next read: `startTime=2020-06-24 12:00:00`, `endTime=2020-06-24 12:00:30`
0 commit comments