You are viewing docs on Elastic's new documentation system, currently in technical preview. For all other Elastic docs, visit elastic.co/guide.
Last updated: Apr 10th, 2023

Elasticsearch

Elasticsearch Integration

What is an Elastic integration?

This integration is powered by Elastic Agent. Elastic Agent is a single, unified way to add monitoring for logs, metrics, and other types of data to a host. It can also protect hosts from security threats, query data from operating systems, forward data from remote services or hardware, and more. Refer to our documentation for a detailed comparison between Beats and Elastic Agent.

Prefer to use Beats for this use case? See Filebeat modules for logs or Metricbeat modules for metrics.

The elasticsearch package collects metrics and logs of Elasticsearch.

Compatibility

The elasticsearch package can monitor Elasticsearch 8.5.0 and later.

Logs

NOTE: Configure the var.paths setting to point to JSON logs.

Audit

Exported fields

FieldDescriptionType
@timestamp
Event timestamp.
date
data_stream.dataset
Data stream dataset.
constant_keyword
data_stream.namespace
Data stream namespace.
constant_keyword
data_stream.type
Data stream type.
constant_keyword
ecs.version
ECS version this event conforms to. ecs.version is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events.
keyword
elasticsearch.audit.action
The name of the action that was executed
keyword
elasticsearch.audit.authentication.type
keyword
elasticsearch.audit.component
keyword
elasticsearch.audit.event_type
The type of event that occurred: anonymous_access_denied, authentication_failed, access_denied, access_granted, connection_granted, connection_denied, tampered_request, run_as_granted, run_as_denied
keyword
elasticsearch.audit.indices
Indices accessed by action
keyword
elasticsearch.audit.invalidate.apikeys.owned_by_authenticated_user
boolean
elasticsearch.audit.layer
The layer from which this event originated: rest, transport or ip_filter
keyword
elasticsearch.audit.message
text
elasticsearch.audit.opaque_id
keyword
elasticsearch.audit.origin.type
Where the request originated: rest (request originated from a REST API request), transport (request was received on the transport channel), local_node (the local node issued the request)
keyword
elasticsearch.audit.realm
The authentication realm the authentication was validated against
keyword
elasticsearch.audit.request.id
Unique ID of request
keyword
elasticsearch.audit.request.name
The type of request that was executed
keyword
elasticsearch.audit.url.params
REST URI parameters
keyword
elasticsearch.audit.user.realm
The user's authentication realm, if authenticated
keyword
elasticsearch.audit.user.roles
Roles to which the principal belongs
keyword
elasticsearch.audit.user.run_as.name
keyword
elasticsearch.audit.user.run_as.realm
keyword
elasticsearch.cluster.name
Name of the cluster
keyword
elasticsearch.cluster.uuid
UUID of the cluster
keyword
elasticsearch.component
Elasticsearch component from where the log event originated
keyword
elasticsearch.index.id
Index id
keyword
elasticsearch.index.name
Index name
keyword
elasticsearch.node.id
ID of the node
keyword
elasticsearch.node.name
Name of the node
keyword
elasticsearch.shard.id
Id of the shard
keyword
http
Fields related to HTTP activity. Use the url field set to store the url of the request.
group
http.request.body.content
The full HTTP request body.
wildcard
http.request.body.content.text
Multi-field of http.request.body.content.
match_only_text
http.request.id
A unique identifier for each HTTP request to correlate logs between clients and servers in transactions. The id may be contained in a non-standard HTTP header, such as X-Request-ID or X-Correlation-ID.
keyword
http.request.method
HTTP request method. The value should retain its casing from the original event. For example, GET, get, and GeT are all considered valid values for this field.
keyword
input.type
keyword
log.file.path
Full path to the log file this event came from, including the file name. It should include the drive letter, when appropriate. If the event wasn't read from a log file, do not populate this field.
keyword
log.level
Original log level of the log event. If the source of the event provides a log level or textual severity, this is the one that goes in log.level. If your source doesn't specify one, you may put your event transport's severity here (e.g. Syslog severity). Some examples are warn, err, i, informational.
keyword
log.offset
long
message
For log events the message field contains the log message, optimized for viewing in a log viewer. For structured logs without an original message field, other fields can be concatenated to form a human-readable summary of the event. If multiple messages exist, they can be combined into one message.
match_only_text
related.user
keyword
service.type
The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, service.type would be elasticsearch.
keyword
source
Source fields capture details about the sender of a network exchange/packet. These fields are populated from a network event, packet, or other event containing details of a network transaction. Source fields are usually populated in conjunction with destination fields. The source and destination fields are considered the baseline and should always be filled if an event contains source and destination details from a network transaction. If the event also contains identification of the client and server roles, then the client and server fields should also be populated.
group
source.address
Some event source addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the .address field. Then it should be duplicated to .ip or .domain, depending on which one it is.
keyword
source.ip
IP address of the source (IPv4 or IPv6).
ip
source.port
Port of the source.
long
trace.id
Unique identifier of the trace. A trace groups multiple events like transactions that belong together. For example, a user request handled by multiple inter-connected services.
keyword
url
URL fields provide support for complete or partial URLs, and supports the breaking down into scheme, domain, path, and so on.
group
url.original
Unmodified original url as seen in the event source. Note that in network monitoring, the observed URL may be a full URL, whereas in access logs, the URL is often just represented as a path. This field is meant to represent the URL as it was observed, complete or not.
wildcard
url.original.text
Multi-field of url.original.
match_only_text
user
The user fields describe information about the user that is relevant to the event. Fields can have one entry or multiple entries. If a user has more than one id, provide an array that includes all of them.
group
user.name
Short name or login of the user.
keyword
user.name.text
Multi-field of user.name.
match_only_text

Deprecation

Exported fields

FieldDescriptionType
@timestamp
Event timestamp.
date
data_stream.dataset
Data stream dataset.
constant_keyword
data_stream.namespace
Data stream namespace.
constant_keyword
data_stream.type
Data stream type.
constant_keyword
ecs.version
ECS version this event conforms to. ecs.version is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events.
keyword
elasticsearch.cluster.name
Name of the cluster
keyword
elasticsearch.cluster.uuid
UUID of the cluster
keyword
elasticsearch.component
Elasticsearch component from where the log event originated
keyword
elasticsearch.elastic_product_origin
keyword
elasticsearch.event.category
keyword
elasticsearch.http.request.x_opaque_id
keyword
elasticsearch.index.id
Index id
keyword
elasticsearch.index.name
Index name
keyword
elasticsearch.node.id
ID of the node
keyword
elasticsearch.node.name
Name of the node
keyword
elasticsearch.shard.id
Id of the shard
keyword
input.type
keyword
log.file.path
Full path to the log file this event came from, including the file name. It should include the drive letter, when appropriate. If the event wasn't read from a log file, do not populate this field.
keyword
log.level
Original log level of the log event. If the source of the event provides a log level or textual severity, this is the one that goes in log.level. If your source doesn't specify one, you may put your event transport's severity here (e.g. Syslog severity). Some examples are warn, err, i, informational.
keyword
log.logger
The name of the logger inside an application. This is usually the name of the class which initialized the logger, or can be a custom name.
keyword
log.offset
long
message
For log events the message field contains the log message, optimized for viewing in a log viewer. For structured logs without an original message field, other fields can be concatenated to form a human-readable summary of the event. If multiple messages exist, they can be combined into one message.
match_only_text
process.thread.name
Thread name.
keyword
service.name
Name of the service data is collected from. The name of the service is normally user given. This allows for distributed services that run on multiple hosts to correlate the related instances based on the name. In the case of Elasticsearch the service.name could contain the cluster name. For Beats the service.name is by default a copy of the service.type field if no name is specified.
keyword
service.type
The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, service.type would be elasticsearch.
keyword
trace.id
Unique identifier of the trace. A trace groups multiple events like transactions that belong together. For example, a user request handled by multiple inter-connected services.
keyword

Garbage collection

Exported fields

FieldDescriptionType
@timestamp
Event timestamp.
date
data_stream.dataset
Data stream dataset.
constant_keyword
data_stream.namespace
Data stream namespace.
constant_keyword
data_stream.type
Data stream type.
constant_keyword
ecs.version
ECS version this event conforms to. ecs.version is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events.
keyword
elasticsearch.cluster.name
Name of the cluster
keyword
elasticsearch.cluster.uuid
UUID of the cluster
keyword
elasticsearch.component
Elasticsearch component from where the log event originated
keyword
elasticsearch.gc.heap.size_kb
Total heap size in kilobytes.
integer
elasticsearch.gc.heap.used_kb
Used heap in kilobytes.
integer
elasticsearch.gc.jvm_runtime_sec
The time from JVM start up in seconds, as a floating point number.
float
elasticsearch.gc.old_gen.size_kb
Total size of old generation in kilobytes.
integer
elasticsearch.gc.old_gen.used_kb
Old generation occupancy in kilobytes.
integer
elasticsearch.gc.phase.class_unload_time_sec
Time spent unloading unused classes in seconds.
float
elasticsearch.gc.phase.cpu_time.real_sec
Total elapsed CPU time spent to complete the collection from start to finish.
float
elasticsearch.gc.phase.cpu_time.sys_sec
CPU time spent inside the kernel.
float
elasticsearch.gc.phase.cpu_time.user_sec
CPU time spent outside the kernel.
float
elasticsearch.gc.phase.duration_sec
Collection phase duration according to the Java virtual machine.
float
elasticsearch.gc.phase.name
Name of the GC collection phase.
keyword
elasticsearch.gc.phase.parallel_rescan_time_sec
Time spent in seconds marking live objects while application is stopped.
float
elasticsearch.gc.phase.scrub_string_table_time_sec
Pause time in seconds cleaning up string tables.
float
elasticsearch.gc.phase.scrub_symbol_table_time_sec
Pause time in seconds cleaning up symbol tables.
float
elasticsearch.gc.phase.weak_refs_processing_time_sec
Time spent processing weak references in seconds.
float
elasticsearch.gc.stopping_threads_time_sec
Time took to stop threads seconds.
float
elasticsearch.gc.tags
GC logging tags.
keyword
elasticsearch.gc.threads_total_stop_time_sec
Garbage collection threads total stop time seconds.
float
elasticsearch.gc.young_gen.size_kb
Total size of young generation in kilobytes.
integer
elasticsearch.gc.young_gen.used_kb
Young generation occupancy in kilobytes.
integer
elasticsearch.index.id
Index id
keyword
elasticsearch.index.name
Index name
keyword
elasticsearch.node.id
ID of the node
keyword
elasticsearch.node.name
Name of the node
keyword
elasticsearch.shard.id
Id of the shard
keyword
input.type
keyword
log.file.path
Full path to the log file this event came from, including the file name. It should include the drive letter, when appropriate. If the event wasn't read from a log file, do not populate this field.
keyword
log.level
Original log level of the log event. If the source of the event provides a log level or textual severity, this is the one that goes in log.level. If your source doesn't specify one, you may put your event transport's severity here (e.g. Syslog severity). Some examples are warn, err, i, informational.
keyword
log.offset
long
message
For log events the message field contains the log message, optimized for viewing in a log viewer. For structured logs without an original message field, other fields can be concatenated to form a human-readable summary of the event. If multiple messages exist, they can be combined into one message.
match_only_text
process.pid
Process id.
long
service.type
The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, service.type would be elasticsearch.
keyword

Server

Exported fields

FieldDescriptionType
@timestamp
Event timestamp.
date
data_stream.dataset
Data stream dataset.
constant_keyword
data_stream.namespace
Data stream namespace.
constant_keyword
data_stream.type
Data stream type.
constant_keyword
ecs.version
ECS version this event conforms to. ecs.version is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events.
keyword
elasticsearch.cluster.name
Name of the cluster
keyword
elasticsearch.cluster.uuid
UUID of the cluster
keyword
elasticsearch.component
Elasticsearch component from where the log event originated
keyword
elasticsearch.index.id
Index id
keyword
elasticsearch.index.name
Index name
keyword
elasticsearch.node.id
ID of the node
keyword
elasticsearch.node.name
Name of the node
keyword
elasticsearch.server.gc.collection_duration.ms
Time spent in GC, in milliseconds
float
elasticsearch.server.gc.observation_duration.ms
Total time over which collection was observed, in milliseconds
float
elasticsearch.server.gc.overhead_seq
Sequence number
long
elasticsearch.server.gc.young.one
long
elasticsearch.server.gc.young.two
long
elasticsearch.server.stacktrace
keyword
elasticsearch.server.tags
nested
elasticsearch.server.trace.id
keyword
elasticsearch.shard.id
Id of the shard
keyword
input.type
keyword
log.file.path
Full path to the log file this event came from, including the file name. It should include the drive letter, when appropriate. If the event wasn't read from a log file, do not populate this field.
keyword
log.level
Original log level of the log event. If the source of the event provides a log level or textual severity, this is the one that goes in log.level. If your source doesn't specify one, you may put your event transport's severity here (e.g. Syslog severity). Some examples are warn, err, i, informational.
keyword
log.logger
The name of the logger inside an application. This is usually the name of the class which initialized the logger, or can be a custom name.
keyword
log.offset
long
message
For log events the message field contains the log message, optimized for viewing in a log viewer. For structured logs without an original message field, other fields can be concatenated to form a human-readable summary of the event. If multiple messages exist, they can be combined into one message.
match_only_text
process.thread.name
Thread name.
keyword
server.name
keyword
server.type
keyword
service.name
Name of the service data is collected from. The name of the service is normally user given. This allows for distributed services that run on multiple hosts to correlate the related instances based on the name. In the case of Elasticsearch the service.name could contain the cluster name. For Beats the service.name is by default a copy of the service.type field if no name is specified.
keyword
service.type
The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, service.type would be elasticsearch.
keyword
trace.id
Unique identifier of the trace. A trace groups multiple events like transactions that belong together. For example, a user request handled by multiple inter-connected services.
keyword

