Beats and Elastic Agent capabilities

edit

Beats and Elastic Agent capabilities

edit

Elastic provides two main ways to send data to Elasticsearch:

  • Beats are lightweight data shippers that send operational data to Elasticsearch. Elastic provides separate Beats for different types of data, such as logs, metrics, and uptime. Depending on what data you want to collect, you may need to install multiple shippers on a single host.
  • Elastic Agent is a single agent for logs, metrics, security data, and threat prevention. The Elastic Agent can be deployed in two different modes:

    • Managed by Fleet — The Elastic Agent policies and lifecycle are centrally managed by the Fleet app in Kibana. The Integrations app also lets you centrally add integrations with other popular services and systems. This is the recommended option for most users.
    • Standalone mode — All policies are applied to the Elastic Agent manually as a YAML file. This is intended for more advanced users. See Install standalone Elastic Agents for more information.

The method you use depends on your use case, which features you need, and whether you want to centrally manage your agents.

Beats and Elastic Agent can both send data directly to Elasticsearch or via Logstash, where you can further process and enhance the data, before visualizing it in Kibana.

This article summarizes the features and functionality you need to be aware of before adding new Elastic Agents or replacing your current Beats with Elastic Agents. Starting in version 7.14.0, Elastic Agent is generally available (GA).

Choosing between Elastic Agent and Beats

edit

Elastic Agent is a single binary designed to provide the same functionality that the various Beats provide today. However, some functionality gaps are being addressed as we strive to reach feature parity.

The following steps will help you determine if Elastic Agent can support your use case:

  1. Determine if the integrations you need are supported and Generally Available (GA) on Elastic Agent. To find out if an integration is GA, see the Integrations quick reference table.
  2. If the integration is available, check Supported outputs to see whether the required output is also supported.
  3. Review Capabilities comparison to determine if any features required by your deployment are supported. Elastic Agent should support most of the features available on Beats and is updated for each release.

If you are satisfied with all three steps, then Elastic Agent is suitable for your deployment. However, if any steps fail your assessment, you should continue using Beats, and review future updates or contact us in the discuss forum.

Supported inputs

edit

For Elastic Agents that are centrally managed by Fleet, data collection is further simplified and defined by integrations. In this model, the decision on the inputs is driven by the integration you want to collect data from. The complexity of configuration details of various inputs is driven centrally by Fleet and specifically by the integrations.

To find out if an integration is GA, see the Integrations quick reference table.

Supported outputs

edit

The following table shows the outputs supported by the Elastic Agent in 8.16.0:

Elastic Defend and APM Server have a different output matrix.

Output Beats Fleet-managed Elastic Agent Standalone Elastic Agent

Elasticsearch Service

yes

yes

yes

Elasticsearch

yes

yes

yes

Logstash

yes

yes

yes

Kafka

yes

yes

yes

Remote Elasticsearch

yes

yes

yes

Redis

yes

no

no

File

yes

no

no

Console

yes

no

no

Supported configurations

edit
Beats configuration Elastic Agent support

Modules

Supported via integrations.

Input setting overrides

Not configurable. Set to default values.

General settings

Many of these global settings are now internal to the agent and for proper operations should not be modified.

Project paths

Elastic Agent configures these paths to provide a simpler and more streamlined configuration experience.

External configuration file loading

Config is distributed via policy.

Live reloading

Related to the config file reload.

Outputs

Configured through Fleet. See Supported outputs.

SSL

Supported

Index lifecycle management

Enabled by default although the Agent uses data streams.

Elasticsearch index template loading

No longer applicable

Kibana endpoint

New Elastic Agent workflow doesn’t need this.

Kibana dashboard loading

New Elastic Agent workflow doesn’t need this.

Processors

Processors can be defined at the integration level. Global processors, configured at the policy level, are currently under consideration.

Autodiscover

Autodiscover is facilitated through dynamic inputs. Elastic Agent does not support hints-based autodiscovery.

Internal queues

Fleet-managed Elastic Agent and Standalone Elastic Agent both support configuration of the internal memory queues by an end user. Neither support configuration of the internal disk queues by an end user.

Load balance output hosts

Within the Fleet UI, you can add YAML settings to configure multiple hosts per output type, which enables load balancing.

Logging

Supported

HTTP Endpoint

Supported

Regular expressions

Supported

Capabilities comparison

edit

The following table shows a comparison of capabilities supported by Beats and the Elastic Agent in 8.16.0:

Item Beats Fleet-managed Elastic Agent Standalone Elastic Agent Description

Single agent for all use cases

no

yes

yes

Elastic Agent provides logs, metrics, and more. You’d need to install multiple Beats for these use cases.

Install integrations from web UI or API

no

yes

yes

