Starting Elastic Stack services

The Elastic Stack services have defined dependencies within and all depend on the elk-manager service (top-dependency). When the elk-manager service is in DEFINED state and the remaining Elastic Stack services, such as elk-elasticsearch, elk-elasticsearch-master, elk-elasticsearch-client, elk-indexer, and elk-shipper services are in INIT state, the Elastic Stack services can restart by manually restarting the elk-manager service.

About this task

When the Elastic Stack services (excluding elk-manager) are in DEFINED state or stopped manually using the sequence in Stopping Elastic Stack services, you can run a start sequence to start the Elastic Stack in order before data is sent through the pipeline.

Procedure

  1. Run the following start sequence and verify after each command the service is in STARTED state by running the egosh service list -ll | grep service | grep STARTED command before you proceed to the next start sequence command.
    1. In a command line, run the following command to start the elk-manager service:
      egosh service start elk-manager
      
      Verify the elk-manager service is in STARTED state.
      Tip: To verify a service, such as elk-manager, is in STARTED state, run the following command:

      When you want to verify another service, remember to replace elk-manager in the following example command.

      egosh service list -ll | grep elk-manager | grep STARTED
      In the sample output, look for the STARTED state before you proceed to the next start sequence:
      "elk-manager","","","","","","STARTED","60","consumer","resourcegroup","resource","slots","sequence_number","RUN","activity"
    2. Run the next start sequence command to start the elk-elasticsearch-master, elk-elasticsearch-data, and elk-client services:
      egosh service start elk-elasticsearch-master elk-elasticsearch-data elk-client
      Verify all these elk-elasticsearch services are in STARTED state. For an example, see the Tip section in the first step.
  2. Alternatively, when the elk-manager service is in DEFINED state and the remaining Elastic Stack services are in DEFINED state, you can start the entire Elastic Stack services by starting the elk-manager (top-dependency):
    egosh service start elk-manager