Keep Filebeat Windows Service running 24/7

How to Keep Filebeat Windows Service Running 24/7 with Service Protector

Ensure that Filebeat automatically restarts if it is stops for any reason — and it's always ready to process your logs


Last Updated on November 2, 2026

Filebeat — a component of the popular Elastic Stack platform — monitors log files for important events and sends relevant items to Elasticsearch or Logstash for indexing.

Filebeat is best installed as a Windows Service so that it starts automatically at boot:


To protect Filebeat with Service Protector:

  1. Download and install Service Protector.

  2. Start Service Protector.

  3. Select Protector > Add to open the Add Protector window:

    Add Protector

  4. On the General tab, in the Service to protect field, choose the Filebeat service. Look for a name like "Elastic Filebeat [Version number]".

    You'll notice a green circle on the left if the Filebeat Windows Service is already running (as it was on our server):

    Select the Filebeat Windows Service

  5. If you'd like to ensure that Filebeat remains "fresh" and survives memory leaks and other degradations, click over to the Monitor tab and set up a regular restart.

    To do so, check the At the following times box, click the Add button and enter a time when Filebeat is likely to be "quiet". For example, daily at midnight works for us:

    Restart the Filebeat Windows Service every night

  6. We are done with the basic settings so click the Save button to record your work. In a couple of seconds, an entry for Filebeat will show up in the main window.

    The green "Protected" shield indicates that Service Protector is already actively monitoring Filebeat for crashes, interruptions and other problems:

    Filebeat Windows Service: Protected

  7. That's it. Next time your computer boots, Filebeat will start and Service Protector will begin monitoring the service to promptly restart it if it fails.

    We encourage you to edit Filebeat in Service Protector and check out the many other settings that may be appropriate for your environment.

    For example, send an email when the service fails, terminate the service if it gets stuck stopping or starting, and much more.


Trouble protecting the Filebeat Windows Service?

  • From Service Protector, select Protector > Report Activity > Today to bring up an HTML report detailing the interaction between Service Protector and Filebeat.

  • Browse the Service Protector FAQ for answers to commonly asked questions and troubleshooting tips.

  • Contact us and we will be happy to help!