Metricbeat logging rotateonstartup not work

metricbeat.yml
logging.files:
interval: 24h
permissions: 0644
rotateonstartup: False
metricbeat version:8.15

According to the above Settings, when metricbeat restarts, why does a new log file (metricbeat-yyyMMdd-1.ndjson) be generated? I want to generate a log file in the form of metricbeat-yyyMMdd.ndjson every day
example:
metricbeat-20241025.ndjson
metricbeat-20241026.ndjson
metricbeat-20241027.ndjson
Thank you very much for that answer.

From Community Ecosystem to Beats

Added metricbeat

To ensure daily log rotation without creating additional files on startup, adjust the interval setting in your Metricbeat configuration to 1d. This will trigger a new log file to be created every day at the same time. By setting rotateonstartup to False, you prevent the creation of extra log files when Metricbeat restarts.

Thank you for your answers.
metribeat.version: 8.15
logging.files.interval: 1d
test result:
Exiting: error initializing logging: time: unknown unit "d" in duration "1d" accessing 'logging.files.interval' (source:'/etc/metricbeat/metricbeat.yml')

metricbeat start failed.

@xiaotiger Welcome to the community...

HMMMM I am seeing the same behavior...

logging.to_files: true
logging.files.interval: 24h
logging.files.permissions: 0644
logging.files.rotateonstartup: false << Make sure lowercase f
logging.event_data.files.rotateonstartup: false

Hmmm I am seeing the same

Start / stop metricbeat 3 times...

hyperion:logs sbrown$ ls -lrt
total 12
-rw-r--r--  1 sbrown  staff   649 Oct 27 12:26 metricbeat-20241027.ndjson
-rw-r--r--  1 sbrown  staff  6039 Oct 27 12:26 metricbeat-20241027-1.ndjson
hyperion:logs sbrown$ ls -lrt
total 24
-rw-r--r--  1 sbrown  staff    649 Oct 27 12:26 metricbeat-20241027.ndjson
-rw-r--r--  1 sbrown  staff  10366 Oct 27 12:26 metricbeat-20241027-1.ndjson
-rw-r--r--  1 sbrown  staff   7101 Oct 27 12:26 metricbeat-20241027-2.ndjson
hyperion:logs sbrown$ ls -lrt
total 40
-rw-r--r--  1 sbrown  staff    649 Oct 27 12:26 metricbeat-20241027.ndjson
-rw-r--r--  1 sbrown  staff  10366 Oct 27 12:26 metricbeat-20241027-1.ndjson
-rw-r--r--  1 sbrown  staff  11018 Oct 27 12:26 metricbeat-20241027-2.ndjson
-rw-r--r--  1 sbrown  staff  10363 Oct 27 12:26 metricbeat-20241027-3.ndjson

@andrewkroh ^^^ Possible Bug? or am I missing something...