Skip to content

Commit 8a3b408

Browse files
committed
update docs and fmt code
1 parent da10563 commit 8a3b408

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

x-pack/filebeat/docs/inputs/input-aws-s3.asciidoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ call will be interrupted.
4343
The default AWS API call timeout for a message is 120 seconds. The minimum
4444
is 0 seconds. The maximum is half of the visibility timeout value.
4545

46+
[id="input-{type}-buffer_size"]
4647
[float]
4748
==== `buffer_size`
4849

4950
The size in bytes of the buffer that each harvester uses when fetching a file.
5051
This only applies to non-JSON logs.
5152
The default is 16384.
5253

54+
[id="input-{type}-encoding"]
5355
[float]
5456
==== `encoding`
5557

@@ -105,7 +107,9 @@ setting. If `file_selectors` is given, then any global
105107
`expand_event_list_from_field` value is ignored in favor of the ones
106108
specified in the `file_selectors`. Regex syntax is the same as the Go
107109
language. Files that don't match one of the regexes won't be
108-
processed.
110+
processed. <<input-aws-s3-multiline>>, <<input-aws-s3-max_bytes>>,
111+
<<input-aws-s3-buffer_size>> and <<input-aws-s3-encoding>> may also be
112+
set for each file selector.
109113

110114
["source", "yml"]
111115
----
@@ -120,6 +124,7 @@ file_selectors:
120124

121125
Enabling this option changes the service name from `s3` to `s3-fips` for connecting to the correct service endpoint. For example: `s3-fips.us-gov-east-1.amazonaws.com`.
122126

127+
[id="input-{type}-max_bytes"]
123128
[float]
124129
==== `max_bytes`
125130

@@ -135,6 +140,7 @@ The maximum number of messages to return. Amazon SQS never returns more messages
135140
than this value (however, fewer messages might be returned).
136141
Valid values: 1 to 10. Default: 5.
137142

143+
[id="input-{type}-multiline"]
138144
[float]
139145
==== `multiline`
140146

x-pack/filebeat/input/awss3/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"time"
1111

1212
"github.com/dustin/go-humanize"
13+
1314
"github.com/elastic/beats/v7/libbeat/reader/multiline"
1415
"github.com/elastic/beats/v7/libbeat/reader/readfile"
1516
awscommon "github.com/elastic/beats/v7/x-pack/libbeat/common/aws"

0 commit comments

Comments
 (0)