logstash 7 test filter with test data code example Example: check logstash config sudo bin/logstash --config.test_and_exit -f <path_to_config_file>