How to check Filebeat is running properly

Hi I notice that after I ran the service for logstash the run time will restart some times after a few second. And there are no logs recorded on the /var/log/logstash.

If is properly running, will it produce log files as "logstash-plain-2019..." ?

Please advice.

I'm a bit confused.
are you using filebeat to monitor log stash logs or you're missing logstash logs produced by log stash?

Hi @Michal_Pristas, yes I am trying to use filebeat to work as a bridge between 2 servers and passing the logs to logstash and it will output to ES. Is this correct?

#Test the config
/usr/share/logstash/bin/logstash --config.test_and_exit -f /etc/logstash/conf.d/logstash.conf

#Run logstash
/usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/logstash.conf