Slowlog

Exported fields

FieldDescriptionType
@timestamp
Event timestamp.
date
data_stream.dataset
Data stream dataset.
constant_keyword
data_stream.namespace
Data stream namespace.
constant_keyword
data_stream.type
Data stream type.
constant_keyword
ecs.version
ECS version this event conforms to. ecs.version is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events.
keyword
elasticsearch.cluster.name
Name of the cluster
keyword
elasticsearch.cluster.uuid
UUID of the cluster
keyword
elasticsearch.component
Elasticsearch component from where the log event originated
keyword
elasticsearch.index.id
Index id
keyword
elasticsearch.index.name
Index name
keyword
elasticsearch.node.id
ID of the node
keyword
elasticsearch.node.name
Name of the node
keyword
elasticsearch.shard.id
Id of the shard
keyword
elasticsearch.slowlog.extra_source
Extra source information
keyword
elasticsearch.slowlog.id
Id
keyword
elasticsearch.slowlog.logger
Logger name
keyword
elasticsearch.slowlog.routing
Routing
keyword
elasticsearch.slowlog.search_type
Search type
keyword
elasticsearch.slowlog.source
Source of document that was indexed
keyword
elasticsearch.slowlog.source_query
Slow query
keyword
elasticsearch.slowlog.stats
Stats groups
keyword
elasticsearch.slowlog.took
Time it took to execute the query
keyword
elasticsearch.slowlog.total_hits
Total hits
keyword
elasticsearch.slowlog.total_shards
Total queried shards
long
elasticsearch.slowlog.type
Type
keyword
elasticsearch.slowlog.types
Types
keyword
input.type
keyword
log.file.path
Full path to the log file this event came from, including the file name. It should include the drive letter, when appropriate. If the event wasn't read from a log file, do not populate this field.
keyword
log.level
Original log level of the log event. If the source of the event provides a log level or textual severity, this is the one that goes in log.level. If your source doesn't specify one, you may put your event transport's severity here (e.g. Syslog severity). Some examples are warn, err, i, informational.
keyword
log.logger
The name of the logger inside an application. This is usually the name of the class which initialized the logger, or can be a custom name.
keyword
log.offset
long
message
For log events the message field contains the log message, optimized for viewing in a log viewer. For structured logs without an original message field, other fields can be concatenated to form a human-readable summary of the event. If multiple messages exist, they can be combined into one message.
match_only_text
process.thread.name
Thread name.
keyword
service.name
Name of the service data is collected from. The name of the service is normally user given. This allows for distributed services that run on multiple hosts to correlate the related instances based on the name. In the case of Elasticsearch the service.name could contain the cluster name. For Beats the service.name is by default a copy of the service.type field if no name is specified.
keyword
service.type
The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, service.type would be elasticsearch.
keyword
trace.id
Unique identifier of the trace. A trace groups multiple events like transactions that belong together. For example, a user request handled by multiple inter-connected services.
keyword

Metrics

Usage for Stack Monitoring

The elasticsearch package can be used to collect logs and metrics shown in our Stack Monitoring UI in Kibana.

Metric-specific configuration notes

Like other package, elasticsearch metrics collection accepts a hosts configuration setting. This setting can contain a list of entries. The related scope setting determines how each entry in the hosts list is interpreted by the module.

  • If scope is set to node (default), each entry in the hosts list indicates a distinct node in an Elasticsearch cluster.
  • If scope is set to cluster, each entry in the hosts list indicates a single endpoint for a distinct Elasticsearch cluster (for example, a load-balancing proxy fronting the cluster).

Cross Cluster Replication

CCR It uses the Cross-Cluster Replication Stats API endpoint to fetch metrics about cross-cluster replication from the Elasticsearch clusters that are participating in cross-cluster replication.

If the Elasticsearch cluster does not have cross-cluster replication enabled, this package will not collect metrics. A DEBUG log message about this will be emitted in the log.

Exported fields

FieldDescriptionType
@timestamp
Date/time when the event originated. This is the date/time extracted from the event, typically representing when the event was generated by the source. If the event source has no original timestamp, this value is typically populated by the first time the event was received by the pipeline. Required field for all events.
date
ccr_auto_follow_stats.follower.failed_read_requests
alias
ccr_auto_follow_stats.number_of_failed_follow_indices
alias
ccr_auto_follow_stats.number_of_failed_remote_cluster_state_requests
alias
ccr_auto_follow_stats.number_of_successful_follow_indices
alias
ccr_stats.bytes_read
alias
ccr_stats.failed_read_requests
alias
ccr_stats.failed_write_requests
alias
ccr_stats.follower_aliases_version
alias
ccr_stats.follower_global_checkpoint
alias
ccr_stats.follower_index
alias
ccr_stats.follower_mapping_version
alias
ccr_stats.follower_max_seq_no
alias
ccr_stats.follower_settings_version
alias
ccr_stats.last_requested_seq_no
alias
ccr_stats.leader_global_checkpoint
alias
ccr_stats.leader_index
alias
ccr_stats.leader_max_seq_no
alias
ccr_stats.operations_read
alias
ccr_stats.operations_written
alias
ccr_stats.outstanding_read_requests
alias
ccr_stats.outstanding_write_requests
alias
ccr_stats.remote_cluster
alias
ccr_stats.shard_id
alias
ccr_stats.successful_read_requests
alias
ccr_stats.successful_write_requests
alias
ccr_stats.total_read_remote_exec_time_millis
alias
ccr_stats.total_read_time_millis
alias
ccr_stats.total_write_time_millis
alias
ccr_stats.write_buffer_operation_count
alias
ccr_stats.write_buffer_size_in_bytes
alias
cluster_uuid
alias
data_stream.dataset
Data stream dataset.
constant_keyword
data_stream.namespace
Data stream namespace.
constant_keyword
data_stream.type
Data stream type.
constant_keyword
ecs.version
ECS version this event conforms to. ecs.version is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events.
keyword
elasticsearch.ccr.auto_follow.failed.follow_indices.count
long
elasticsearch.ccr.auto_follow.failed.remote_cluster_state_requests.count
long
elasticsearch.ccr.auto_follow.success.follow_indices.count
long
elasticsearch.ccr.bytes_read
long
elasticsearch.ccr.follower.aliases_version
long
elasticsearch.ccr.follower.global_checkpoint
Global checkpoint value on follower shard
long
elasticsearch.ccr.follower.index
Name of follower index
keyword
elasticsearch.ccr.follower.mapping_version
long
elasticsearch.ccr.follower.max_seq_no
Maximum sequence number of operation on the follower shard
long
elasticsearch.ccr.follower.operations.read.count
long
elasticsearch.ccr.follower.operations_written
Number of operations indexed (replicated) into the follower shard from the leader shard
long
elasticsearch.ccr.follower.settings_version
long
elasticsearch.ccr.follower.shard.number
Number of the shard within the index
long
elasticsearch.ccr.follower.time_since_last_read.ms
Time, in ms, since the follower last fetched from the leader
long
elasticsearch.ccr.last_requested_seq_no
long
elasticsearch.ccr.leader.global_checkpoint
long
elasticsearch.ccr.leader.index
Name of leader index
keyword
elasticsearch.ccr.leader.max_seq_no
Maximum sequence number of operation on the leader shard
long
elasticsearch.ccr.read_exceptions
nested
elasticsearch.ccr.read_exceptions.exception
object
elasticsearch.ccr.read_exceptions.exception.reason
text
elasticsearch.ccr.read_exceptions.exception.type
keyword
elasticsearch.ccr.read_exceptions.from_seq_no
long
elasticsearch.ccr.read_exceptions.retries
integer
elasticsearch.ccr.remote_cluster
keyword
elasticsearch.ccr.requests.failed.read.count
long
elasticsearch.ccr.requests.failed.write.count
long
elasticsearch.ccr.requests.outstanding.read.count
long
elasticsearch.ccr.requests.outstanding.write.count
long
elasticsearch.ccr.requests.successful.read.count
long
elasticsearch.ccr.requests.successful.write.count
long
elasticsearch.ccr.shard_id
integer
elasticsearch.ccr.total_time.read.ms
long
elasticsearch.ccr.total_time.read.remote_exec.ms
long
elasticsearch.ccr.total_time.write.ms
long
elasticsearch.ccr.write_buffer.operation.count
long
elasticsearch.ccr.write_buffer.size.bytes
long
elasticsearch.cluster.id
Elasticsearch cluster id.
keyword
elasticsearch.cluster.name
Elasticsearch cluster name.
keyword
elasticsearch.cluster.state.id
Elasticsearch state id.
keyword
elasticsearch.node.id
Node ID
keyword
elasticsearch.node.master
Is the node the master node?
boolean
elasticsearch.node.mlockall
Is mlockall enabled on the node?
boolean
elasticsearch.node.name
Node name.
keyword
error.message
Error message.
match_only_text
event.dataset
Name of the dataset. If an event source publishes more than one type of log or events (e.g. access log, error log), the dataset is used to specify which one the event comes from. It's recommended but not required to start the dataset name with the module name, followed by a dot, then the dataset name.
keyword
event.duration
Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time.
long
event.module
Name of the module this data is coming from. If your monitoring agent supports the concept of modules or plugins to process events of a given source (e.g. Apache logs), event.module should contain the name of this module.
keyword
host.name
Name of the host. It can contain what hostname returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use.
keyword
service.address
Service address
keyword
service.name
Name of the service data is collected from. The name of the service is normally user given. This allows for distributed services that run on multiple hosts to correlate the related instances based on the name. In the case of Elasticsearch the service.name could contain the cluster name. For Beats the service.name is by default a copy of the service.type field if no name is specified.
keyword
service.type
The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, service.type would be elasticsearch.
keyword
source_node.name
alias
source_node.uuid
alias
timestamp
alias

Cluster Stats

cluster_stats interrogates the Cluster Stats API endpoint to fetch information about the Elasticsearch cluster.

An example event for cluster_stats looks as following:

{
    "@timestamp": "2022-10-11T14:40:29.703Z",
    "agent": {
        "ephemeral_id": "ca2952fa-aafc-49ad-9612-07b4ced53652",
        "id": "79e48fe3-2ecd-4021-aed5-6e7e69d47606",
        "name": "docker-fleet-agent",
        "type": "metricbeat",
        "version": "8.5.0"
    },
    "data_stream": {
        "dataset": "elasticsearch.stack_monitoring.cluster_stats",
        "namespace": "ep",
        "type": "metrics"
    },
    "ecs": {
        "version": "8.0.0"
    },
    "elastic_agent": {
        "id": "79e48fe3-2ecd-4021-aed5-6e7e69d47606",
        "snapshot": true,
        "version": "8.5.0"
    },
    "elasticsearch": {
        "cluster": {
            "id": "H4rX2Qc4Tquh3MHuVuzdeQ",
            "name": "elasticsearch",
            "stats": {
                "indices": {
                    "docs": {
                        "total": 18
                    },
                    "fielddata": {
                        "memory": {
                            "bytes": 0
                        }
                    },
                    "shards": {
                        "count": 12,
                        "primaries": 12
                    },
                    "store": {
                        "size": {
                            "bytes": 95749
                        }
                    },
                    "total": 10
                },
                "license": {
                    "cluster_needs_tls": true,
                    "expiry_date": "2022-11-10T14:40:10.162Z",
                    "expiry_date_in_millis": 1668091210162,
                    "issue_date": "2022-10-11T14:40:10.162Z",
                    "issue_date_in_millis": 1665499210162,
                    "issued_to": "elasticsearch",
                    "issuer": "elasticsearch",
                    "max_nodes": 1000,
                    "start_date_in_millis": -1,
                    "status": "active",
                    "type": "trial",
                    "uid": "cbabb3e0-7294-4784-8ccb-118a2076d940"
                },
                "nodes": {
                    "count": 1,
                    "fs": {
                        "available": {
                            "bytes": 160894537728
                        },
                        "total": {
                            "bytes": 194136477696
                        }
                    },
                    "jvm": {
                        "max_uptime": {
                            "ms": 34416
                        },
                        "memory": {
                            "heap": {
                                "max": {
                                    "bytes": 1073741824
                                },
                                "used": {
                                    "bytes": 477367808
                                }
                            }
                        }
                    },
                    "master": 1,
                    "versions": [
                        "8.5.0"
                    ]
                },
                "stack": {
                    "xpack": {
                        "ccr": {
                            "available": true,
                            "enabled": true
                        }
                    }
                },
                "state": {
                    "master_node": "Unf_fjGESWun1vbtRzJK9w",
                    "nodes": {
                        "Unf_fjGESWun1vbtRzJK9w": {
                            "attributes": {
                                "ml.allocated_processors": "7",
                                "ml.allocated_processors_double": "7.0",
                                "ml.machine_memory": "12544004096",
                                "ml.max_jvm_size": "1073741824",
                                "xpack.installed": "true"
                            },
                            "ephemeral_id": "HUlmpnU2S0ilRSHZ_F1tTg",
                            "external_id": "b978cf9a6a3c",
                            "name": "b978cf9a6a3c",
                            "roles": [
                                "data",
                                "data_cold",
                                "data_content",
                                "data_frozen",
                                "data_hot",
                                "data_warm",
                                "ingest",
                                "master",
                                "ml",
                                "remote_cluster_client",
                                "transform"
                            ],
                            "transport_address": "127.0.0.1:9300"
                        }
                    },
                    "nodes_hash": 460682572,
                    "state_uuid": "d3z5ixwbTbeUf08VWE9Vcw"
                },
                "status": "yellow"
            }
        },
        "version": 60
    },
    "event": {
        "agent_id_status": "verified",
        "dataset": "elasticsearch.stack_monitoring.cluster_stats",
        "duration": 447033584,
        "ingested": "2022-10-11T14:40:31Z",
        "module": "elasticsearch"
    },
    "host": {
        "architecture": "x86_64",
        "containerized": false,
        "hostname": "docker-fleet-agent",
        "id": "b6bc6723e51b43959ce07f0c3105c72d",
        "ip": [
            "192.168.0.7"
        ],
        "mac": [
            "02-42-C0-A8-00-07"
        ],
        "name": "docker-fleet-agent",
        "os": {
            "codename": "focal",
            "family": "debian",
            "kernel": "5.10.124-linuxkit",
            "name": "Ubuntu",
            "platform": "ubuntu",
            "type": "linux",
            "version": "20.04.5 LTS (Focal Fossa)"
        }
    },
    "metricset": {
        "name": "cluster_stats",
        "period": 10000
    },
    "service": {
        "address": "http://elastic-package-service-elasticsearch-1:9200",
        "type": "elasticsearch"
    }
}

