Skip to content

Commit b71b93a

Browse files
authored
system/network: Fix interfaces filtering (#15883)
1 parent a33ecaa commit b71b93a

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

packages/system/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "2.7.1"
3+
changes:
4+
- description: Fix network data stream interface filtering by populating both legacy top-level `interfaces` and nested `network.interfaces` fields.
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/15883
27
- version: "2.7.0"
38
changes:
49
- description: Add NTP data stream.

packages/system/data_stream/network/agent/stream/stream.yml.hbs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
metricsets: ["network"]
22
period: {{period}}
3+
{{! Populate both 'interfaces' and 'network.interfaces'. Beats currently exposes 'interfaces' as a top-level field instead of nesting it under 'network', so duplicating it keeps existing Beats behavior working. Once Beats aligns on the nested field, we can drop the legacy top-level field. }}
4+
interfaces:
5+
{{#each network.interfaces}}
6+
- {{this}}
7+
{{/each}}
8+
{{! 'network.interfaces' is currently being populated for future use or compatibility, but may not be actively used by Beats yet. }}
39
network.interfaces:
410
{{#each network.interfaces}}
511
- {{this}}

packages/system/data_stream/network/manifest.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ streams:
1919
required: false
2020
show_user: true
2121
description: >
22-
List of interfaces to monitor. Will monitor all by default.
23-
22+
List of interfaces to monitor. If not set, all interfaces are monitored by default.
2423
- name: tags
2524
type: text
2625
title: Tags

packages/system/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: 3.0.2
22
name: system
33
title: System
4-
version: "2.7.0"
4+
version: "2.7.1"
55
description: Collect system logs and metrics from your servers with Elastic Agent.
66
type: integration
77
categories:

0 commit comments

Comments
 (0)