Elastic Agents are flexible and powerful tools used within the Elastic Stack for collecting and shipping logs, metrics, and other data to Elasticsearch. However, the headers they use can vary depending on whether they are running in “normal” mode or acting as a Fleet Server. Let’s explore these differences.
Please note that a fleet server is just a special instance of an elastic agent, runnin in “normal” mode. See What is Fleet Server? | Elastic for details.
When an Elastic Agent is running in its standard mode, it primarily focuses on collecting and sending data to Elasticsearch or a Logstash service. Some common headers seen in this mode include:
In addition to the standard headers used by Elastic Agents, when an agent is running as a Fleet Server, it assumes additional responsibilities, requiring the use of the above headers with different content. Some of these headers include:
Understanding the different headers used by Elastic Agents in various modes is essential for ensuring smooth operation within your Elastic deployment, especially when you have some network gateways between the agent or fleet server and the Elasticsearch service.