Exported fields

FieldDescriptionType
@timestamp
Date/time when the event originated. This is the date/time extracted from the event, typically representing when the event was generated by the source. If the event source has no original timestamp, this value is typically populated by the first time the event was received by the pipeline. Required field for all events.
date
cluster_state.master_node
alias
cluster_state.nodes_hash
alias
cluster_state.state_uuid
alias
cluster_state.status
alias
cluster_state.version
alias
cluster_stats.indices.count
alias
cluster_stats.indices.shards.total
alias
cluster_stats.nodes.count.total
alias
cluster_stats.nodes.jvm.max_uptime_in_millis
alias
cluster_stats.nodes.jvm.mem.heap_max_in_bytes
alias
cluster_stats.nodes.jvm.mem.heap_used_in_bytes
alias
cluster_uuid
alias
data_stream.dataset
Data stream dataset.
constant_keyword
data_stream.namespace
Data stream namespace.
constant_keyword
data_stream.type
Data stream type.
constant_keyword
ecs.version
ECS version this event conforms to. ecs.version is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events.
keyword
elasticsearch.cluster.id
Elasticsearch cluster id.
keyword
elasticsearch.cluster.name
Elasticsearch cluster name.
keyword
elasticsearch.cluster.state.id
Elasticsearch state id.
keyword
elasticsearch.cluster.stats.indices.docs.total
Total number of indices in cluster.
long
elasticsearch.cluster.stats.indices.fielddata.memory.bytes
Memory used for fielddata.
long
elasticsearch.cluster.stats.indices.shards.count
Total number of shards in cluster.
long
elasticsearch.cluster.stats.indices.shards.primaries
Total number of primary shards in cluster.
long
elasticsearch.cluster.stats.indices.store.size.bytes
long
elasticsearch.cluster.stats.indices.total
long
elasticsearch.cluster.stats.license.cluster_needs_tls
boolean
elasticsearch.cluster.stats.license.expiry_date
date
elasticsearch.cluster.stats.license.expiry_date_in_millis
long
elasticsearch.cluster.stats.license.issue_date
date
elasticsearch.cluster.stats.license.issue_date_in_millis
long
elasticsearch.cluster.stats.license.issued_to
keyword
elasticsearch.cluster.stats.license.issuer
keyword
elasticsearch.cluster.stats.license.max_nodes
long
elasticsearch.cluster.stats.license.start_date_in_millis
long
elasticsearch.cluster.stats.license.status
keyword
elasticsearch.cluster.stats.license.type
keyword
elasticsearch.cluster.stats.license.uid
keyword
elasticsearch.cluster.stats.nodes.count
Total number of nodes in cluster.
long
elasticsearch.cluster.stats.nodes.data
long
elasticsearch.cluster.stats.nodes.fs.available.bytes
long
elasticsearch.cluster.stats.nodes.fs.total.bytes
long
elasticsearch.cluster.stats.nodes.jvm.max_uptime.ms
long
elasticsearch.cluster.stats.nodes.jvm.memory.heap.max.bytes
long
elasticsearch.cluster.stats.nodes.jvm.memory.heap.used.bytes
long
elasticsearch.cluster.stats.nodes.master
Number of master-eligible nodes in cluster.
long
elasticsearch.cluster.stats.nodes.stats.data
Number of data nodes in cluster.
long
elasticsearch.cluster.stats.nodes.versions
text
elasticsearch.cluster.stats.stack.apm.found
boolean
elasticsearch.cluster.stats.stack.xpack.ccr.available
boolean
elasticsearch.cluster.stats.stack.xpack.ccr.enabled
boolean
elasticsearch.cluster.stats.state.master_node
keyword
elasticsearch.cluster.stats.state.nodes
flattened
elasticsearch.cluster.stats.state.nodes_hash
keyword
elasticsearch.cluster.stats.state.state_uuid
keyword
elasticsearch.cluster.stats.state.version
keyword
elasticsearch.cluster.stats.status
Cluster status (green, yellow, red).
keyword
elasticsearch.cluster.stats.version
keyword
elasticsearch.node.id
Node ID
keyword
elasticsearch.node.master
Is the node the master node?
boolean
elasticsearch.node.mlockall
Is mlockall enabled on the node?
boolean
elasticsearch.node.name
Node name.
keyword
elasticsearch.version
keyword
error.message
Error message.
match_only_text
event.dataset
Name of the dataset. If an event source publishes more than one type of log or events (e.g. access log, error log), the dataset is used to specify which one the event comes from. It's recommended but not required to start the dataset name with the module name, followed by a dot, then the dataset name.
keyword
event.duration
Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time.
long
event.module
Name of the module this data is coming from. If your monitoring agent supports the concept of modules or plugins to process events of a given source (e.g. Apache logs), event.module should contain the name of this module.
keyword
host.name
Name of the host. It can contain what hostname returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use.
keyword
license.status
alias
license.type
alias
service.address
Service address
keyword
service.name
Name of the service data is collected from. The name of the service is normally user given. This allows for distributed services that run on multiple hosts to correlate the related instances based on the name. In the case of Elasticsearch the service.name could contain the cluster name. For Beats the service.name is by default a copy of the service.type field if no name is specified.
keyword
service.type
The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, service.type would be elasticsearch.
keyword
source_node.name
alias
source_node.uuid
alias
stack_stats.apm.found
alias
stack_stats.xpack.ccr.available
alias
stack_stats.xpack.ccr.enabled
alias
timestamp
alias

Enrich

Enrch interrogates the Enrich Stats API endpoint to fetch information about Enrich coordinator nodesin the Elasticsearch cluster that are participating in ingest-time enrichment.

An example event for enrich looks as following:

{
    "agent": {
        "hostname": "docker-fleet-agent",
        "name": "docker-fleet-agent",
        "id": "60e15e27-7080-4c28-9900-5a087c2ff74c",
        "type": "metricbeat",
        "ephemeral_id": "2b6da727-313f-41fc-84af-3cd928f265c1",
        "version": "7.14.0"
    },
    "elastic_agent": {
        "id": "60e15e27-7080-4c28-9900-5a087c2ff74c",
        "version": "7.14.0",
        "snapshot": true
    },
    "@timestamp": "2021-07-30T14:47:15.376Z",
    "elasticsearch": {
        "node": {
            "id": "6XuAxHXaRbeX6LUrxIfAxg"
        },
        "cluster": {
            "name": "docker-cluster",
            "id": "bvF4SoDLQU-sdM3YY8JI8Q"
        },
        "enrich": {
            "executed_searches": {
                "total": 0
            },
            "remote_requests": {
                "current": 0,
                "total": 0
            },
            "queue": {
                "size": 0
            }
        }
    },
    "ecs": {
        "version": "1.10.0"
    },
    "service": {
        "address": "http://elasticsearch:9200",
        "name": "elasticsearch",
        "type": "elasticsearch"
    },
    "data_stream": {
        "namespace": "default",
        "type": "metrics",
        "dataset": "elasticsearch.enrich"
    },
    "host": {
        "hostname": "docker-fleet-agent",
        "os": {
            "kernel": "5.11.10-arch1-1",
            "codename": "Core",
            "name": "CentOS Linux",
            "type": "linux",
            "family": "redhat",
            "version": "7 (Core)",
            "platform": "centos"
        },
        "containerized": true,
        "ip": [
            "172.18.0.7"
        ],
        "name": "docker-fleet-agent",
        "id": "8979eb4aa312c3dccea3823dd92f92f5",
        "mac": [
            "02:42:ac:12:00:07"
        ],
        "architecture": "x86_64"
    },
    "metricset": {
        "period": 10000,
        "name": "enrich"
    },
    "event": {
        "duration": 2804362,
        "agent_id_status": "verified",
        "ingested": "2021-07-30T14:47:16.373180707Z",
        "module": "elasticsearch",
        "dataset": "elasticsearch.enrich"
    }
}

Exported fields

FieldDescriptionType
@timestamp
Date/time when the event originated. This is the date/time extracted from the event, typically representing when the event was generated by the source. If the event source has no original timestamp, this value is typically populated by the first time the event was received by the pipeline. Required field for all events.
date
cluster_uuid
alias
data_stream.dataset
Data stream dataset.
constant_keyword
data_stream.namespace
Data stream namespace.
constant_keyword
data_stream.type
Data stream type.
constant_keyword
ecs.version
ECS version this event conforms to. ecs.version is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events.
keyword
elasticsearch.cluster.id
Elasticsearch cluster id.
keyword
elasticsearch.cluster.name
Elasticsearch cluster name.
keyword
elasticsearch.cluster.state.id
Elasticsearch state id.
keyword
elasticsearch.enrich.executed_searches.total
Number of search requests that enrich processors have executed since node startup.
long
elasticsearch.enrich.executing_policy.name
keyword
elasticsearch.enrich.executing_policy.task.action
keyword
elasticsearch.enrich.executing_policy.task.cancellable
boolean
elasticsearch.enrich.executing_policy.task.id
long
elasticsearch.enrich.executing_policy.task.parent_task_id
keyword
elasticsearch.enrich.executing_policy.task.task
keyword
elasticsearch.enrich.executing_policy.task.time.running.nano
long
elasticsearch.enrich.executing_policy.task.time.start.ms
long
elasticsearch.enrich.queue.size
Number of search requests in the queue.
long
elasticsearch.enrich.remote_requests.current
Current number of outstanding remote requests.
long
elasticsearch.enrich.remote_requests.total
Number of outstanding remote requests executed since node startup.
long
elasticsearch.node.id
Node ID
keyword
elasticsearch.node.master
Is the node the master node?
boolean
elasticsearch.node.mlockall
Is mlockall enabled on the node?
boolean
elasticsearch.node.name
Node name.
keyword
error.message
Error message.
match_only_text
event.dataset
Name of the dataset. If an event source publishes more than one type of log or events (e.g. access log, error log), the dataset is used to specify which one the event comes from. It's recommended but not required to start the dataset name with the module name, followed by a dot, then the dataset name.
keyword
event.duration
Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time.
long
event.module
Name of the module this data is coming from. If your monitoring agent supports the concept of modules or plugins to process events of a given source (e.g. Apache logs), event.module should contain the name of this module.
keyword
host.name
Name of the host. It can contain what hostname returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use.
keyword
service.address
Service address
keyword
service.name
Name of the service data is collected from. The name of the service is normally user given. This allows for distributed services that run on multiple hosts to correlate the related instances based on the name. In the case of Elasticsearch the service.name could contain the cluster name. For Beats the service.name is by default a copy of the service.type field if no name is specified.
keyword
service.type
The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, service.type would be elasticsearch.
keyword
source_node.name
alias
source_node.uuid
alias
timestamp
alias

Index

An example event for index looks as following:

{
    "@timestamp": "2022-10-11T11:51:32.135Z",
    "agent": {
        "ephemeral_id": "7047b7d7-b0f6-412b-a884-19c38671acf5",
        "id": "79e48fe3-2ecd-4021-aed5-6e7e69d47606",
        "name": "docker-fleet-agent",
        "type": "metricbeat",
        "version": "8.5.0"
    },
    "data_stream": {
        "dataset": "elasticsearch.stack_monitoring.index",
        "namespace": "ep",
        "type": "metrics"
    },
    "ecs": {
        "version": "8.0.0"
    },
    "elastic_agent": {
        "id": "79e48fe3-2ecd-4021-aed5-6e7e69d47606",
        "snapshot": true,
        "version": "8.5.0"
    },
    "elasticsearch": {
        "cluster": {
            "id": "H507Ao7tR5-NU8YnTjSYAQ",
            "name": "elasticsearch"
        },
        "index": {
            "hidden": true,
            "name": ".ml-state-000001",
            "primaries": {
                "docs": {
                    "count": 0
                },
                "indexing": {
                    "index_time_in_millis": 0,
                    "index_total": 0,
                    "throttle_time_in_millis": 0
                },
                "merges": {
                    "total_size_in_bytes": 0
                },
                "refresh": {
                    "total_time_in_millis": 0
                },
                "segments": {
                    "count": 0
                },
                "store": {
                    "size_in_bytes": 225
                }
            },
            "shards": {
                "primaries": 1,
                "total": 1
            },
            "status": "green",
            "total": {
                "bulk": {
                    "avg_size_in_bytes": 0,
                    "avg_time_in_millis": 0,
                    "total_operations": 0,
                    "total_size_in_bytes": 0,
                    "total_time_in_millis": 0
                },
                "docs": {
                    "count": 0
                },
                "fielddata": {
                    "memory_size_in_bytes": 0
                },
                "indexing": {
                    "index_time_in_millis": 0,
                    "index_total": 0,
                    "throttle_time_in_millis": 0
                },
                "merges": {
                    "total_size_in_bytes": 0
                },
                "refresh": {
                    "total_time_in_millis": 0
                },
                "search": {
                    "query_time_in_millis": 0,
                    "query_total": 0
                },
                "segments": {
                    "count": 0,
                    "doc_values_memory_in_bytes": 0,
                    "fixed_bit_set_memory_in_bytes": 0,
                    "index_writer_memory_in_bytes": 0,
                    "memory_in_bytes": 0,
                    "norms_memory_in_bytes": 0,
                    "points_memory_in_bytes": 0,
                    "stored_fields_memory_in_bytes": 0,
                    "term_vectors_memory_in_bytes": 0,
                    "terms_memory_in_bytes": 0,
                    "version_map_memory_in_bytes": 0
                },
                "store": {
                    "size_in_bytes": 225
                }
            },
            "uuid": "rQEw7aohRUqpIz3fuZj6JQ"
        }
    },
    "event": {
        "agent_id_status": "verified",
        "dataset": "elasticsearch.stack_monitoring.index",
        "duration": 143033459,
        "ingested": "2022-10-11T11:51:33Z",
        "module": "elasticsearch"
    },
    "host": {
        "architecture": "x86_64",
        "containerized": false,
        "hostname": "docker-fleet-agent",
        "id": "b6bc6723e51b43959ce07f0c3105c72d",
        "ip": [
            "192.168.0.7"
        ],
        "mac": [
            "02-42-C0-A8-00-07"
        ],
        "name": "docker-fleet-agent",
        "os": {
            "codename": "focal",
            "family": "debian",
            "kernel": "5.10.124-linuxkit",
            "name": "Ubuntu",
            "platform": "ubuntu",
            "type": "linux",
            "version": "20.04.5 LTS (Focal Fossa)"
        }
    },
    "metricset": {
        "name": "index",
        "period": 10000
    },
    "service": {
        "address": "http://elastic-package-service-elasticsearch-1:9200",
        "type": "elasticsearch"
    }
}

Exported fields

FieldDescriptionType
@timestamp
Date/time when the event originated. This is the date/time extracted from the event, typically representing when the event was generated by the source. If the event source has no original timestamp, this value is typically populated by the first time the event was received by the pipeline. Required field for all events.
date
cluster_uuid
alias
data_stream.dataset
Data stream dataset.
constant_keyword
data_stream.namespace
Data stream namespace.
constant_keyword
data_stream.type
Data stream type.
constant_keyword
ecs.version
ECS version this event conforms to. ecs.version is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events.
keyword
elasticsearch.cluster.id
Elasticsearch cluster id.
keyword
elasticsearch.cluster.name
Elasticsearch cluster name.
keyword
elasticsearch.cluster.state.id
Elasticsearch state id.
keyword
elasticsearch.index.created
long
elasticsearch.index.hidden
boolean
elasticsearch.index.name
Index name.
keyword
elasticsearch.index.primaries.docs.count
long
elasticsearch.index.primaries.docs.deleted
long
elasticsearch.index.primaries.indexing.index_time_in_millis
long
elasticsearch.index.primaries.indexing.index_total
long
elasticsearch.index.primaries.indexing.throttle_time_in_millis
long
elasticsearch.index.primaries.merges.total_size_in_bytes
long
elasticsearch.index.primaries.query_cache.hit_count
long
elasticsearch.index.primaries.query_cache.memory_size_in_bytes
long
elasticsearch.index.primaries.query_cache.miss_count
long
elasticsearch.index.primaries.refresh.external_total_time_in_millis
long
elasticsearch.index.primaries.refresh.total_time_in_millis
long
elasticsearch.index.primaries.request_cache.evictions
long
elasticsearch.index.primaries.request_cache.hit_count
long
elasticsearch.index.primaries.request_cache.memory_size_in_bytes
long
elasticsearch.index.primaries.request_cache.miss_count
long
elasticsearch.index.primaries.search.query_time_in_millis
long
elasticsearch.index.primaries.search.query_total
long
elasticsearch.index.primaries.segments.count
long
elasticsearch.index.primaries.segments.doc_values_memory_in_bytes
long
elasticsearch.index.primaries.segments.fixed_bit_set_memory_in_bytes
long
elasticsearch.index.primaries.segments.index_writer_memory_in_bytes
long
elasticsearch.index.primaries.segments.memory_in_bytes
long
elasticsearch.index.primaries.segments.norms_memory_in_bytes
long
elasticsearch.index.primaries.segments.points_memory_in_bytes
long
elasticsearch.index.primaries.segments.stored_fields_memory_in_bytes
long
elasticsearch.index.primaries.segments.term_vectors_memory_in_bytes
long
elasticsearch.index.primaries.segments.terms_memory_in_bytes
long
elasticsearch.index.primaries.segments.version_map_memory_in_bytes
long
elasticsearch.index.primaries.store.size_in_bytes
long
elasticsearch.index.shards.primaries
long
elasticsearch.index.shards.total
long
elasticsearch.index.status
keyword
elasticsearch.index.total.bulk.avg_size_in_bytes
long
elasticsearch.index.total.bulk.avg_time_in_millis
long
elasticsearch.index.total.bulk.total_operations
long
elasticsearch.index.total.bulk.total_size_in_bytes
long
elasticsearch.index.total.bulk.total_time_in_millis
long
elasticsearch.index.total.docs.count
Total number of documents in the index.
long
elasticsearch.index.total.docs.deleted
Total number of deleted documents in the index.
long
elasticsearch.index.total.fielddata.evictions
long
elasticsearch.index.total.fielddata.memory_size_in_bytes
long
elasticsearch.index.total.indexing.index_time_in_millis
long
elasticsearch.index.total.indexing.index_total
long
elasticsearch.index.total.indexing.throttle_time_in_millis
long
elasticsearch.index.total.merges.total_size_in_bytes
long
elasticsearch.index.total.query_cache.evictions
long
elasticsearch.index.total.query_cache.hit_count
long
elasticsearch.index.total.query_cache.memory_size_in_bytes
long
elasticsearch.index.total.query_cache.miss_count
long
elasticsearch.index.total.refresh.external_total_time_in_millis
long
elasticsearch.index.total.refresh.total_time_in_millis
long
elasticsearch.index.total.request_cache.evictions
long
elasticsearch.index.total.request_cache.hit_count
long
elasticsearch.index.total.request_cache.memory_size_in_bytes
long
elasticsearch.index.total.request_cache.miss_count
long
elasticsearch.index.total.search.query_time_in_millis
long
elasticsearch.index.total.search.query_total
long
elasticsearch.index.total.segments.count
Total number of index segments.
long
elasticsearch.index.total.segments.doc_values_memory_in_bytes
long
elasticsearch.index.total.segments.fixed_bit_set_memory_in_bytes
long
elasticsearch.index.total.segments.index_writer_memory_in_bytes
long
elasticsearch.index.total.segments.memory.bytes
Total number of memory used by the segments in bytes.
long
elasticsearch.index.total.segments.memory_in_bytes
Total number of memory used by the segments in bytes.
long
elasticsearch.index.total.segments.norms_memory_in_bytes
long
elasticsearch.index.total.segments.points_memory_in_bytes
long
elasticsearch.index.total.segments.stored_fields_memory_in_bytes
long
elasticsearch.index.total.segments.term_vectors_memory_in_bytes
long
elasticsearch.index.total.segments.terms_memory_in_bytes
long
elasticsearch.index.total.segments.version_map_memory_in_bytes
long
elasticsearch.index.total.store.size.bytes
long
elasticsearch.index.total.store.size_in_bytes
Total size of the index in bytes.
long
elasticsearch.index.uuid
keyword
elasticsearch.node.id
Node ID
keyword
elasticsearch.node.master
Is the node the master node?
boolean
elasticsearch.node.mlockall
Is mlockall enabled on the node?
boolean
elasticsearch.node.name
Node name.
keyword
error.message
Error message.
match_only_text
event.dataset
Name of the dataset. If an event source publishes more than one type of log or events (e.g. access log, error log), the dataset is used to specify which one the event comes from. It's recommended but not required to start the dataset name with the module name, followed by a dot, then the dataset name.
keyword
event.duration
Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time.
long
event.module
Name of the module this data is coming from. If your monitoring agent supports the concept of modules or plugins to process events of a given source (e.g. Apache logs), event.module should contain the name of this module.
keyword
host.name
Name of the host. It can contain what hostname returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use.
keyword
index_recovery.shards.start_time_in_millis
alias
index_recovery.shards.stop_time_in_millis
alias
index_stats.index
alias
index_stats.primaries.docs.count
alias
index_stats.primaries.indexing.index_time_in_millis
alias
index_stats.primaries.indexing.index_total
alias
index_stats.primaries.indexing.throttle_time_in_millis
alias
index_stats.primaries.merges.total_size_in_bytes
alias
index_stats.primaries.refresh.total_time_in_millis
alias
index_stats.primaries.segments.count
alias
index_stats.primaries.store.size_in_bytes
alias
index_stats.total.fielddata.memory_size_in_bytes
alias
index_stats.total.indexing.index_time_in_millis
alias
index_stats.total.indexing.index_total
alias
index_stats.total.indexing.throttle_time_in_millis
alias
index_stats.total.merges.total_size_in_bytes
alias
index_stats.total.query_cache.memory_size_in_bytes
alias
index_stats.total.refresh.total_time_in_millis
alias
index_stats.total.request_cache.memory_size_in_bytes
alias
index_stats.total.search.query_time_in_millis
alias
index_stats.total.search.query_total
alias
index_stats.total.segments.count
alias
index_stats.total.segments.doc_values_memory_in_bytes
alias
index_stats.total.segments.fixed_bit_set_memory_in_bytes
alias
index_stats.total.segments.index_writer_memory_in_bytes
alias
index_stats.total.segments.memory_in_bytes
alias
index_stats.total.segments.norms_memory_in_bytes
alias
index_stats.total.segments.points_memory_in_bytes
alias
index_stats.total.segments.stored_fields_memory_in_bytes
alias
index_stats.total.segments.term_vectors_memory_in_bytes
alias
index_stats.total.segments.terms_memory_in_bytes
alias
index_stats.total.segments.version_map_memory_in_bytes
alias
index_stats.total.store.size_in_bytes
alias
indices_stats._all.primaries.indexing.index_time_in_millis
alias
indices_stats._all.primaries.indexing.index_total
alias
indices_stats._all.total.indexing.index_total
alias
indices_stats._all.total.search.query_time_in_millis
alias
indices_stats._all.total.search.query_total
alias
service.address
Service address
keyword
service.name
Name of the service data is collected from. The name of the service is normally user given. This allows for distributed services that run on multiple hosts to correlate the related instances based on the name. In the case of Elasticsearch the service.name could contain the cluster name. For Beats the service.name is by default a copy of the service.type field if no name is specified.
keyword
service.type
The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, service.type would be elasticsearch.
keyword
source_node.name
alias
source_node.uuid
alias
timestamp
alias

Index recovery

By default only data about indices which are under active recovery are fetched. To gather data about all indices set active_only: false.

An example event for index_recovery looks as following:

{
    "@timestamp": "2022-10-11T11:52:45.280Z",
    "agent": {
        "ephemeral_id": "7047b7d7-b0f6-412b-a884-19c38671acf5",
        "id": "79e48fe3-2ecd-4021-aed5-6e7e69d47606",
        "name": "docker-fleet-agent",
        "type": "metricbeat",
        "version": "8.5.0"
    },
    "data_stream": {
        "dataset": "elasticsearch.stack_monitoring.index_recovery",
        "namespace": "ep",
        "type": "metrics"
    },
    "ecs": {
        "version": "8.0.0"
    },
    "elastic_agent": {
        "id": "79e48fe3-2ecd-4021-aed5-6e7e69d47606",
        "snapshot": true,
        "version": "8.5.0"
    },
    "elasticsearch": {
        "cluster": {
            "id": "5-S01HJrSLyI2D9Bfsqkxg",
            "name": "elasticsearch"
        },
        "index": {
            "name": "test_2",
            "recovery": {
                "id": 0,
                "index": {
                    "files": {
                        "percent": "0.0%",
                        "recovered": 0,
                        "reused": 0,
                        "total": 0
                    },
                    "size": {
                        "recovered_in_bytes": 0,
                        "reused_in_bytes": 0,
                        "total_in_bytes": 0
                    }
                },
                "name": "test_2",
                "primary": true,
                "source": {},
                "stage": "DONE",
                "start_time": {
                    "ms": 1665489151996
                },
                "stop_time": {
                    "ms": 1665489152026
                },
                "total_time": {
                    "ms": 30
                },
                "target": {
                    "host": "127.0.0.1",
                    "id": "lVVKbuXvSs2koSpkreME3w",
                    "name": "c82dbd707c75",
                    "transport_address": "127.0.0.1:9300"
                },
                "translog": {
                    "percent": "100.0%",
                    "total": 0,
                    "total_on_start": 0
                },
                "type": "EMPTY_STORE"
            }
        }
    },
    "event": {
        "agent_id_status": "verified",
        "dataset": "elasticsearch.stack_monitoring.index_recovery",
        "duration": 70728584,
        "ingested": "2022-10-11T11:52:46Z",
        "module": "elasticsearch"
    },
    "host": {
        "architecture": "x86_64",
        "containerized": false,
        "hostname": "docker-fleet-agent",
        "id": "b6bc6723e51b43959ce07f0c3105c72d",
        "ip": [
            "192.168.0.7"
        ],
        "mac": [
            "02-42-C0-A8-00-07"
        ],
        "name": "docker-fleet-agent",
        "os": {
            "codename": "focal",
            "family": "debian",
            "kernel": "5.10.124-linuxkit",
            "name": "Ubuntu",
            "platform": "ubuntu",
            "type": "linux",
            "version": "20.04.5 LTS (Focal Fossa)"
        }
    },
    "metricset": {
        "name": "index_recovery",
        "period": 10000
    },
    "service": {
        "address": "http://elastic-package-service-elasticsearch-1:9200",
        "name": "elasticsearch",
        "type": "elasticsearch"
    }
}