Elastic Agent integrations are installed with a convenient web UI or API, but Beats modules are installed with a CLI. This installs Elasticsearch assets such as index templates and ingest pipelines, and Kibana assets such as dashboards.

Configure from web UI or API

no

yes

yes (optional)

Fleet-managed Elastic Agent integrations can be configured in the web UI or API. Standalone Elastic Agent can use the web UI, API, or YAML. Beats can only be configured via YAML files.

Central, remote agent policy management

no

yes

no

Elastic Agent policies can be centrally managed through Fleet. You have to manage Beats configuration yourself or with a third-party solution.

Central, remote agent binary upgrades

no

yes

no

Elastic Agents can be remotely upgraded through Fleet. You have to upgrade Beats yourself or with a third-party solution.

Add Kibana and Elasticsearch assets for a single integration or module

no

yes

yes

Elastic Agent integrations allow you to add Kibana and Elasticsearch assets for a single integration at a time. Beats installs hundreds of assets for all modules at once.

Auto-generated Elasticsearch API keys

no

yes

no

Fleet can automatically generate API keys with limited permissions for each Elastic Agent, which can be individually revoked. Standalone Elastic Agent and Beats require you to create and manage credentials, and users often share them across hosts.

Auto-generate minimal Elasticsearch permissions

no

yes

no

Fleet can automatically give Elastic Agents minimal output permissions based on the inputs running. With standalone Elastic Agent and Beats, users often give overly broad permissions because it’s more convenient.

Data streams support

yes

yes

yes

Both Beats (default as of version 8.0) and Elastic Agents use data streams with easier index life cycle management and the data stream naming scheme.

Variables and input conditions

no

yes (limited)

yes

Elastic Agent offers variables and input conditions to dynamically adjust based on the local host environment. Users can configure these directly in YAML for standalone Elastic Agent or using the Fleet API for Fleet-managed Elastic Agent. The Integrations app allows users to enter variables, and we are considering a UI to edit conditions. Beats only offers static configuration.

Allow non-superusers to manage assets and agents

yes

yes

yes (it’s optional)

Starting with version 8.1.0, a superuser role is no longer required to use the Fleet and Integrations apps and corresponding APIs. These apps are optional for standalone Elastic Agent. Beats offers finer grained roles.

Air-gapped network support

yes

yes (with Limits)

yes

The Integrations and Fleet apps can be deployed in an air-gapped environment self-managed deployment of the Elastic Package Registry. Fleet-managed Elastic Agents require a connection to our artifact repository for agent binary upgrades. However the policy can be modified to have agents point to a local server in order to fetch the agent binary.

Run without root on host

yes

yes

yes

Fleet-managed Elastic Agents, Standalone Elastic Agents, and Beats require root permission only if they’re configured to capture data that requires that level of permission.

Multiple outputs

yes

yes

yes

The policy for a single Fleet-managed Elastic Agent can specify multiple outputs.

Separate monitoring cluster

yes

yes

yes

Fleet-managed Elastic Agents, Standalone Elastic Agent and Beats can send to a remote monitoring cluster.

Secret management

yes

no

no

Elastic Agent stores credentials in the agent policy. We are considering adding keystore support. Beats allows users to access credentials in a local keystore.

Progressive or canary deployments

yes

no

yes

Fleet does not have a feature to deploy an Elastic Agent policy update progressively but we are considering improved support. With standalone Elastic Agent and Beats you can deploy configuration files progressively using third party solutions.

Multiple configurations per host

yes

no (uses input conditions instead)

no (uses input conditions instead)

Elastic Agent uses a single Elastic Agent policy for configuration, and uses variables and input conditions to adapt on a per-host basis. Beats supports multiple configuration files per host, enabling third party solutions to deploy files hierarchically or in multiple groups, and enabling finer-grained access control to those files.

Compatible with version control and infrastructure as code solutions

yes

no (only via API)

yes

Fleet stores the agent policy in Elasticsearch. It does not integrate with external version control or infrastructure as code solutions, but we are considering improved support. However, Beats and Elastic Agent in standalone mode use a YAML file that is compatible with these solutions.

Spooling data to local disk

yes

no

no

This feature is currently being considered for development.

Elastic Agent monitoring support

edit

You configure the collection of agent metrics in the agent policy. If metrics collection is selected (the default), all Elastic Agents enrolled in the policy will send metrics data to Elasticsearch (the output is configured globally).

The following image shows the Agent monitoring settings for the default agent policy:

Screen capture of agent monitoring settings in the default agent policy

There are also pre-built dashboards for agent metrics that you can access under Assets in the Elastic Agent integration:

Screen capture of Elastic Agent monitoring assets

The [Elastic Agent] Agent metrics dashboard shows an aggregated view of agent metrics:

Screen capture showing Elastic Agent metrics

For more information, refer to Monitor Elastic Agents.