If your configuration is split out into multiple files, you can test each file by using below command:
sudo -u logstash bin/logstash --config.test_and_exit -f {{ path_to_config_file }}
If you want to test all configs, use the method described in the Test Logstash configuration or to check logstash logging file, usually located at /var/log/logstash/logstash-plain.log or the standard path /var/log/logstash/logstash.log