Exported fields

FieldDescriptionType
@timestamp
Date/time when the event originated. This is the date/time extracted from the event, typically representing when the event was generated by the source. If the event source has no original timestamp, this value is typically populated by the first time the event was received by the pipeline. Required field for all events.
date
cluster_uuid
alias
data_stream.dataset
Data stream dataset.
constant_keyword
data_stream.namespace
Data stream namespace.
constant_keyword
data_stream.type
Data stream type.
constant_keyword
ecs.version
ECS version this event conforms to. ecs.version is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events.
keyword
elasticsearch.cluster.id
Elasticsearch cluster id.
keyword
elasticsearch.cluster.name
Elasticsearch cluster name.
keyword
elasticsearch.cluster.state.id
Elasticsearch state id.
keyword
elasticsearch.index.name
keyword
elasticsearch.index.recovery.id
Shard recovery id.
long
elasticsearch.index.recovery.index.files.percent
keyword
elasticsearch.index.recovery.index.files.recovered
long
elasticsearch.index.recovery.index.files.reused
long
elasticsearch.index.recovery.index.files.total
long
elasticsearch.index.recovery.index.size.recovered_in_bytes
long
elasticsearch.index.recovery.index.size.reused_in_bytes
long
elasticsearch.index.recovery.index.size.total_in_bytes
long
elasticsearch.index.recovery.name
keyword
elasticsearch.index.recovery.primary
True if primary shard.
boolean
elasticsearch.index.recovery.source.host
Source node host address (could be IP address or hostname).
keyword
elasticsearch.index.recovery.source.id
Source node id.
keyword
elasticsearch.index.recovery.source.name
Source node name.
keyword
elasticsearch.index.recovery.source.transport_address
keyword
elasticsearch.index.recovery.stage
Recovery stage.
keyword
elasticsearch.index.recovery.start_time.ms
long
elasticsearch.index.recovery.stop_time.ms
long
elasticsearch.index.recovery.target.host
Target node host address (could be IP address or hostname).
keyword
elasticsearch.index.recovery.target.id
Target node id.
keyword
elasticsearch.index.recovery.target.name
Target node name.
keyword
elasticsearch.index.recovery.target.transport_address
keyword
elasticsearch.index.recovery.total_time.ms
long
elasticsearch.index.recovery.translog.percent
keyword
elasticsearch.index.recovery.translog.total
long
elasticsearch.index.recovery.translog.total_on_start
long
elasticsearch.index.recovery.type
Shard recovery type.
keyword
elasticsearch.index.recovery.verify_index.check_index_time.ms
long
elasticsearch.index.recovery.verify_index.total_time.ms
long
elasticsearch.node.id
Node ID
keyword
elasticsearch.node.master
Is the node the master node?
boolean
elasticsearch.node.mlockall
Is mlockall enabled on the node?
boolean
elasticsearch.node.name
Node name.
keyword
error.message
Error message.
match_only_text
event.dataset
Name of the dataset. If an event source publishes more than one type of log or events (e.g. access log, error log), the dataset is used to specify which one the event comes from. It's recommended but not required to start the dataset name with the module name, followed by a dot, then the dataset name.
keyword
event.duration
Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time.
long
event.module
Name of the module this data is coming from. If your monitoring agent supports the concept of modules or plugins to process events of a given source (e.g. Apache logs), event.module should contain the name of this module.
keyword
host.name
Name of the host. It can contain what hostname returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use.
keyword
index_recovery.shards.start_time_in_millis
alias
index_recovery.shards.stop_time_in_millis
alias
index_recovery.shards.total_time_in_millis
alias
service.address
Service address
keyword
service.name
Name of the service data is collected from. The name of the service is normally user given. This allows for distributed services that run on multiple hosts to correlate the related instances based on the name. In the case of Elasticsearch the service.name could contain the cluster name. For Beats the service.name is by default a copy of the service.type field if no name is specified.
keyword
service.type
The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, service.type would be elasticsearch.
keyword
source_node.name
alias
source_node.uuid
alias
timestamp
alias

Index summary

An example event for index_summary looks as following:

{
    "@timestamp": "2022-10-11T11:54:00.424Z",
    "agent": {
        "ephemeral_id": "7047b7d7-b0f6-412b-a884-19c38671acf5",
        "id": "79e48fe3-2ecd-4021-aed5-6e7e69d47606",
        "name": "docker-fleet-agent",
        "type": "metricbeat",
        "version": "8.5.0"
    },
    "data_stream": {
        "dataset": "elasticsearch.stack_monitoring.index_summary",
        "namespace": "ep",
        "type": "metrics"
    },
    "ecs": {
        "version": "8.0.0"
    },
    "elastic_agent": {
        "id": "79e48fe3-2ecd-4021-aed5-6e7e69d47606",
        "snapshot": true,
        "version": "8.5.0"
    },
    "elasticsearch": {
        "cluster": {
            "id": "KE1I01h1Qci2TZwKI8uhPQ",
            "name": "elasticsearch"
        },
        "index": {
            "summary": {
                "primaries": {
                    "bulk": {
                        "operations": {
                            "count": 2
                        },
                        "size": {
                            "bytes": 30
                        },
                        "time": {
                            "avg": {
                                "bytes": 2
                            }
                        }
                    },
                    "docs": {
                        "count": 2,
                        "deleted": 0
                    },
                    "indexing": {
                        "index": {
                            "count": 2,
                            "time": {
                                "ms": 3
                            }
                        }
                    },
                    "search": {
                        "query": {
                            "count": 6,
                            "time": {
                                "ms": 2
                            }
                        }
                    },
                    "segments": {
                        "count": 2,
                        "memory": {
                            "bytes": 0
                        }
                    },
                    "store": {
                        "size": {
                            "bytes": 10059
                        }
                    }
                },
                "total": {
                    "bulk": {
                        "operations": {
                            "count": 2
                        },
                        "size": {
                            "bytes": 30
                        },
                        "time": {
                            "avg": {
                                "bytes": 2
                            }
                        }
                    },
                    "docs": {
                        "count": 2,
                        "deleted": 0
                    },
                    "indexing": {
                        "index": {
                            "count": 2,
                            "time": {
                                "ms": 3
                            }
                        }
                    },
                    "search": {
                        "query": {
                            "count": 6,
                            "time": {
                                "ms": 2
                            }
                        }
                    },
                    "segments": {
                        "count": 2,
                        "memory": {
                            "bytes": 0
                        }
                    },
                    "store": {
                        "size": {
                            "bytes": 10059
                        }
                    }
                }
            }
        }
    },
    "event": {
        "agent_id_status": "verified",
        "dataset": "elasticsearch.stack_monitoring.index_summary",
        "duration": 89177084,
        "ingested": "2022-10-11T11:54:01Z",
        "module": "elasticsearch"
    },
    "host": {
        "architecture": "x86_64",
        "containerized": false,
        "hostname": "docker-fleet-agent",
        "id": "b6bc6723e51b43959ce07f0c3105c72d",
        "ip": [
            "192.168.0.7"
        ],
        "mac": [
            "02-42-C0-A8-00-07"
        ],
        "name": "docker-fleet-agent",
        "os": {
            "codename": "focal",
            "family": "debian",
            "kernel": "5.10.124-linuxkit",
            "name": "Ubuntu",
            "platform": "ubuntu",
            "type": "linux",
            "version": "20.04.5 LTS (Focal Fossa)"
        }
    },
    "metricset": {
        "name": "index_summary",
        "period": 10000
    },
    "service": {
        "address": "http://elastic-package-service-elasticsearch-1:9200",
        "name": "elasticsearch",
        "type": "elasticsearch"
    }
}

Exported fields

FieldDescriptionType
@timestamp
Date/time when the event originated. This is the date/time extracted from the event, typically representing when the event was generated by the source. If the event source has no original timestamp, this value is typically populated by the first time the event was received by the pipeline. Required field for all events.
date
cluster_uuid
alias
data_stream.dataset
Data stream dataset.
constant_keyword
data_stream.namespace
Data stream namespace.
constant_keyword
data_stream.type
Data stream type.
constant_keyword
ecs.version
ECS version this event conforms to. ecs.version is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events.
keyword
elasticsearch.cluster.id
Elasticsearch cluster id.
keyword
elasticsearch.cluster.name
Elasticsearch cluster name.
keyword
elasticsearch.cluster.state.id
Elasticsearch state id.
keyword
elasticsearch.index.summary.primaries.bulk.operations.count
long
elasticsearch.index.summary.primaries.bulk.size.bytes
long
elasticsearch.index.summary.primaries.bulk.time.avg.bytes
long
elasticsearch.index.summary.primaries.bulk.time.avg.ms
long
elasticsearch.index.summary.primaries.bulk.time.count.ms
long
elasticsearch.index.summary.primaries.docs.count
Total number of documents in the index.
long
elasticsearch.index.summary.primaries.docs.deleted
Total number of deleted documents in the index.
long
elasticsearch.index.summary.primaries.indexing.index.count
long
elasticsearch.index.summary.primaries.indexing.index.time.ms
long
elasticsearch.index.summary.primaries.search.query.count
long
elasticsearch.index.summary.primaries.search.query.time.ms
long
elasticsearch.index.summary.primaries.segments.count
Total number of index segments.
long
elasticsearch.index.summary.primaries.segments.memory.bytes
Total number of memory used by the segments in bytes.
long
elasticsearch.index.summary.primaries.store.size.bytes
Total size of the index in bytes.
long
elasticsearch.index.summary.total.bulk.operations.count
long
elasticsearch.index.summary.total.bulk.size.bytes
long
elasticsearch.index.summary.total.bulk.time.avg.bytes
long
elasticsearch.index.summary.total.bulk.time.avg.ms
long
elasticsearch.index.summary.total.docs.count
Total number of documents in the index.
long
elasticsearch.index.summary.total.docs.deleted
Total number of deleted documents in the index.
long
elasticsearch.index.summary.total.indexing.index.count
long
elasticsearch.index.summary.total.indexing.index.time.ms
long
elasticsearch.index.summary.total.indexing.is_throttled
boolean
elasticsearch.index.summary.total.indexing.throttle_time.ms
long
elasticsearch.index.summary.total.search.query.count
long
elasticsearch.index.summary.total.search.query.time.ms
long
elasticsearch.index.summary.total.segments.count
Total number of index segments.
long
elasticsearch.index.summary.total.segments.memory.bytes
Total number of memory used by the segments in bytes.
long
elasticsearch.index.summary.total.store.size.bytes
Total size of the index in bytes.
long
elasticsearch.node.id
Node ID
keyword
elasticsearch.node.master
Is the node the master node?
boolean
elasticsearch.node.mlockall
Is mlockall enabled on the node?
boolean
elasticsearch.node.name
Node name.
keyword
error.message
Error message.
match_only_text
event.dataset
Name of the dataset. If an event source publishes more than one type of log or events (e.g. access log, error log), the dataset is used to specify which one the event comes from. It's recommended but not required to start the dataset name with the module name, followed by a dot, then the dataset name.
keyword
event.duration
Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time.
long
event.module
Name of the module this data is coming from. If your monitoring agent supports the concept of modules or plugins to process events of a given source (e.g. Apache logs), event.module should contain the name of this module.
keyword
host.name
Name of the host. It can contain what hostname returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use.
keyword
indices_stats._all.primaries.indexing.index_time_in_millis
alias
indices_stats._all.primaries.indexing.index_total
alias
indices_stats._all.total.indexing.index_total
alias
indices_stats._all.total.search.query_time_in_millis
alias
indices_stats._all.total.search.query_total
alias
service.address
Service address
keyword
service.name
Name of the service data is collected from. The name of the service is normally user given. This allows for distributed services that run on multiple hosts to correlate the related instances based on the name. In the case of Elasticsearch the service.name could contain the cluster name. For Beats the service.name is by default a copy of the service.type field if no name is specified.
keyword
service.type
The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, service.type would be elasticsearch.
keyword
source_node.name
alias
source_node.uuid
alias
timestamp
alias

Machine Learning Jobs

If you have Machine Learning jobs, this data stream will interrogate the Machine Learning Anomaly Detection API and requires Machine Learning to be enabled.

An example event for ml_job looks as following:

