Skip to content

Commit a6d88cb

Browse files
3ktmergify[bot]
authored andcommitted
ES index mode & codec in metricbeat (#49237)
* Add `mode` and `codec` fields to the `elasticsearch.index` metricset in Metricbeat. Update index settings retrieval and mapping to include these new fields. * Add new exported fields for Elasticsearch in Metricbeat documentation * Make update * Added fragment (cherry picked from commit 7dc72ea) # Conflicts: # CHANGELOG.asciidoc
1 parent e681fab commit a6d88cb

File tree

8 files changed

+348
-2
lines changed

8 files changed

+348
-2
lines changed

CHANGELOG.asciidoc

Lines changed: 276 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,285 @@
33
:issue: https://github.com/elastic/beats/issues/
44
:pull: https://github.com/elastic/beats/pull/
55

6+
<<<<<<< HEAD
67
[[release-notes-9.0.0]]
78
=== Beats version 9.0.0
89
https://github.com/elastic/beats/compare/v9.0.0-rc1\...v9.0.0[View commits]
10+
=======
11+
// begin 8.19.12 relnotes
12+
13+
[[release-notes-8.19.12]]
14+
=== Beats version 8.19.12
15+
16+
https://github.com/elastic/beats/compare/v8.19.11\...v8.19.12[View commits]
17+
18+
[discrete]
19+
[[security-updates-8.19.12]]
20+
==== Security updates
21+
22+
**All**
23+
24+
* Update `elastic-agent-autodiscover` to v0.10.2. https://github.com/elastic/beats/pull/48817[#48817]
25+
26+
[discrete]
27+
[[features-enhancements-8.19.12]]
28+
==== New features and enhancements
29+
30+
**Filebeat**
31+
32+
* Add support for managed identity authentication to the `azure-eventhub` input. https://github.com/elastic/beats/pull/48655[#48655] https://github.com/elastic/beats/issues/48680[#48680]
33+
* Don't print warning about small files on each file system scan. https://github.com/elastic/beats/pull/48704[#48704] https://github.com/elastic/beats/issues/45642[#45642]
34+
35+
[discrete]
36+
[[bug-fixes-8.19.12]]
37+
==== Bug fixes
38+
39+
**Elastic Agent**
40+
41+
* Fix a bug which could report an invalid number of active `otelconsumer` events. https://github.com/elastic/beats/pull/48720[#48720] https://github.com/elastic/elastic-agent/issues/12515[#12515]
42+
43+
**Filebeat**
44+
45+
* Enforce region configuration when `non_aws_bucket_name` is defined for the `awss3` input. https://github.com/elastic/beats/pull/48534[#48534] https://github.com/elastic/beats/issues/47847[#47847]
46+
* Fix an issue where the `azure-blob-storage` input was failing with the Storage Blob Data Reader RBAC role. https://github.com/elastic/beats/pull/48886[#48886] https://github.com/elastic/beats/issues/48890[#48890]
47+
48+
**Heartbeat**
49+
50+
* Add a missing dependency for Synthetics on Wolfi Docker image. https://github.com/elastic/beats/pull/48569[#48569]
51+
52+
**Metricbeat**
53+
54+
* Added `mode` and `codec` fields to the `elasticsearch.index` metricset.
55+
* Enforce configurable size limits on incoming requests for `remote_write` metricset (`max_compressed_body_bytes`, `max_decoded_body_bytes`). https://github.com/elastic/beats/pull/48218[#48218]
56+
57+
**Osquerybeat**
58+
59+
* Fix differential results using wrong data source for removed events. https://github.com/elastic/beats/pull/48438[#48438] https://github.com/elastic/beats/issues/48427[#48427]
60+
61+
**Packetbeat**
62+
63+
* Refactor the DHCPv4 parsers and fix parsing issues. The DHCP `router` field is now a list, as is specified in RFC2132. https://github.com/elastic/beats/pull/48414[#48414]
64+
* Clean up `int` overflows and array access issues in MySQL parsers. https://github.com/elastic/beats/pull/48543[#48543]
65+
* Add `int` overflow checks to the `http` parser. https://github.com/elastic/beats/pull/48563[#48563]
66+
67+
// end 8.19.12 relnotes
68+
69+
// begin 8.19.11 relnotes
70+
71+
[[release-notes-8.19.11]]
72+
=== Beats version 8.19.11
73+
74+
https://github.com/elastic/beats/compare/v8.19.10\...v8.19.11[View commits]
75+
76+
[discrete]
77+
[[bug-fixes-8.19.11]]
78+
==== Bug fixes
79+
80+
**All**
81+
82+
* Fix Windows install script to properly migrate legacy state data. https://github.com/elastic/beats/pull/48293[#48293]
83+
* Remove use of github.com/elastic/elastic-agent-client from OSS Beats. https://github.com/elastic/beats/pull/48353[#48353]
84+
85+
**Filebeat**
86+
87+
* Fix Active Directory Entity Analytics failing to fetch users when Base DN contains a group CN. https://github.com/elastic/beats/pull/48395[#48395]
88+
* Fix Filebeat goroutine leak when using `harvester_limit`. https://github.com/elastic/beats/pull/48445[#48445]
89+
90+
**Packetbeat**
91+
92+
* Add check for incorrect length values in PostgreSQL DataRow parser. https://github.com/elastic/beats/pull/47872[#47872]
93+
* Fix procfs network parsers. https://github.com/elastic/beats/pull/48428[#48428]
94+
* Fix a panic in the Thrift struct parser triggered by malformed packets. https://github.com/elastic/beats/pull/48498[#48498]
95+
* Add array access checks to SIP parser. https://github.com/elastic/beats/pull/48514[#48514]
96+
* Fix potential array access panics and infinite loops in PostgreSQL parser. https://github.com/elastic/beats/pull/48528[#48528]
97+
98+
// end 8.19.11 relnotes
99+
100+
// begin 8.19.10 relnotes
101+
102+
[[release-notes-8.19.10]]
103+
=== Beats version 8.19.10
104+
105+
https://github.com/elastic/beats/compare/v8.19.9\...v8.19.10[View commits]
106+
107+
[discrete]
108+
[[new-features-8.19.10]]
109+
==== New features
110+
111+
The 8.19.10 release adds the following new and notable features.
112+
113+
**Filebeat**
114+
115+
* Add client secret authentication method for Azure Event Hub and storage in Filebeat. https://github.com/elastic/beats/pull/47256[#47256]
116+
* Improve input error reporting to Elastic Agent, especially when pipeline configurations are incorrect. https://github.com/elastic/beats/pull/47905[#47905] https://github.com/elastic/beats/issues/45649[#45649]
117+
* Support for AMQP-over-WebSocket transport in the azure-eventhub processor v2. https://github.com/elastic/beats/pull/47956[#47956] https://github.com/elastic/beats/issues/47823[#47823]
118+
119+
[discrete]
120+
[[bug-fixes-8.19.10]]
121+
==== Bug fixes
122+
123+
**All**
124+
125+
* Add msync syscall to seccomp whitelist for BadgerDB persistent cache. https://github.com/elastic/beats/pull/48229[#48229]
126+
127+
**Metricbeat**
128+
129+
* Harden Prometheus metrics parser against panics caused by malformed input data. https://github.com/elastic/beats/pull/47914[#47914]
130+
* Add bounds checking to Zookeeper server module to prevent index-out-of-range panics. https://github.com/elastic/beats/pull/47915[#47915]
131+
* Fix panic in graphite server metricset when metric has fewer parts than template expects. https://github.com/elastic/beats/pull/47916[#47916]
132+
* Skip regions with no permission to query for AWS CloudWatch metrics. https://github.com/elastic/beats/pull/48135[#48135]
133+
134+
**Packetbeat**
135+
136+
* Fix bounds checking in MongoDB protocol parser to prevent panics. https://github.com/elastic/beats/pull/47925[#47925]
137+
138+
// end 8.19.10 relnotes
139+
140+
// begin 8.19.9 relnotes
141+
142+
[[release-notes-8.19.9]]
143+
=== Beats version 8.19.9
144+
https://github.com/elastic/beats/compare/v8.19.8\...v8.19.9[View commits]
145+
146+
[discrete]
147+
[[new-features-8.19.9]]
148+
==== New features
149+
150+
The 8.19.9 release adds the following new and notable features.
151+
152+
**All**
153+
154+
* Make beats receivers emit status for their subcomponents. https://github.com/elastic/beats/pull/48015[#48015]
155+
156+
**Metricbeat**
157+
158+
* Update Kubernetes CPU and memory metrics to use allocatable values instead of capacity values. https://github.com/elastic/beats/pull/47815[#47815]
159+
160+
**Packetbeat**
161+
162+
* Rework IP fragmentation and make it bound. https://github.com/elastic/beats/pull/47970[#47970]
163+
164+
[discrete]
165+
[[bug-fixes-8.19.9]]
166+
==== Bug fixes
167+
168+
**Filebeat**
169+
170+
* [Filestream] Ensure harvester always restarts if the file has not been fully ingested. https://github.com/elastic/beats/pull/47107[#47107] https://github.com/elastic/beats/issues/46923[#46923]
171+
* Prevent panic during startup if dissect processor has invalid field name in tokenizer. https://github.com/elastic/beats/pull/47839[#47839]
172+
173+
**Metricbeat**
174+
175+
* Improve defensive checks to prevent panics in Meraki module. https://github.com/elastic/beats/pull/47950[#47950]
176+
177+
**Packetbeat**
178+
179+
* Add bounds checking and ignore malformed RPC fragments. https://github.com/elastic/beats/pull/47803[#47803]
180+
* Verify and cap memcache UDP fragment counts. https://github.com/elastic/beats/pull/47874[#47874]
181+
182+
// end 8.19.9 relnotes
183+
184+
// begin 8.19.8 relnotes
185+
186+
[[release-notes-8.19.8]]
187+
=== Beats version 8.19.8
188+
https://github.com/elastic/beats/compare/v8.19.7\...v8.19.8[View commits]
189+
190+
[discrete]
191+
[[bug-fixes-8.19.8]]
192+
==== Bug fixes
193+
194+
**All**
195+
196+
* Fix a fatal startup error in Beats Receivers caused by truncation of long UTF-8 hostnames. https://github.com/elastic/beats/pull/47713[#47713]
197+
* Not being able to start the add_docker_metadata processor is now consistently a non-fatal error when Docker is not available. https://github.com/elastic/beats/pull/47760[#47760]
198+
199+
**Filebeat**
200+
201+
* Handle and remove BOM during JSON parsing in azureblobstorage and gcs inputs. https://github.com/elastic/beats/pull/47508[#47508]
202+
* Fixed an issue where filebeat could hang during shutdown when using the filestream input. https://github.com/elastic/beats/pull/47518[#47518]
203+
* Fix double locking in translate_ldap_attribute processor and improve logging. https://github.com/elastic/beats/pull/47585[#47585]
204+
* Fix possible data corruption in tcp, syslog and unix inputs. https://github.com/elastic/beats/pull/47618[#47618]
205+
* Skip s3 test events in filebeat s3 input. https://github.com/elastic/beats/pull/47635[#47635]
206+
207+
// end 8.19.8 relnotes
208+
209+
// begin 8.19.7 relnotes
210+
211+
[[release-notes-8.19.7]]
212+
=== Beats version 8.19.7
213+
https://github.com/elastic/beats/compare/v8.19.6\...v8.19.7[View commits]
214+
215+
[discrete]
216+
[[new-features-8.19.7]]
217+
==== New features
218+
219+
The 8.19.7 release adds the following new and notable features.
220+
221+
**Filebeat**
222+
223+
* Add data stream identification to Fleet health status updates. https://github.com/elastic/beats/pull/47229[#47229]
224+
225+
[discrete]
226+
[[bug-fixes-8.19.7]]
227+
==== Bug fixes
228+
229+
**All**
230+
231+
* Add `close` to conditional processors if underlying processors have `close` method. https://github.com/elastic/beats/pull/46653[#46653] https://github.com/elastic/beats/issues/46575[#46575]
232+
* Fix a bug where Kerberos authentication could be disabled when server supports multiple authentication types. https://github.com/elastic/beats/pull/47443[#47443] https://github.com/elastic/beats/issues/47110[#47110]
233+
234+
235+
**Filebeat**
236+
237+
* Fix potential Filebeat panic during memory queue shutdown. https://github.com/elastic/beats/pull/47248[#47248]
238+
239+
// end 8.19.7 relnotes
240+
241+
[[release-notes-8.19.6]]
242+
=== Beats version 8.19.6
243+
https://github.com/elastic/beats/compare/v8.19.5\...v8.19.6[View commits]
244+
245+
[discrete]
246+
[[enhancements-8.19.6]]
247+
==== Enhancements
248+
249+
**Metricbeat**
250+
251+
* Improve the Prometheus helper to handle multiple content types including blank and invalid headers.
252+
253+
254+
[discrete]
255+
[[bug-fixes-8.19.6]]
256+
==== Bug fixes
257+
258+
259+
**All**
260+
261+
* Prevent panic in logstash output when trying to send events while shutting down. https://github.com/elastic/beats/pull/46960[#46960]
262+
* Prevent panic in replace processor for non-string values. https://github.com/elastic/beats/pull/47009[#47009]
263+
* Autodiscover now correctly updates Kubernetes metadata on node and pod label changes. https://github.com/elastic/beats/pull/47034[#47034]
264+
* Prevent 3s startup delay when add_cloud_metadata is used with debug logs.
265+
* Update elastic-agent-system-metrics to v0.13.3.
266+
* Allows users to customize their data stream namespace to `generic`.
267+
* Add support for Kafka 4.0 in the Kafka module. https://github.com/elastic/beats/pull/47284[#47284]
268+
269+
**Filebeat**
270+
271+
* Fix defer usage for stopped status reporting. https://github.com/elastic/beats/pull/46916[#46916]
272+
273+
**Metricbeat**
274+
275+
* Fix missing AWS cloudwatch metrics with linked accounts and same dimensions. https://github.com/elastic/beats/pull/46978[#46978]
276+
* Add a fix to handle blank content-type headers in HTTP responses for Prometheus. https://github.com/elastic/beats/pull/47027[#47027]
277+
* Add pagination support to the device health metricset in the meraki module. https://github.com/elastic/beats/pull/46938[#46938]
278+
279+
// end 8.19.6 relnotes
280+
281+
[[release-notes-8.19.5]]
282+
=== Beats version 8.19.5
283+
https://github.com/elastic/beats/compare/v8.19.4\...v8.19.5[View commits]
284+
>>>>>>> 7dc72eae2 (ES index mode & codec in metricbeat (#49237))
9285

10286
==== Breaking changes
11287

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# REQUIRED
2+
# Kind can be one of:
3+
# - breaking-change: a change to previously-documented behavior
4+
# - deprecation: functionality that is being removed in a later release
5+
# - bug-fix: fixes a problem in a previous version
6+
# - enhancement: extends functionality but does not break or fix existing behavior
7+
# - feature: new functionality
8+
# - known-issue: problems that we are aware of in a given version
9+
# - security: impacts on the security of a product or a user’s deployment.
10+
# - upgrade: important information for someone upgrading from a prior version
11+
# - other: does not fit into any of the other categories
12+
kind: feature
13+
14+
# REQUIRED for all kinds
15+
# Change summary; a 80ish characters long description of the change.
16+
summary: Addition of Elasticsearch index mode and codec settings in Metricbeat index stats module.
17+
18+
# REQUIRED for breaking-change, deprecation, known-issue
19+
# Long description; in case the summary is not enough to describe the change
20+
# this field accommodate a description without length limits.
21+
# description:
22+
23+
# REQUIRED for breaking-change, deprecation, known-issue
24+
# impact:
25+
26+
# REQUIRED for breaking-change, deprecation, known-issue
27+
# action:
28+
29+
# REQUIRED for all kinds
30+
# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc.
31+
component: metricbeat
32+
33+
# AUTOMATED
34+
# OPTIONAL to manually add other PR URLs
35+
# PR URL: A link the PR that added the changeset.
36+
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
37+
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
38+
# Please provide it if you are adding a fragment for a different PR.
39+
# pr: https://github.com/owner/repo/1234
40+
41+
# AUTOMATED
42+
# OPTIONAL to manually add other issue URLs
43+
# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of).
44+
# If not present is automatically filled by the tooling with the issue linked to the PR number.
45+
# issue: https://github.com/owner/repo/1234

docs/reference/metricbeat/exported-fields-elasticsearch.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,6 +1370,14 @@ index
13701370
: type: keyword
13711371

13721372

1373+
**`elasticsearch.index.mode`**
1374+
: type: keyword
1375+
1376+
1377+
**`elasticsearch.index.codec`**
1378+
: type: keyword
1379+
1380+
13731381
**`elasticsearch.index.name`**
13741382
: Index name.
13751383

docs/reference/metricbeat/metricbeat-metricset-elasticsearch-index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ Here is an example document generated by this metricset:
170170
"tier_preference": "data_content",
171171
"creation_date": 1731657995821,
172172
"version": "8505000",
173+
"mode": "time_series",
174+
"codec": "default",
173175
"hidden": true,
174176
"shards": {
175177
"total": 1,

0 commit comments

Comments
 (0)