If you are upgrading from Logstash 6.2.x or any earlier version (including 5.x) and have the persistent queue enabled, we strongly recommend that you drain or delete the persistent queue before you upgrade. See Upgrading with the Persistent Queue Enabled for information and instructions.
You are looking at documentation for an older release. Not what you want? See the current release documentation.