{
    "@timestamp": "2022-10-11T11:55:13.602Z",
    "agent": {
        "ephemeral_id": "7047b7d7-b0f6-412b-a884-19c38671acf5",
        "id": "79e48fe3-2ecd-4021-aed5-6e7e69d47606",
        "name": "docker-fleet-agent",
        "type": "metricbeat",
        "version": "8.5.0"
    },
    "data_stream": {
        "dataset": "elasticsearch.stack_monitoring.ml_job",
        "namespace": "ep",
        "type": "metrics"
    },
    "ecs": {
        "version": "8.0.0"
    },
    "elastic_agent": {
        "id": "79e48fe3-2ecd-4021-aed5-6e7e69d47606",
        "snapshot": true,
        "version": "8.5.0"
    },
    "elasticsearch": {
        "cluster": {
            "id": "qRprxEWySBqONwPW_2ga6Q",
            "name": "elasticsearch"
        },
        "ml": {
            "job": {
                "data_counts": {
                    "invalid_date_count": 0,
                    "processed_record_count": 0
                },
                "forecasts_stats": {
                    "total": 0
                },
                "id": "test-job1",
                "model_size": {
                    "memory_status": "ok"
                },
                "state": "opened"
            }
        },
        "node": {
            "id": "2eRkSFTXSLie_seiHf4Y1A",
            "name": "efacd89a6e88"
        }
    },
    "event": {
        "agent_id_status": "verified",
        "dataset": "elasticsearch.stack_monitoring.ml_job",
        "duration": 93589542,
        "ingested": "2022-10-11T11:55:14Z",
        "module": "elasticsearch"
    },
    "host": {
        "architecture": "x86_64",
        "containerized": false,
        "hostname": "docker-fleet-agent",
        "id": "b6bc6723e51b43959ce07f0c3105c72d",
        "ip": [
            "192.168.0.7"
        ],
        "mac": [
            "02-42-C0-A8-00-07"
        ],
        "name": "docker-fleet-agent",
        "os": {
            "codename": "focal",
            "family": "debian",
            "kernel": "5.10.124-linuxkit",
            "name": "Ubuntu",
            "platform": "ubuntu",
            "type": "linux",
            "version": "20.04.5 LTS (Focal Fossa)"
        }
    },
    "metricset": {
        "name": "ml_job",
        "period": 10000
    },
    "service": {
        "address": "http://elastic-package-service-elasticsearch-1:9200",
        "name": "elasticsearch",
        "type": "elasticsearch"
    }
}

Exported fields

FieldDescriptionType
@timestamp
Date/time when the event originated. This is the date/time extracted from the event, typically representing when the event was generated by the source. If the event source has no original timestamp, this value is typically populated by the first time the event was received by the pipeline. Required field for all events.
date
cluster_uuid
alias
data_stream.dataset
Data stream dataset.
constant_keyword
data_stream.namespace
Data stream namespace.
constant_keyword
data_stream.type
Data stream type.
constant_keyword
ecs.version
ECS version this event conforms to. ecs.version is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events.
keyword
elasticsearch.cluster.id
Elasticsearch cluster id.
keyword
elasticsearch.cluster.name
Elasticsearch cluster name.
keyword
elasticsearch.cluster.state.id
Elasticsearch state id.
keyword
elasticsearch.ml.job.data.invalid_date.count
The number of records with either a missing date field or a date that could not be parsed.
long
elasticsearch.ml.job.data_counts.invalid_date_count
long
elasticsearch.ml.job.data_counts.processed_record_count
Processed data events.
long
elasticsearch.ml.job.forecasts_stats.total
long
elasticsearch.ml.job.id
Unique ml job id.
keyword
elasticsearch.ml.job.model_size.memory_status
keyword
elasticsearch.ml.job.state
Job state.
keyword
elasticsearch.node.id
Node ID
keyword
elasticsearch.node.master
Is the node the master node?
boolean
elasticsearch.node.mlockall
Is mlockall enabled on the node?
boolean
elasticsearch.node.name
Node name.
keyword
error.message
Error message.
match_only_text
event.dataset
Name of the dataset. If an event source publishes more than one type of log or events (e.g. access log, error log), the dataset is used to specify which one the event comes from. It's recommended but not required to start the dataset name with the module name, followed by a dot, then the dataset name.
keyword
event.duration
Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time.
long
event.module
Name of the module this data is coming from. If your monitoring agent supports the concept of modules or plugins to process events of a given source (e.g. Apache logs), event.module should contain the name of this module.
keyword
host.name
Name of the host. It can contain what hostname returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use.
keyword
job_stats.forecasts_stats.total
alias
job_stats.job_id
alias
service.address
Service address
keyword
service.name
Name of the service data is collected from. The name of the service is normally user given. This allows for distributed services that run on multiple hosts to correlate the related instances based on the name. In the case of Elasticsearch the service.name could contain the cluster name. For Beats the service.name is by default a copy of the service.type field if no name is specified.
keyword
service.type
The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, service.type would be elasticsearch.
keyword
source_node.name
alias
source_node.uuid
alias
timestamp
alias

Node

node interrogates the Cluster API endpoint of Elasticsearch to get cluster nodes information. It only fetches the data from the _local node so it must run on each Elasticsearch node.

An example event for node looks as following:

{
    "@timestamp": "2022-10-11T11:56:26.591Z",
    "agent": {
        "ephemeral_id": "7047b7d7-b0f6-412b-a884-19c38671acf5",
        "id": "79e48fe3-2ecd-4021-aed5-6e7e69d47606",
        "name": "docker-fleet-agent",
        "type": "metricbeat",
        "version": "8.5.0"
    },
    "data_stream": {
        "dataset": "elasticsearch.stack_monitoring.node",
        "namespace": "ep",
        "type": "metrics"
    },
    "ecs": {
        "version": "8.0.0"
    },
    "elastic_agent": {
        "id": "79e48fe3-2ecd-4021-aed5-6e7e69d47606",
        "snapshot": true,
        "version": "8.5.0"
    },
    "elasticsearch": {
        "cluster": {
            "id": "dww9JUOzQyS8iokOwczS9Q",
            "name": "elasticsearch"
        },
        "node": {
            "id": "8IzM7B10S7yuldzLETfv0w",
            "jvm": {
                "memory": {
                    "heap": {
                        "init": {
                            "bytes": 1073741824
                        },
                        "max": {
                            "bytes": 1073741824
                        }
                    },
                    "nonheap": {
                        "init": {
                            "bytes": 7667712
                        },
                        "max": {
                            "bytes": 0
                        }
                    }
                },
                "version": "18.0.2.1"
            },
            "name": "d07bc5926662",
            "process": {
                "mlockall": false
            },
            "version": "8.5.0"
        }
    },
    "event": {
        "agent_id_status": "verified",
        "dataset": "elasticsearch.stack_monitoring.node",
        "duration": 63219000,
        "ingested": "2022-10-11T11:56:27Z",
        "module": "elasticsearch"
    },
    "host": {
        "architecture": "x86_64",
        "containerized": false,
        "hostname": "docker-fleet-agent",
        "id": "b6bc6723e51b43959ce07f0c3105c72d",
        "ip": [
            "192.168.0.7"
        ],
        "mac": [
            "02-42-C0-A8-00-07"
        ],
        "name": "docker-fleet-agent",
        "os": {
            "codename": "focal",
            "family": "debian",
            "kernel": "5.10.124-linuxkit",
            "name": "Ubuntu",
            "platform": "ubuntu",
            "type": "linux",
            "version": "20.04.5 LTS (Focal Fossa)"
        }
    },
    "metricset": {
        "name": "node",
        "period": 10000
    },
    "service": {
        "address": "http://elastic-package-service-elasticsearch-1:9200",
        "name": "elasticsearch",
        "type": "elasticsearch"
    }
}

Exported fields

FieldDescriptionType
@timestamp
Date/time when the event originated. This is the date/time extracted from the event, typically representing when the event was generated by the source. If the event source has no original timestamp, this value is typically populated by the first time the event was received by the pipeline. Required field for all events.
date
cluster_uuid
alias
data_stream.dataset
Data stream dataset.
constant_keyword
data_stream.namespace
Data stream namespace.
constant_keyword
data_stream.type
Data stream type.
constant_keyword
ecs.version
ECS version this event conforms to. ecs.version is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events.
keyword
elasticsearch.cluster.id
Elasticsearch cluster id.
keyword
elasticsearch.cluster.name
Elasticsearch cluster name.
keyword
elasticsearch.cluster.state.id
Elasticsearch state id.
keyword
elasticsearch.node.id
Node ID
keyword
elasticsearch.node.jvm.memory.heap.init.bytes
Heap init used by the JVM in bytes.
long
elasticsearch.node.jvm.memory.heap.max.bytes
Heap max used by the JVM in bytes.
long
elasticsearch.node.jvm.memory.nonheap.init.bytes
Non-Heap init used by the JVM in bytes.
long
elasticsearch.node.jvm.memory.nonheap.max.bytes
Non-Heap max used by the JVM in bytes.
long
elasticsearch.node.jvm.version
JVM version.
keyword
elasticsearch.node.master
Is the node the master node?
boolean
elasticsearch.node.mlockall
Is mlockall enabled on the node?
boolean
elasticsearch.node.name
Node name.
keyword
elasticsearch.node.process.mlockall
If process locked in memory.
boolean
elasticsearch.node.version
Node version.
keyword
error.message
Error message.
match_only_text
event.dataset
Name of the dataset. If an event source publishes more than one type of log or events (e.g. access log, error log), the dataset is used to specify which one the event comes from. It's recommended but not required to start the dataset name with the module name, followed by a dot, then the dataset name.
keyword
event.duration
Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time.
long
event.module
Name of the module this data is coming from. If your monitoring agent supports the concept of modules or plugins to process events of a given source (e.g. Apache logs), event.module should contain the name of this module.
keyword
host.name
Name of the host. It can contain what hostname returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use.
keyword
service.address
Service address
keyword
service.name
Name of the service data is collected from. The name of the service is normally user given. This allows for distributed services that run on multiple hosts to correlate the related instances based on the name. In the case of Elasticsearch the service.name could contain the cluster name. For Beats the service.name is by default a copy of the service.type field if no name is specified.
keyword
service.type
The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, service.type would be elasticsearch.
keyword
source_node.name
alias
source_node.uuid
alias
timestamp
alias

Node stats

node_stats interrogates the Cluster API endpoint of Elasticsearch to get the cluster nodes statistics. The data received is only for the local node so the Agent has to be run on each Elasticsearch node.

NOTE: The indices stats are node-specific. That means for example the total number of docs reported by all nodes together is not the total number of documents in all indices as there can also be replicas.

An example event for node_stats looks as following:

{
    "@timestamp": "2022-10-11T11:57:35.777Z",
    "agent": {
        "ephemeral_id": "7047b7d7-b0f6-412b-a884-19c38671acf5",
        "id": "79e48fe3-2ecd-4021-aed5-6e7e69d47606",
        "name": "docker-fleet-agent",
        "type": "metricbeat",
        "version": "8.5.0"
    },
    "data_stream": {
        "dataset": "elasticsearch.stack_monitoring.node_stats",
        "namespace": "ep",
        "type": "metrics"
    },
    "ecs": {
        "version": "8.0.0"
    },
    "elastic_agent": {
        "id": "79e48fe3-2ecd-4021-aed5-6e7e69d47606",
        "snapshot": true,
        "version": "8.5.0"
    },
    "elasticsearch": {
        "cluster": {
            "id": "B5rNc3YpQmOqmNZfHhzkJA",
            "name": "elasticsearch"
        },
        "node": {
            "id": "sq5jNvxiTeeZd-I0BQd9Sw",
            "master": true,
            "mlockall": false,
            "name": "c43ca5aa412b",
            "stats": {
                "fs": {
                    "io_stats": {},
                    "summary": {
                        "available": {
                            "bytes": 160930217984
                        },
                        "free": {
                            "bytes": 170825355264
                        },
                        "total": {
                            "bytes": 194136477696
                        }
                    },
                    "total": {
                        "available_in_bytes": 160930217984,
                        "total_in_bytes": 194136477696
                    }
                },
                "indexing_pressure": {
                    "memory": {
                        "current": {
                            "all": {
                                "bytes": 0
                            },
                            "combined_coordinating_and_primary": {
                                "bytes": 0
                            },
                            "coordinating": {
                                "bytes": 0
                            },
                            "primary": {
                                "bytes": 0
                            },
                            "replica": {
                                "bytes": 0
                            }
                        },
                        "limit_in_bytes": 107374182,
                        "total": {
                            "all": {
                                "bytes": 12781
                            },
                            "combined_coordinating_and_primary": {
                                "bytes": 12781
                            },
                            "coordinating": {
                                "bytes": 12781,
                                "rejections": 0
                            },
                            "primary": {
                                "bytes": 14421,
                                "rejections": 0
                            },
                            "replica": {
                                "bytes": 0,
                                "rejections": 0
                            }
                        }
                    }
                },
                "indices": {
                    "bulk": {
                        "avg_size": {
                            "bytes": 164
                        },
                        "avg_time": {
                            "ms": 3
                        },
                        "operations": {
                            "total": {
                                "count": 12
                            }
                        },
                        "total_size": {
                            "bytes": 9293
                        },
                        "total_time": {
                            "ms": 277
                        }
                    },
                    "docs": {
                        "count": 18,
                        "deleted": 1
                    },
                    "fielddata": {
                        "memory": {
                            "bytes": 0
                        }
                    },
                    "indexing": {
                        "index_time": {
                            "ms": 46
                        },
                        "index_total": {
                            "count": 19
                        },
                        "throttle_time": {
                            "ms": 0
                        }
                    },
                    "query_cache": {
                        "memory": {
                            "bytes": 0
                        }
                    },
                    "request_cache": {
                        "memory": {
                            "bytes": 0
                        }
                    },
                    "search": {
                        "query_time": {
                            "ms": 20
                        },
                        "query_total": {
                            "count": 16
                        }
                    },
                    "segments": {
                        "count": 10,
                        "doc_values": {
                            "memory": {
                                "bytes": 0
                            }
                        },
                        "fixed_bit_set": {
                            "memory": {
                                "bytes": 144
                            }
                        },
                        "index_writer": {
                            "memory": {
                                "bytes": 0
                            }
                        },
                        "memory": {
                            "bytes": 0
                        },
                        "norms": {
                            "memory": {
                                "bytes": 0
                            }
                        },
                        "points": {
                            "memory": {
                                "bytes": 0
                            }
                        },
                        "stored_fields": {
                            "memory": {
                                "bytes": 0
                            }
                        },
                        "term_vectors": {
                            "memory": {
                                "bytes": 0
                            }
                        },
                        "terms": {
                            "memory": {
                                "bytes": 0
                            }
                        },
                        "version_map": {
                            "memory": {
                                "bytes": 0
                            }
                        }
                    },
                    "store": {
                        "size": {
                            "bytes": 98587
                        }
                    }
                },
                "ingest": {
                    "total": {
                        "count": 0,
                        "current": 0,
                        "failed": 0,
                        "time_in_millis": 0
                    }
                },
                "jvm": {
                    "gc": {
                        "collectors": {
                            "old": {
                                "collection": {
                                    "count": 0,
                                    "ms": 0
                                }
                            },
                            "young": {
                                "collection": {
                                    "count": 8,
                                    "ms": 353
                                }
                            }
                        }
                    },
                    "mem": {
                        "heap": {
                            "max": {
                                "bytes": 1073741824
                            },
                            "used": {
                                "bytes": 471098928,
                                "pct": 43
                            }
                        }
                    }
                },
                "os": {
                    "cgroup": {
                        "cpu": {
                            "cfs": {
                                "quota": {
                                    "us": -1
                                }
                            },
                            "stat": {
                                "elapsed_periods": {
                                    "count": 0
                                },
                                "times_throttled": {
                                    "count": 0
                                }
                            }
                        },
                        "cpuacct": {
                            "usage": {
                                "ns": 37238943
                            }
                        },
                        "memory": {
                            "control_group": "/",
                            "limit": {
                                "bytes": "max"
                            },
                            "usage": {
                                "bytes": "1511895040"
                            }
                        }
                    },
                    "cpu": {
                        "load_avg": {
                            "1m": 2.85
                        }
                    }
                },
                "process": {
                    "cpu": {
                        "pct": 8
                    }
                },
                "thread_pool": {
                    "get": {
                        "queue": {
                            "count": 0
                        },
                        "rejected": {
                            "count": 0
                        }
                    },
                    "search": {
                        "queue": {
                            "count": 0
                        },
                        "rejected": {
                            "count": 0
                        }
                    },
                    "write": {
                        "queue": {
                            "count": 0
                        },
                        "rejected": {
                            "count": 0
                        }
                    }
                }
            }
        }
    },
    "event": {
        "agent_id_status": "verified",
        "dataset": "elasticsearch.stack_monitoring.node_stats",
        "duration": 105479083,
        "ingested": "2022-10-11T11:57:36Z",
        "module": "elasticsearch"
    },
    "host": {
        "architecture": "x86_64",
        "containerized": false,
        "hostname": "docker-fleet-agent",
        "id": "b6bc6723e51b43959ce07f0c3105c72d",
        "ip": [
            "192.168.0.7"
        ],
        "mac": [
            "02-42-C0-A8-00-07"
        ],
        "name": "docker-fleet-agent",
        "os": {
            "codename": "focal",
            "family": "debian",
            "kernel": "5.10.124-linuxkit",
            "name": "Ubuntu",
            "platform": "ubuntu",
            "type": "linux",
            "version": "20.04.5 LTS (Focal Fossa)"
        }
    },
    "metricset": {
        "name": "node_stats",
        "period": 10000
    },
    "service": {
        "address": "http://elastic-package-service-elasticsearch-1:9200",
        "name": "elasticsearch",
        "type": "elasticsearch"
    }
}

