From 27a077cfc7e85e0b063e4f1b4e265453d19ac61c Mon Sep 17 00:00:00 2001 From: Claus Klammer Date: Wed, 24 Jun 2020 00:06:04 +0200 Subject: [PATCH 01/10] add RotateOnStartup feature enhance file output to also be able to disable file rotation on startup, which is enabled by default (see rotator) --- libbeat/outputs/fileout/config.go | 20 +++++++++++--------- libbeat/outputs/fileout/file.go | 1 + 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/libbeat/outputs/fileout/config.go b/libbeat/outputs/fileout/config.go index 4b83cdbab971..8f1061db1849 100644 --- a/libbeat/outputs/fileout/config.go +++ b/libbeat/outputs/fileout/config.go @@ -25,19 +25,21 @@ import ( ) type config struct { - Path string `config:"path"` - Filename string `config:"filename"` - RotateEveryKb uint `config:"rotate_every_kb" validate:"min=1"` - NumberOfFiles uint `config:"number_of_files"` - Codec codec.Config `config:"codec"` - Permissions uint32 `config:"permissions"` + Path string `config:"path"` + Filename string `config:"filename"` + RotateEveryKb uint `config:"rotate_every_kb" validate:"min=1"` + NumberOfFiles uint `config:"number_of_files"` + Codec codec.Config `config:"codec"` + Permissions uint32 `config:"permissions"` + RotateOnStartup bool `config:"rotate_on_startup"` } var ( defaultConfig = config{ - NumberOfFiles: 7, - RotateEveryKb: 10 * 1024, - Permissions: 0600, + NumberOfFiles: 7, + RotateEveryKb: 10 * 1024, + Permissions: 0600, + RotateOnStartup: true, } ) diff --git a/libbeat/outputs/fileout/file.go b/libbeat/outputs/fileout/file.go index 2c2f52162942..ed70797dcb63 100644 --- a/libbeat/outputs/fileout/file.go +++ b/libbeat/outputs/fileout/file.go @@ -87,6 +87,7 @@ func (out *fileOutput) init(beat beat.Info, c config) error { file.MaxSizeBytes(c.RotateEveryKb*1024), file.MaxBackups(c.NumberOfFiles), file.Permissions(os.FileMode(c.Permissions)), + file.RotateOnStartup(c.RotateOnStartup), file.WithLogger(logp.NewLogger("rotator").With(logp.Namespace("rotator"))), ) if err != nil { From 7ee44e672d224c910b8dd40aa1a5f2a9612d24ac Mon Sep 17 00:00:00 2001 From: Claus Klammer Date: Wed, 24 Jun 2020 09:31:09 +0200 Subject: [PATCH 02/10] document change --- CHANGELOG.next.asciidoc | 1 + libbeat/outputs/fileout/docs/fileout.asciidoc | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 224aada05d00..7a1c863d2633 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -307,6 +307,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Add TLS support to Kerberos authentication in Elasticsearch. {pull}18607[18607] - Upgrade k8s.io/client-go and k8s keystore tests. {pull}18817[18817] - Add support for multiple sets of hints on autodiscover {pull}18883[18883] +- Add config option `rotate_on_startup` to file output {issue}19150[19150] {pull}19347[19347] *Auditbeat* diff --git a/libbeat/outputs/fileout/docs/fileout.asciidoc b/libbeat/outputs/fileout/docs/fileout.asciidoc index 6922f8f71426..a0979f92ef56 100644 --- a/libbeat/outputs/fileout/docs/fileout.asciidoc +++ b/libbeat/outputs/fileout/docs/fileout.asciidoc @@ -22,6 +22,7 @@ output.file: #rotate_every_kb: 10000 #number_of_files: 7 #permissions: 0600 + #rotate_on_startup: true ------------------------------------------------------------------------------ ==== Configuration options @@ -61,6 +62,10 @@ The number of files must be between 2 and 1024. The default is 7. Permissions to use for file creation. The default is 0600. +===== `rotate_on_startup` + +If the output file already exists on startup, immediately rotate it and start writing to a new file instead of appending to the existing one. Defaults to true. + ===== `codec` Output codec configuration. If the `codec` section is missing, events will be json encoded. From 5e2bffb7540b3356b63d99dcdebb582e42a96711 Mon Sep 17 00:00:00 2001 From: Claus Klammer Date: Wed, 24 Jun 2020 00:06:04 +0200 Subject: [PATCH 03/10] add RotateOnStartup feature enhance file output to also be able to disable file rotation on startup, which is enabled by default (see rotator) --- libbeat/outputs/fileout/config.go | 20 +++++++++++--------- libbeat/outputs/fileout/file.go | 1 + 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/libbeat/outputs/fileout/config.go b/libbeat/outputs/fileout/config.go index 4b83cdbab971..8f1061db1849 100644 --- a/libbeat/outputs/fileout/config.go +++ b/libbeat/outputs/fileout/config.go @@ -25,19 +25,21 @@ import ( ) type config struct { - Path string `config:"path"` - Filename string `config:"filename"` - RotateEveryKb uint `config:"rotate_every_kb" validate:"min=1"` - NumberOfFiles uint `config:"number_of_files"` - Codec codec.Config `config:"codec"` - Permissions uint32 `config:"permissions"` + Path string `config:"path"` + Filename string `config:"filename"` + RotateEveryKb uint `config:"rotate_every_kb" validate:"min=1"` + NumberOfFiles uint `config:"number_of_files"` + Codec codec.Config `config:"codec"` + Permissions uint32 `config:"permissions"` + RotateOnStartup bool `config:"rotate_on_startup"` } var ( defaultConfig = config{ - NumberOfFiles: 7, - RotateEveryKb: 10 * 1024, - Permissions: 0600, + NumberOfFiles: 7, + RotateEveryKb: 10 * 1024, + Permissions: 0600, + RotateOnStartup: true, } ) diff --git a/libbeat/outputs/fileout/file.go b/libbeat/outputs/fileout/file.go index 2c2f52162942..ed70797dcb63 100644 --- a/libbeat/outputs/fileout/file.go +++ b/libbeat/outputs/fileout/file.go @@ -87,6 +87,7 @@ func (out *fileOutput) init(beat beat.Info, c config) error { file.MaxSizeBytes(c.RotateEveryKb*1024), file.MaxBackups(c.NumberOfFiles), file.Permissions(os.FileMode(c.Permissions)), + file.RotateOnStartup(c.RotateOnStartup), file.WithLogger(logp.NewLogger("rotator").With(logp.Namespace("rotator"))), ) if err != nil { From 0183106112cf69f997938324bcd373c9c467dc53 Mon Sep 17 00:00:00 2001 From: Claus Klammer Date: Wed, 24 Jun 2020 09:31:09 +0200 Subject: [PATCH 04/10] document change --- CHANGELOG.next.asciidoc | 1 + libbeat/outputs/fileout/docs/fileout.asciidoc | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 58adde400bfc..c45395d3a3ce 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -367,6 +367,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Add support for DNS over TLS for the dns_processor. {pull}19321[19321] - Set index.max_docvalue_fields_search in index template to increase value to 200 fields. {issue}20215[20215] - Add capability of enriching process metadata with contianer id also for non-privileged containers in `add_process_metadata` processor. {pull}19767[19767] +- Add config option `rotate_on_startup` to file output {issue}19150[19150] {pull}19347[19347] *Auditbeat* diff --git a/libbeat/outputs/fileout/docs/fileout.asciidoc b/libbeat/outputs/fileout/docs/fileout.asciidoc index 6922f8f71426..a0979f92ef56 100644 --- a/libbeat/outputs/fileout/docs/fileout.asciidoc +++ b/libbeat/outputs/fileout/docs/fileout.asciidoc @@ -22,6 +22,7 @@ output.file: #rotate_every_kb: 10000 #number_of_files: 7 #permissions: 0600 + #rotate_on_startup: true ------------------------------------------------------------------------------ ==== Configuration options @@ -61,6 +62,10 @@ The number of files must be between 2 and 1024. The default is 7. Permissions to use for file creation. The default is 0600. +===== `rotate_on_startup` + +If the output file already exists on startup, immediately rotate it and start writing to a new file instead of appending to the existing one. Defaults to true. + ===== `codec` Output codec configuration. If the `codec` section is missing, events will be json encoded. From 0eab69693f2f24844fce31701f3e8d0ca7858cd0 Mon Sep 17 00:00:00 2001 From: Claus Klammer Date: Tue, 4 Aug 2020 13:16:50 +0200 Subject: [PATCH 05/10] add change again --- CHANGELOG.next.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index c45395d3a3ce..65941a72d736 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -358,6 +358,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Change ownership of files in docker images so they can be used in secured environments. {pull}12905[12905] - Upgrade k8s.io/client-go and k8s keystore tests. {pull}18817[18817] - Add support for multiple sets of hints on autodiscover {pull}18883[18883] +- Add config option `rotate_on_startup` to file output {issue}19150[19150] {pull}19347[19347] - Add a configurable delay between retries when an app metadata cannot be retrieved by `add_cloudfoundry_metadata`. {pull}19181[19181] - Add data type conversion in `dissect` processor for converting string values to other basic data types. {pull}18683[18683] - Add the `ignore_failure` configuration option to the dissect processor. {pull}19464[19464] @@ -367,7 +368,6 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Add support for DNS over TLS for the dns_processor. {pull}19321[19321] - Set index.max_docvalue_fields_search in index template to increase value to 200 fields. {issue}20215[20215] - Add capability of enriching process metadata with contianer id also for non-privileged containers in `add_process_metadata` processor. {pull}19767[19767] -- Add config option `rotate_on_startup` to file output {issue}19150[19150] {pull}19347[19347] *Auditbeat* From 63700d6c4c8835cd5e0bfd72573dce23c3ec4573 Mon Sep 17 00:00:00 2001 From: Claus Klammer Date: Wed, 24 Jun 2020 00:06:04 +0200 Subject: [PATCH 06/10] add RotateOnStartup feature enhance file output to also be able to disable file rotation on startup, which is enabled by default (see rotator) --- libbeat/outputs/fileout/config.go | 20 +++++++++++--------- libbeat/outputs/fileout/file.go | 1 + 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/libbeat/outputs/fileout/config.go b/libbeat/outputs/fileout/config.go index 4b83cdbab971..8f1061db1849 100644 --- a/libbeat/outputs/fileout/config.go +++ b/libbeat/outputs/fileout/config.go @@ -25,19 +25,21 @@ import ( ) type config struct { - Path string `config:"path"` - Filename string `config:"filename"` - RotateEveryKb uint `config:"rotate_every_kb" validate:"min=1"` - NumberOfFiles uint `config:"number_of_files"` - Codec codec.Config `config:"codec"` - Permissions uint32 `config:"permissions"` + Path string `config:"path"` + Filename string `config:"filename"` + RotateEveryKb uint `config:"rotate_every_kb" validate:"min=1"` + NumberOfFiles uint `config:"number_of_files"` + Codec codec.Config `config:"codec"` + Permissions uint32 `config:"permissions"` + RotateOnStartup bool `config:"rotate_on_startup"` } var ( defaultConfig = config{ - NumberOfFiles: 7, - RotateEveryKb: 10 * 1024, - Permissions: 0600, + NumberOfFiles: 7, + RotateEveryKb: 10 * 1024, + Permissions: 0600, + RotateOnStartup: true, } ) diff --git a/libbeat/outputs/fileout/file.go b/libbeat/outputs/fileout/file.go index 2c2f52162942..ed70797dcb63 100644 --- a/libbeat/outputs/fileout/file.go +++ b/libbeat/outputs/fileout/file.go @@ -87,6 +87,7 @@ func (out *fileOutput) init(beat beat.Info, c config) error { file.MaxSizeBytes(c.RotateEveryKb*1024), file.MaxBackups(c.NumberOfFiles), file.Permissions(os.FileMode(c.Permissions)), + file.RotateOnStartup(c.RotateOnStartup), file.WithLogger(logp.NewLogger("rotator").With(logp.Namespace("rotator"))), ) if err != nil { From 7fd341583b0fd80a2e06b3874d2dd12d00a64076 Mon Sep 17 00:00:00 2001 From: Claus Klammer Date: Wed, 24 Jun 2020 09:31:09 +0200 Subject: [PATCH 07/10] document change --- CHANGELOG.next.asciidoc | 1 + libbeat/outputs/fileout/docs/fileout.asciidoc | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 58adde400bfc..c45395d3a3ce 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -367,6 +367,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Add support for DNS over TLS for the dns_processor. {pull}19321[19321] - Set index.max_docvalue_fields_search in index template to increase value to 200 fields. {issue}20215[20215] - Add capability of enriching process metadata with contianer id also for non-privileged containers in `add_process_metadata` processor. {pull}19767[19767] +- Add config option `rotate_on_startup` to file output {issue}19150[19150] {pull}19347[19347] *Auditbeat* diff --git a/libbeat/outputs/fileout/docs/fileout.asciidoc b/libbeat/outputs/fileout/docs/fileout.asciidoc index 6922f8f71426..a0979f92ef56 100644 --- a/libbeat/outputs/fileout/docs/fileout.asciidoc +++ b/libbeat/outputs/fileout/docs/fileout.asciidoc @@ -22,6 +22,7 @@ output.file: #rotate_every_kb: 10000 #number_of_files: 7 #permissions: 0600 + #rotate_on_startup: true ------------------------------------------------------------------------------ ==== Configuration options @@ -61,6 +62,10 @@ The number of files must be between 2 and 1024. The default is 7. Permissions to use for file creation. The default is 0600. +===== `rotate_on_startup` + +If the output file already exists on startup, immediately rotate it and start writing to a new file instead of appending to the existing one. Defaults to true. + ===== `codec` Output codec configuration. If the `codec` section is missing, events will be json encoded. From d53c89d0b0674d473c98182e3b2602d3e949a7c3 Mon Sep 17 00:00:00 2001 From: Claus Klammer Date: Tue, 4 Aug 2020 13:16:50 +0200 Subject: [PATCH 08/10] add change again --- CHANGELOG.next.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index c45395d3a3ce..65941a72d736 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -358,6 +358,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Change ownership of files in docker images so they can be used in secured environments. {pull}12905[12905] - Upgrade k8s.io/client-go and k8s keystore tests. {pull}18817[18817] - Add support for multiple sets of hints on autodiscover {pull}18883[18883] +- Add config option `rotate_on_startup` to file output {issue}19150[19150] {pull}19347[19347] - Add a configurable delay between retries when an app metadata cannot be retrieved by `add_cloudfoundry_metadata`. {pull}19181[19181] - Add data type conversion in `dissect` processor for converting string values to other basic data types. {pull}18683[18683] - Add the `ignore_failure` configuration option to the dissect processor. {pull}19464[19464] @@ -367,7 +368,6 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Add support for DNS over TLS for the dns_processor. {pull}19321[19321] - Set index.max_docvalue_fields_search in index template to increase value to 200 fields. {issue}20215[20215] - Add capability of enriching process metadata with contianer id also for non-privileged containers in `add_process_metadata` processor. {pull}19767[19767] -- Add config option `rotate_on_startup` to file output {issue}19150[19150] {pull}19347[19347] *Auditbeat* From 613bcc3778816df8949f2ee7e0f77b392bea1c39 Mon Sep 17 00:00:00 2001 From: Claus Klammer Date: Sun, 14 Feb 2021 15:25:07 +0100 Subject: [PATCH 09/10] add RotateOnStartup feature --- libbeat/_meta/config/output-file.reference.yml.tmpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libbeat/_meta/config/output-file.reference.yml.tmpl b/libbeat/_meta/config/output-file.reference.yml.tmpl index 2c3834441078..7f7ff9998b33 100644 --- a/libbeat/_meta/config/output-file.reference.yml.tmpl +++ b/libbeat/_meta/config/output-file.reference.yml.tmpl @@ -31,3 +31,6 @@ # Permissions to use for file creation. The default is 0600. #permissions: 0600 + + # Configure automatic file rotation on every startup. The default is true. + #rotate_on_startup: true \ No newline at end of file From 7da9b792e235cd394b1804eb2bb9d110694d7b2c Mon Sep 17 00:00:00 2001 From: Claus Klammer Date: Thu, 18 Feb 2021 22:10:47 +0100 Subject: [PATCH 10/10] update reference.yml files (make update) --- auditbeat/auditbeat.reference.yml | 4 +++- filebeat/filebeat.reference.yml | 4 +++- heartbeat/heartbeat.reference.yml | 4 +++- journalbeat/journalbeat.reference.yml | 4 +++- metricbeat/metricbeat.reference.yml | 4 +++- packetbeat/packetbeat.reference.yml | 4 +++- winlogbeat/winlogbeat.reference.yml | 4 +++- x-pack/auditbeat/auditbeat.reference.yml | 4 +++- x-pack/filebeat/filebeat.reference.yml | 4 +++- x-pack/heartbeat/heartbeat.reference.yml | 4 +++- x-pack/metricbeat/metricbeat.reference.yml | 4 +++- x-pack/packetbeat/packetbeat.reference.yml | 4 +++- x-pack/winlogbeat/winlogbeat.reference.yml | 4 +++- 13 files changed, 39 insertions(+), 13 deletions(-) diff --git a/auditbeat/auditbeat.reference.yml b/auditbeat/auditbeat.reference.yml index cc8cfdba2db5..8ceb7914f045 100644 --- a/auditbeat/auditbeat.reference.yml +++ b/auditbeat/auditbeat.reference.yml @@ -1103,7 +1103,9 @@ output.elasticsearch: # Permissions to use for file creation. The default is 0600. #permissions: 0600 - + + # Configure automatic file rotation on every startup. The default is true. + #rotate_on_startup: true # ------------------------------- Console Output ------------------------------- #output.console: # Boolean flag to enable or disable the output module. diff --git a/filebeat/filebeat.reference.yml b/filebeat/filebeat.reference.yml index e232640ffd0c..38ecc9fb0b59 100644 --- a/filebeat/filebeat.reference.yml +++ b/filebeat/filebeat.reference.yml @@ -1995,7 +1995,9 @@ output.elasticsearch: # Permissions to use for file creation. The default is 0600. #permissions: 0600 - + + # Configure automatic file rotation on every startup. The default is true. + #rotate_on_startup: true # ------------------------------- Console Output ------------------------------- #output.console: # Boolean flag to enable or disable the output module. diff --git a/heartbeat/heartbeat.reference.yml b/heartbeat/heartbeat.reference.yml index 85e00f433427..d1373f737509 100644 --- a/heartbeat/heartbeat.reference.yml +++ b/heartbeat/heartbeat.reference.yml @@ -1281,7 +1281,9 @@ output.elasticsearch: # Permissions to use for file creation. The default is 0600. #permissions: 0600 - + + # Configure automatic file rotation on every startup. The default is true. + #rotate_on_startup: true # ------------------------------- Console Output ------------------------------- #output.console: # Boolean flag to enable or disable the output module. diff --git a/journalbeat/journalbeat.reference.yml b/journalbeat/journalbeat.reference.yml index 35c6dbb4c054..8114260a8537 100644 --- a/journalbeat/journalbeat.reference.yml +++ b/journalbeat/journalbeat.reference.yml @@ -1046,7 +1046,9 @@ output.elasticsearch: # Permissions to use for file creation. The default is 0600. #permissions: 0600 - + + # Configure automatic file rotation on every startup. The default is true. + #rotate_on_startup: true # ------------------------------- Console Output ------------------------------- #output.console: # Boolean flag to enable or disable the output module. diff --git a/metricbeat/metricbeat.reference.yml b/metricbeat/metricbeat.reference.yml index b2cc7ce7c1be..685dac864523 100644 --- a/metricbeat/metricbeat.reference.yml +++ b/metricbeat/metricbeat.reference.yml @@ -1892,7 +1892,9 @@ output.elasticsearch: # Permissions to use for file creation. The default is 0600. #permissions: 0600 - + + # Configure automatic file rotation on every startup. The default is true. + #rotate_on_startup: true # ------------------------------- Console Output ------------------------------- #output.console: # Boolean flag to enable or disable the output module. diff --git a/packetbeat/packetbeat.reference.yml b/packetbeat/packetbeat.reference.yml index 9f25343877fe..7a4eb7656608 100644 --- a/packetbeat/packetbeat.reference.yml +++ b/packetbeat/packetbeat.reference.yml @@ -1598,7 +1598,9 @@ output.elasticsearch: # Permissions to use for file creation. The default is 0600. #permissions: 0600 - + + # Configure automatic file rotation on every startup. The default is true. + #rotate_on_startup: true # ------------------------------- Console Output ------------------------------- #output.console: # Boolean flag to enable or disable the output module. diff --git a/winlogbeat/winlogbeat.reference.yml b/winlogbeat/winlogbeat.reference.yml index 7b98270f0bf9..d6a610c1292a 100644 --- a/winlogbeat/winlogbeat.reference.yml +++ b/winlogbeat/winlogbeat.reference.yml @@ -1026,7 +1026,9 @@ output.elasticsearch: # Permissions to use for file creation. The default is 0600. #permissions: 0600 - + + # Configure automatic file rotation on every startup. The default is true. + #rotate_on_startup: true # ------------------------------- Console Output ------------------------------- #output.console: # Boolean flag to enable or disable the output module. diff --git a/x-pack/auditbeat/auditbeat.reference.yml b/x-pack/auditbeat/auditbeat.reference.yml index 44b58a736e12..274bc3f3b331 100644 --- a/x-pack/auditbeat/auditbeat.reference.yml +++ b/x-pack/auditbeat/auditbeat.reference.yml @@ -1159,7 +1159,9 @@ output.elasticsearch: # Permissions to use for file creation. The default is 0600. #permissions: 0600 - + + # Configure automatic file rotation on every startup. The default is true. + #rotate_on_startup: true # ------------------------------- Console Output ------------------------------- #output.console: # Boolean flag to enable or disable the output module. diff --git a/x-pack/filebeat/filebeat.reference.yml b/x-pack/filebeat/filebeat.reference.yml index db79f9abb8ce..b714d4a82baf 100644 --- a/x-pack/filebeat/filebeat.reference.yml +++ b/x-pack/filebeat/filebeat.reference.yml @@ -3908,7 +3908,9 @@ output.elasticsearch: # Permissions to use for file creation. The default is 0600. #permissions: 0600 - + + # Configure automatic file rotation on every startup. The default is true. + #rotate_on_startup: true # ------------------------------- Console Output ------------------------------- #output.console: # Boolean flag to enable or disable the output module. diff --git a/x-pack/heartbeat/heartbeat.reference.yml b/x-pack/heartbeat/heartbeat.reference.yml index 85e00f433427..d1373f737509 100644 --- a/x-pack/heartbeat/heartbeat.reference.yml +++ b/x-pack/heartbeat/heartbeat.reference.yml @@ -1281,7 +1281,9 @@ output.elasticsearch: # Permissions to use for file creation. The default is 0600. #permissions: 0600 - + + # Configure automatic file rotation on every startup. The default is true. + #rotate_on_startup: true # ------------------------------- Console Output ------------------------------- #output.console: # Boolean flag to enable or disable the output module. diff --git a/x-pack/metricbeat/metricbeat.reference.yml b/x-pack/metricbeat/metricbeat.reference.yml index 50127225c63e..be76277068f6 100644 --- a/x-pack/metricbeat/metricbeat.reference.yml +++ b/x-pack/metricbeat/metricbeat.reference.yml @@ -2393,7 +2393,9 @@ output.elasticsearch: # Permissions to use for file creation. The default is 0600. #permissions: 0600 - + + # Configure automatic file rotation on every startup. The default is true. + #rotate_on_startup: true # ------------------------------- Console Output ------------------------------- #output.console: # Boolean flag to enable or disable the output module. diff --git a/x-pack/packetbeat/packetbeat.reference.yml b/x-pack/packetbeat/packetbeat.reference.yml index 9f25343877fe..7a4eb7656608 100644 --- a/x-pack/packetbeat/packetbeat.reference.yml +++ b/x-pack/packetbeat/packetbeat.reference.yml @@ -1598,7 +1598,9 @@ output.elasticsearch: # Permissions to use for file creation. The default is 0600. #permissions: 0600 - + + # Configure automatic file rotation on every startup. The default is true. + #rotate_on_startup: true # ------------------------------- Console Output ------------------------------- #output.console: # Boolean flag to enable or disable the output module. diff --git a/x-pack/winlogbeat/winlogbeat.reference.yml b/x-pack/winlogbeat/winlogbeat.reference.yml index a9cb100ce330..dcb17bb6932a 100644 --- a/x-pack/winlogbeat/winlogbeat.reference.yml +++ b/x-pack/winlogbeat/winlogbeat.reference.yml @@ -1069,7 +1069,9 @@ output.elasticsearch: # Permissions to use for file creation. The default is 0600. #permissions: 0600 - + + # Configure automatic file rotation on every startup. The default is true. + #rotate_on_startup: true # ------------------------------- Console Output ------------------------------- #output.console: # Boolean flag to enable or disable the output module.