Logstash pipeline systax errors after upgrading from 7.1.1. to 7.7.0

Each file has to be a complete section, such as input, filter or output. See here for more details.