Exported fields

FieldDescriptionType
@timestamp
Date/time when the event originated. This is the date/time extracted from the event, typically representing when the event was generated by the source. If the event source has no original timestamp, this value is typically populated by the first time the event was received by the pipeline. Required field for all events.
date
cluster_uuid
alias
data_stream.dataset
Data stream dataset.
constant_keyword
data_stream.namespace
Data stream namespace.
constant_keyword
data_stream.type
Data stream type.
constant_keyword
ecs.version
ECS version this event conforms to. ecs.version is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events.
keyword
elasticsearch.cluster.id
Elasticsearch cluster id.
keyword
elasticsearch.cluster.name
Elasticsearch cluster name.
keyword
elasticsearch.cluster.state.id
Elasticsearch state id.
keyword
elasticsearch.node.id
Node ID
keyword
elasticsearch.node.master
Is the node the master node?
boolean
elasticsearch.node.mlockall
Is mlockall enabled on the node?
boolean
elasticsearch.node.name
Node name.
keyword
elasticsearch.node.stats.fs.io_stats.total.operations.count
long
elasticsearch.node.stats.fs.io_stats.total.read.operations.count
long
elasticsearch.node.stats.fs.io_stats.total.write.operations.count
long
elasticsearch.node.stats.fs.summary.available.bytes
long
elasticsearch.node.stats.fs.summary.free.bytes
long
elasticsearch.node.stats.fs.summary.total.bytes
long
elasticsearch.node.stats.fs.total.available_in_bytes
long
elasticsearch.node.stats.fs.total.total_in_bytes
long
elasticsearch.node.stats.indexing_pressure.memory.current.all.bytes
long
elasticsearch.node.stats.indexing_pressure.memory.current.combined_coordinating_and_primary.bytes
long
elasticsearch.node.stats.indexing_pressure.memory.current.coordinating.bytes
long
elasticsearch.node.stats.indexing_pressure.memory.current.primary.bytes
long
elasticsearch.node.stats.indexing_pressure.memory.current.replica.bytes
long
elasticsearch.node.stats.indexing_pressure.memory.limit_in_bytes
long
elasticsearch.node.stats.indexing_pressure.memory.total.all.bytes
long
elasticsearch.node.stats.indexing_pressure.memory.total.combined_coordinating_and_primary.bytes
long
elasticsearch.node.stats.indexing_pressure.memory.total.coordinating.bytes
long
elasticsearch.node.stats.indexing_pressure.memory.total.coordinating.rejections
long
elasticsearch.node.stats.indexing_pressure.memory.total.primary.bytes
long
elasticsearch.node.stats.indexing_pressure.memory.total.primary.rejections
long
elasticsearch.node.stats.indexing_pressure.memory.total.replica.bytes
long
elasticsearch.node.stats.indexing_pressure.memory.total.replica.rejections
long
elasticsearch.node.stats.indices.bulk.avg_size.bytes
long
elasticsearch.node.stats.indices.bulk.avg_time.ms
long
elasticsearch.node.stats.indices.bulk.operations.total.count
long
elasticsearch.node.stats.indices.bulk.total_size.bytes
long
elasticsearch.node.stats.indices.bulk.total_time.ms
long
elasticsearch.node.stats.indices.docs.count
Total number of existing documents.
long
elasticsearch.node.stats.indices.docs.deleted
Total number of deleted documents.
long
elasticsearch.node.stats.indices.fielddata.memory.bytes
long
elasticsearch.node.stats.indices.indexing.index_time.ms
long
elasticsearch.node.stats.indices.indexing.index_total.count
long
elasticsearch.node.stats.indices.indexing.throttle_time.ms
long
elasticsearch.node.stats.indices.query_cache.memory.bytes
long
elasticsearch.node.stats.indices.request_cache.memory.bytes
long
elasticsearch.node.stats.indices.search.query_time.ms
long
elasticsearch.node.stats.indices.search.query_total.count
long
elasticsearch.node.stats.indices.segments.count
Total number of segments.
long
elasticsearch.node.stats.indices.segments.doc_values.memory.bytes
long
elasticsearch.node.stats.indices.segments.fixed_bit_set.memory.bytes
long
elasticsearch.node.stats.indices.segments.index_writer.memory.bytes
long
elasticsearch.node.stats.indices.segments.memory.bytes
Total size of segments in bytes.
long
elasticsearch.node.stats.indices.segments.norms.memory.bytes
long
elasticsearch.node.stats.indices.segments.points.memory.bytes
long
elasticsearch.node.stats.indices.segments.stored_fields.memory.bytes
long
elasticsearch.node.stats.indices.segments.term_vectors.memory.bytes
long
elasticsearch.node.stats.indices.segments.terms.memory.bytes
long
elasticsearch.node.stats.indices.segments.version_map.memory.bytes
long
elasticsearch.node.stats.indices.store.size.bytes
Total size of the store in bytes.
long
elasticsearch.node.stats.ingest.total.count
long
elasticsearch.node.stats.ingest.total.current
long
elasticsearch.node.stats.ingest.total.failed
long
elasticsearch.node.stats.ingest.total.time_in_millis
long
elasticsearch.node.stats.jvm.gc.collectors.old.collection.count
long
elasticsearch.node.stats.jvm.gc.collectors.old.collection.ms
long
elasticsearch.node.stats.jvm.gc.collectors.young.collection.count
long
elasticsearch.node.stats.jvm.gc.collectors.young.collection.ms
long
elasticsearch.node.stats.jvm.mem.heap.max.bytes
long
elasticsearch.node.stats.jvm.mem.heap.used.bytes
long
elasticsearch.node.stats.jvm.mem.heap.used.pct
double
elasticsearch.node.stats.jvm.mem.pools.old.max.bytes
Max bytes.
long
elasticsearch.node.stats.jvm.mem.pools.old.peak.bytes
Peak bytes.
long
elasticsearch.node.stats.jvm.mem.pools.old.peak_max.bytes
Peak max bytes.
long
elasticsearch.node.stats.jvm.mem.pools.old.used.bytes
Used bytes.
long
elasticsearch.node.stats.jvm.mem.pools.survivor.max.bytes
Max bytes.
long
elasticsearch.node.stats.jvm.mem.pools.survivor.peak.bytes
Peak bytes.
long
elasticsearch.node.stats.jvm.mem.pools.survivor.peak_max.bytes
Peak max bytes.
long
elasticsearch.node.stats.jvm.mem.pools.survivor.used.bytes
Used bytes.
long
elasticsearch.node.stats.jvm.mem.pools.young.max.bytes
Max bytes.
long
elasticsearch.node.stats.jvm.mem.pools.young.peak.bytes
Peak bytes.
long
elasticsearch.node.stats.jvm.mem.pools.young.peak_max.bytes
Peak max bytes.
long
elasticsearch.node.stats.jvm.mem.pools.young.used.bytes
Used bytes.
long
elasticsearch.node.stats.os.cgroup.cpu.cfs.quota.us
long
elasticsearch.node.stats.os.cgroup.cpu.stat.elapsed_periods.count
long
elasticsearch.node.stats.os.cgroup.cpu.stat.time_throttled.ns
long
elasticsearch.node.stats.os.cgroup.cpu.stat.times_throttled.count
long
elasticsearch.node.stats.os.cgroup.cpuacct.usage.ns
long
elasticsearch.node.stats.os.cgroup.memory.control_group
keyword
elasticsearch.node.stats.os.cgroup.memory.limit.bytes
keyword
elasticsearch.node.stats.os.cgroup.memory.usage.bytes
keyword
elasticsearch.node.stats.os.cpu.load_avg.1m
half_float
elasticsearch.node.stats.process.cpu.pct
double
elasticsearch.node.stats.thread_pool.bulk.queue.count
long
elasticsearch.node.stats.thread_pool.bulk.rejected.count
long
elasticsearch.node.stats.thread_pool.force_merge.queue.count
long
elasticsearch.node.stats.thread_pool.force_merge.rejected.count
long
elasticsearch.node.stats.thread_pool.get.queue.count
long
elasticsearch.node.stats.thread_pool.get.rejected.count
long
elasticsearch.node.stats.thread_pool.index.queue.count
long
elasticsearch.node.stats.thread_pool.index.rejected.count
long
elasticsearch.node.stats.thread_pool.search.queue.count
long
elasticsearch.node.stats.thread_pool.search.rejected.count
long
elasticsearch.node.stats.thread_pool.write.queue.count
long
elasticsearch.node.stats.thread_pool.write.rejected.count
long
error.message
Error message.
match_only_text
event.dataset
Name of the dataset. If an event source publishes more than one type of log or events (e.g. access log, error log), the dataset is used to specify which one the event comes from. It's recommended but not required to start the dataset name with the module name, followed by a dot, then the dataset name.
keyword
event.duration
Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time.
long
event.module
Name of the module this data is coming from. If your monitoring agent supports the concept of modules or plugins to process events of a given source (e.g. Apache logs), event.module should contain the name of this module.
keyword
host.name
Name of the host. It can contain what hostname returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use.
keyword
node_stats.fs.io_stats.total.operations
alias
node_stats.fs.io_stats.total.read_operations
alias
node_stats.fs.io_stats.total.write_operations
alias
node_stats.fs.summary.available.bytes
alias
node_stats.fs.summary.total.bytes
alias
node_stats.fs.total.available_in_bytes
alias
node_stats.fs.total.total_in_bytes
alias
node_stats.indices.docs.count
alias
node_stats.indices.fielddata.memory_size_in_bytes
alias
node_stats.indices.indexing.index_time_in_millis
alias
node_stats.indices.indexing.index_total
alias
node_stats.indices.indexing.throttle_time_in_millis
alias
node_stats.indices.query_cache.memory_size_in_bytes
alias
node_stats.indices.request_cache.memory_size_in_bytes
alias
node_stats.indices.search.query_time_in_millis
alias
node_stats.indices.search.query_total
alias
node_stats.indices.segments.count
alias
node_stats.indices.segments.doc_values_memory_in_bytes
alias
node_stats.indices.segments.fixed_bit_set_memory_in_bytes
alias
node_stats.indices.segments.index_writer_memory_in_bytes
alias
node_stats.indices.segments.memory_in_bytes
alias
node_stats.indices.segments.norms_memory_in_bytes
alias
node_stats.indices.segments.points_memory_in_bytes
alias
node_stats.indices.segments.stored_fields_memory_in_bytes
alias
node_stats.indices.segments.term_vectors_memory_in_bytes
alias
node_stats.indices.segments.terms_memory_in_bytes
alias
node_stats.indices.segments.version_map_memory_in_bytes
alias
node_stats.indices.store.size.bytes
alias
node_stats.indices.store.size_in_bytes
alias
node_stats.jvm.gc.collectors.old.collection_count
alias
node_stats.jvm.gc.collectors.old.collection_time_in_millis
alias
node_stats.jvm.gc.collectors.young.collection_count
alias
node_stats.jvm.gc.collectors.young.collection_time_in_millis
alias
node_stats.jvm.mem.heap_max_in_bytes
alias
node_stats.jvm.mem.heap_used_in_bytes
alias
node_stats.jvm.mem.heap_used_percent
alias
node_stats.node_id
alias
node_stats.os.cgroup.cpu.cfs_quota_micros
alias
node_stats.os.cgroup.cpu.stat.number_of_elapsed_periods
alias
node_stats.os.cgroup.cpu.stat.number_of_times_throttled
alias
node_stats.os.cgroup.cpu.stat.time_throttled_nanos
alias
node_stats.os.cgroup.cpuacct.usage_nanos
alias
node_stats.os.cgroup.memory.control_group
alias
node_stats.os.cgroup.memory.limit_in_bytes
alias
node_stats.os.cgroup.memory.usage_in_bytes
alias
node_stats.os.cpu.load_average.1m
alias
node_stats.process.cpu.percent
alias
node_stats.thread_pool.bulk.queue
alias
node_stats.thread_pool.bulk.rejected
alias
node_stats.thread_pool.get.queue
alias
node_stats.thread_pool.get.rejected
alias
node_stats.thread_pool.index.queue
alias
node_stats.thread_pool.index.rejected
alias
node_stats.thread_pool.search.queue
alias
node_stats.thread_pool.search.rejected
alias
node_stats.thread_pool.write.queue
alias
node_stats.thread_pool.write.rejected
alias
service.address
Service address
keyword
service.name
Name of the service data is collected from. The name of the service is normally user given. This allows for distributed services that run on multiple hosts to correlate the related instances based on the name. In the case of Elasticsearch the service.name could contain the cluster name. For Beats the service.name is by default a copy of the service.type field if no name is specified.
keyword
service.type
The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, service.type would be elasticsearch.
keyword
source_node.name
alias
source_node.uuid
alias
timestamp
alias

