run logstash with config file code example Example: check logstash config sudo bin/logstash --config.test_and_exit -f <path_to_config_file>