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: pkg/stanza/docs/operators/journald_input.md
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,10 @@ The `journald_input` operator will use the `__REALTIME_TIMESTAMP` field of the j
14
14
|`output`| Next in pipeline | The connected operator(s) that will receive all outbound entries. |
15
15
|`directory`|| A directory containing journal files to read entries from. |
16
16
|`files`|| A list of journal files to read entries from. |
17
-
|`units`|| A list of units to read entries from. See [Multiple filtering options](#multiple-filtering-options) examples, if you want to use it together with `matches` and/or `priority`. |
17
+
|`units`|| A list of units to read entries from. See [Multiple filtering options](#multiple-filtering-options) examples. |
18
18
|`matches`|| A list of matches to read entries from. See [Matches](#matches) and [Multiple filtering options](#multiple-filtering-options) examples. |
19
-
|`priority`|`info`| Filter output by message priorities or priority ranges. See [Multiple filtering options](#multiple-filtering-options) examples, if you want to use it together with `units` and/or `matches`. |
19
+
|`priority`|`info`| Filter output by message priorities or priority ranges. See [Multiple filtering options](#multiple-filtering-options) examples. |
20
+
|`grep`|| Filter output to entries where the MESSAGE= field matches the specified regular expression. See [Multiple filtering options](#multiple-filtering-options) examples. |
20
21
|`start_at`|`end`| At startup, where to start reading logs from the file. Options are `beginning` or `end`. |
21
22
|`attributes`| {} | A map of `key: value` pairs to add to the entry's attributes. |
22
23
|`resource`| {} | A map of `key: value` pairs to add to the entry's resource. |
@@ -64,6 +65,8 @@ AND
64
65
( units[0] OR units[1] OR units[2] OR ... units[U] )
65
66
AND
66
67
( matches[0] OR matches[1] OR matches[2] OR ... matches[M] )
|`directory`|`/run/log/journal` or `/run/journal`| A directory containing journal files to read entries from |
27
27
|`files`|| A list of journal files to read entries from |
28
28
|`start_at`|`end`| At startup, where to start reading logs from the file. Options are beginning or end |
29
-
|`units`|| A list of units to read entries from. See [Multiple filtering options](#multiple-filtering-options) examples, if you want to use it together with `matches` and/or `priority`.|
29
+
|`units`|| A list of units to read entries from. See [Multiple filtering options](#multiple-filtering-options) examples. |
30
30
|`matches`|| A list of matches to read entries from. See [Matches](#matches) and [Multiple filtering options](#multiple-filtering-options) examples. |
31
-
|`priority`|`info`| Filter output by message priorities or priority ranges. See [Multiple filtering options](#multiple-filtering-options) examples, if you want to use it together with `units` and/or `matches`. |
31
+
|`priority`|`info`| Filter output by message priorities or priority ranges. See [Multiple filtering options](#multiple-filtering-options) examples. |
32
+
|`grep`|| Filter output to entries where the MESSAGE= field matches the specified regular expression. See [Multiple filtering options](#multiple-filtering-options) examples. |
32
33
|`storage`| none | The ID of a storage extension to be used to store cursors. Cursors allow the receiver to pick up where it left off in the case of a collector restart. If no storage extension is used, the receiver will manage cursors in memory only. |
33
34
|`retry_on_failure.enabled`|`false`| If `true`, the receiver will pause reading a file and attempt to resend the current batch of logs if it encounters an error from downstream components. |
34
35
|`retry_on_failure.initial_interval`|`1 second`| Time to wait after the first failure before retrying. |
35
36
|`retry_on_failure.max_interval`|`30 seconds`| Upper bound on retry backoff interval. Once this value is reached the delay between consecutive retries will remain constant at the specified value. |
36
37
|`retry_on_failure.max_elapsed_time`|`5 minutes`| Maximum amount of time (including retries) spent trying to send a logs batch to a downstream consumer. Once this value is reached, the data is discarded. Retrying never stops if set to `0`. |
37
-
|`operators`|[]| An array of [operators](../../pkg/stanza/docs/operators/README.md#what-operators-are-available). See below for more details |
38
+
|`operators`|[]| An array of [operators](../../pkg/stanza/docs/operators/README.md#what-operators-are-available). See below for more details |
38
39
39
40
### Operators
40
41
@@ -87,6 +88,8 @@ AND
87
88
( units[0] OR units[1] OR units[2] OR ... units[U] )
88
89
AND
89
90
( matches[0] OR matches[1] OR matches[2] OR ... matches[M] )
0 commit comments