Metricbeat fail safe/over function on output

Just to confirm,

it the config is valid?

queue.spool:
  file:
    path: "${path.data}/spool.dat"
    size: 300GiB
    page_size: 16KiB
  write:
    buffer_size: 10MiB
    flush.timeout: 5s
    flush.events: 1024