Pending tasks

An example event for pending_tasks looks as following:

{
    "agent": {
        "name": "docker-fleet-agent",
        "id": "f11de143-c31c-49a2-8756-83697dbabe0f",
        "ephemeral_id": "3469da57-3138-4702-abc6-8b95e081fc12",
        "type": "metricbeat",
        "version": "8.5.0"
    },
    "@timestamp": "2022-09-21T16:00:34.116Z",
    "elasticsearch": {
        "cluster": {
            "name": "elasticsearch",
            "id": "N9ZLPL5RQHS67eZBrujPYg"
        },
        "pending_tasks": {
            "time_in_queue.ms": 50,
            "source": "create-index [foo-bar-1663776034], cause [api]",
            "priority": "URGENT",
            "insert_order": 3272
        }
    },
    "ecs": {
        "version": "8.0.0"
    },
    "service": {
        "address": "https://elasticsearch:9200",
        "name": "elasticsearch",
        "type": "elasticsearch"
    },
    "data_stream": {
        "namespace": "default",
        "type": "metrics",
        "dataset": "elasticsearch.stack_monitoring.pending_tasks"
    },
    "elastic_agent": {
        "id": "f11de143-c31c-49a2-8756-83697dbabe0f",
        "version": "8.5.0",
        "snapshot": true
    },
    "host": {
        "hostname": "docker-fleet-agent",
        "os": {
            "kernel": "5.10.47-linuxkit",
            "codename": "focal",
            "name": "Ubuntu",
            "family": "debian",
            "type": "linux",
            "version": "20.04.5 LTS (Focal Fossa)",
            "platform": "ubuntu"
        },
        "containerized": true,
        "ip": [
            "172.28.0.7"
        ],
        "name": "docker-fleet-agent",
        "id": "f1eefc91053740c399ff6f1cd52c37bb",
        "mac": [
            "02-42-AC-1C-00-07"
        ],
        "architecture": "x86_64"
    },
    "metricset": {
        "period": 10000,
        "name": "pending_tasks"
    },
    "event": {
        "duration": 4546300,
        "agent_id_status": "verified",
        "ingested": "2022-09-21T16:00:35Z",
        "module": "elasticsearch",
        "dataset": "elasticsearch.stack_monitoring.pending_tasks"
    }
}

Exported fields

FieldDescriptionType
@timestamp
Date/time when the event originated. This is the date/time extracted from the event, typically representing when the event was generated by the source. If the event source has no original timestamp, this value is typically populated by the first time the event was received by the pipeline. Required field for all events.
date
cluster_uuid
alias
data_stream.dataset
Data stream dataset.
constant_keyword
data_stream.namespace
Data stream namespace.
constant_keyword
data_stream.type
Data stream type.
constant_keyword
ecs.version
ECS version this event conforms to. ecs.version is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events.
keyword
elasticsearch.cluster.id
Elasticsearch cluster id.
keyword
elasticsearch.cluster.name
Elasticsearch cluster name.
keyword
elasticsearch.cluster.state.id
Elasticsearch state id.
keyword
elasticsearch.node.id
Node ID
keyword
elasticsearch.node.master
Is the node the master node?
boolean
elasticsearch.node.mlockall
Is mlockall enabled on the node?
boolean
elasticsearch.node.name
Node name.
keyword
elasticsearch.pending_tasks.insert_order
Insert order
long
elasticsearch.pending_tasks.priority
Priority
keyword
elasticsearch.pending_tasks.source
Source. For example: put-mapping
keyword
elasticsearch.pending_tasks.time_in_queue.ms
Time in queue
long
error.message
Error message.
match_only_text
event.dataset
Name of the dataset. If an event source publishes more than one type of log or events (e.g. access log, error log), the dataset is used to specify which one the event comes from. It's recommended but not required to start the dataset name with the module name, followed by a dot, then the dataset name.
keyword
event.duration
Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time.
long
event.module
Name of the module this data is coming from. If your monitoring agent supports the concept of modules or plugins to process events of a given source (e.g. Apache logs), event.module should contain the name of this module.
keyword
host.name
Name of the host. It can contain what hostname returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use.
keyword
service.address
Service address
keyword
service.name
Name of the service data is collected from. The name of the service is normally user given. This allows for distributed services that run on multiple hosts to correlate the related instances based on the name. In the case of Elasticsearch the service.name could contain the cluster name. For Beats the service.name is by default a copy of the service.type field if no name is specified.
keyword
service.type
The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, service.type would be elasticsearch.
keyword
source_node.name
alias
source_node.uuid
alias
timestamp
alias

Shard

shard interrogates the Cluster State API endpoint to fetch information about all shards.

An example event for shard looks as following:

{
    "@timestamp": "2022-10-11T12:00:04.109Z",
    "agent": {
        "ephemeral_id": "ff5b976d-76c5-46ff-8ca0-b78828af3950",
        "id": "79e48fe3-2ecd-4021-aed5-6e7e69d47606",
        "name": "docker-fleet-agent",
        "type": "metricbeat",
        "version": "8.5.0"
    },
    "data_stream": {
        "dataset": "elasticsearch.stack_monitoring.shard",
        "namespace": "ep",
        "type": "metrics"
    },
    "ecs": {
        "version": "8.0.0"
    },
    "elastic_agent": {
        "id": "79e48fe3-2ecd-4021-aed5-6e7e69d47606",
        "snapshot": true,
        "version": "8.5.0"
    },
    "elasticsearch": {
        "cluster": {
            "id": "rOwlC3lOTzC64KncMOKXkA",
            "name": "elasticsearch",
            "state": {
                "id": "wYk2RYBFT4K4m91iKD2rJQ"
            },
            "stats": {
                "state": {
                    "state_uuid": "wYk2RYBFT4K4m91iKD2rJQ"
                }
            }
        },
        "index": {
            "name": ".ml-anomalies-custom-test-job1"
        },
        "node": {
            "id": "66VKJaFeRDOIwmKcAcvnlA",
            "name": "3d0712405273"
        },
        "shard": {
            "number": 0,
            "primary": true,
            "relocating_node": {},
            "source_node": {
                "name": "3d0712405273",
                "uuid": "66VKJaFeRDOIwmKcAcvnlA"
            },
            "state": "STARTED"
        }
    },
    "event": {
        "agent_id_status": "verified",
        "dataset": "elasticsearch.stack_monitoring.shard",
        "duration": 80668875,
        "ingested": "2022-10-11T12:00:05Z",
        "module": "elasticsearch"
    },
    "host": {
        "architecture": "x86_64",
        "containerized": false,
        "hostname": "docker-fleet-agent",
        "id": "b6bc6723e51b43959ce07f0c3105c72d",
        "ip": [
            "192.168.0.7"
        ],
        "mac": [
            "02-42-C0-A8-00-07"
        ],
        "name": "docker-fleet-agent",
        "os": {
            "codename": "focal",
            "family": "debian",
            "kernel": "5.10.124-linuxkit",
            "name": "Ubuntu",
            "platform": "ubuntu",
            "type": "linux",
            "version": "20.04.5 LTS (Focal Fossa)"
        }
    },
    "metricset": {
        "name": "shard",
        "period": 10000
    },
    "service": {
        "address": "http://elastic-package-service-elasticsearch-1:9200",
        "type": "elasticsearch"
    }
}

Exported fields

FieldDescriptionType
@timestamp
Date/time when the event originated. This is the date/time extracted from the event, typically representing when the event was generated by the source. If the event source has no original timestamp, this value is typically populated by the first time the event was received by the pipeline. Required field for all events.
date
cluster_uuid
alias
data_stream.dataset
Data stream dataset.
constant_keyword
data_stream.namespace
Data stream namespace.
constant_keyword
data_stream.type
Data stream type.
constant_keyword
ecs.version
ECS version this event conforms to. ecs.version is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events.
keyword
elasticsearch.cluster.id
Elasticsearch cluster id.
keyword
elasticsearch.cluster.name
Elasticsearch cluster name.
keyword
elasticsearch.cluster.state.id
Elasticsearch state id.
keyword
elasticsearch.cluster.stats.state.state_uuid
keyword
elasticsearch.index.name
keyword
elasticsearch.node.id
Node ID
keyword
elasticsearch.node.master
Is the node the master node?
boolean
elasticsearch.node.mlockall
Is mlockall enabled on the node?
boolean
elasticsearch.node.name
Node name.
keyword
elasticsearch.shard.number
The number of this shard.
long
elasticsearch.shard.primary
True if this is the primary shard.
boolean
elasticsearch.shard.relocating_node.id
The node the shard was relocated from. It has the exact same value than relocating_node.name for compatibility purposes.
keyword
elasticsearch.shard.relocating_node.name
The node the shard was relocated from.
keyword
elasticsearch.shard.source_node.name
keyword
elasticsearch.shard.source_node.uuid
keyword
elasticsearch.shard.state
The state of this shard.
keyword
error.message
Error message.
match_only_text
event.dataset
Name of the dataset. If an event source publishes more than one type of log or events (e.g. access log, error log), the dataset is used to specify which one the event comes from. It's recommended but not required to start the dataset name with the module name, followed by a dot, then the dataset name.
keyword
event.duration
Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time.
long
event.module
Name of the module this data is coming from. If your monitoring agent supports the concept of modules or plugins to process events of a given source (e.g. Apache logs), event.module should contain the name of this module.
keyword
host.name
Name of the host. It can contain what hostname returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use.
keyword
service.address
Service address
keyword
service.name
Name of the service data is collected from. The name of the service is normally user given. This allows for distributed services that run on multiple hosts to correlate the related instances based on the name. In the case of Elasticsearch the service.name could contain the cluster name. For Beats the service.name is by default a copy of the service.type field if no name is specified.
keyword
service.type
The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, service.type would be elasticsearch.
keyword
shard.index
alias
shard.node
alias
shard.primary
alias
shard.shard
alias
shard.state
alias
source_node.name
alias
source_node.uuid
alias
timestamp
alias

Changelog

VersionDetails
1.5.0
Enhancement View pull request
Add force_merge to thread_pool node stats
1.4.3
Bug fix View pull request
Add mappings for ccr read_exceptions
1.4.2
Bug fix View pull request
Clarify that the metrics collected power the Stack Monitoring application
1.4.1
Bug fix View pull request
Fix collection of shard recovery total time
1.4.0
Enhancement View pull request
Add ingest pipeline monitoring dataset and dashboard (experimental)
1.3.0
Enhancement View pull request
Add conditional support to Elasticsearch log and metrics inputs

Enhancement View pull request
Add leader election support to Elasticsearch inputs metrics inputs
1.2.0
Enhancement View pull request
Add period variable to define polling frequency
1.2.0-preview2
Enhancement View pull request
Add GC log level
1.2.0-preview1
Enhancement View pull request
Add ssl configuration option for metricsets
1.1.0-preview1
Enhancement View pull request
Suffix stack_monitoring to the datasets

Bug fix View pull request
Align metrics mappings with metricbeat
0.3.0
Enhancement View pull request
Add scope configuration option for metricsets
0.2.2
Enhancement View pull request
Add documentation for multi-fields
0.2.1
Bug fix View pull request
Fix version mapping in the index_recovery data stream.
0.2.0
Enhancement View pull request
Update to ECS 1.12.0
0.1.0
Enhancement View pull request
initial release