
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
fluent-plugin-elasticsearch-stats
Advanced tools
Fluentd input plugin to fetch stats on elasticsearch.
It uses the elasticsearch following endpoints:
Fetch stats with elasticsearch, and convert stats to metrics.
Example of config
<source>
@type elasticsearch_stats
tag elastic.metrics
cluster_health true
cluster_stats false
nodes_stats false
</source>
| setting | type | default | description |
|---|---|---|---|
| tag | elasticsearch_stats | tag to emit events on | |
| urls | ["http://localhost:9200"] | list of urls to poll | |
| timeout | second | 10 | timeout for each call |
| username | username for basic authentication | ||
| password | password for basic authentication | ||
| user_agent | fluent-plugin-elasticsearch-stats | user agent for http request | |
| ca_file | file | CA cert file to use for request | |
| verify_ssl | bool | true | option to verify certificate/host |
| interval | second | 300 | interval for probe execution |
| metric_prefix | prefix for metric fields | ||
| metadata_prefix | prefix for metadata fields | ||
| timestamp_format | iso|epochmillis | iso | event timestamp format |
| event_name_separator | / | event name separator | |
| index_base_pattern | regexp | base index pattern to generate aggregated index metrics | |
| index_base_replacement | regexp replacement | \1 | base index pattern replacement to generate aggregated index metrics |
| aggregated_index_metrics_only | bool | false | for index matrics, only generate aggregated metrics |
| aggregated_index_metrics | array | [sum] | select in [avg, count, min, max, sum] |
Events from /_cluster/health?level=indices.
| setting | type | default | description |
|---|---|---|---|
| cluster_health | true|false | true | enable cluster health events collect |
| cluster_health_level | cluster|indices | cluster | details level of the health information |
| cluster_health_local | true|false | false | retrieves information from the local node only |
Events from /_cluster/stats.
| setting | type | default | description |
|---|---|---|---|
| cluster_stats | true|false | false | enable cluster stats events collect |
Events from /_nodes/stats.
| setting | type | default | description |
|---|---|---|---|
| nodes_stats | true|false | true | enable node stats events collect |
| nodes_stats_level | node|indices | node | details level for the nodes stats |
| nodes_stats_metrics | indices, os, process, jvm, thread_pool, fs, transport, http, breaker | [] |
Events from /_all/_stats.
| setting | type | default | description |
|---|---|---|---|
| indices_stats | true|false | true | enable indices stats events collect |
| indices_stats_level | cluster|indices|shards | indices | indices_stats details level |
| indices | ["_all"] | indices to collect stats on | |
| indices_stats_metrics | completion,docs,store,... | [] |
Events from /_dangling.
| setting | type | default | description |
|---|---|---|---|
| dangling | true|false | false | enable dangling events collect |
Here is the chosen status mapping to metric :
| status | value |
|---|---|
| green | 0 |
| yellow | 1 |
| red | 2 |
So through aggregation, it is still possible to identify status in time (green or not-green).
Manual install, by executing:
$ gem install fluent-plugin-elasticsearch-stats
Add to Gemfile with:
$ bundle add fluent-plugin-elasticsearch-stats
FAQs
Unknown package
We found that fluent-plugin-elasticsearch-stats demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.