willemdh
(WillemDH)
December 4, 2024, 9:35pm
1
Hello,
I tried multiple variations of WiFi to only log network metrics for my WiFi adapter and not for all the rest:
But whatever I try it keeps indexing metrics for all my interfaces. Anyone got an idea what I'm doing wrong? The docsonly show a Linux example. is it even possible with Windows to select the interface?
Tried:
WiFi
"WiFi"
[WiFi]
["WiFi"]
Willem
stephenb
(Stephen Brown)
December 4, 2024, 10:57pm
2
Hi @willemdh
First which integration is that... just the system network integration?
If so, I don't think those names are what the integration is looking for...
I would run and let it collect all the networks
Then look at system.network.name
values then use that value to filter on....
1 Like
willemdh
(WillemDH)
December 5, 2024, 6:43pm
3
Indeed just the system network integration. I actually did exactly as you suggested. The system.network.name is WiFi..
stephenb
(Stephen Brown)
December 6, 2024, 6:20am
4
Interesting I see the same behavior on my linux box... seems like perhaps a bug...
BUT as a workaround I just put in a drop_event processor
- drop_event.when.not.equals:
system.network.name: docker0
Worked.
Interesting I inspected the agent... the manifest looks correct when setting the interfaces value.
$ sudo /opt/Elastic/Agent/elastic-agent inspect
...
- data_stream:
dataset: system.network
type: metrics
id: system/metrics-system.network-bfbbe64e-818c-4e66-86f2-ff9a0b6d004b
metricsets:
- network
network:
interfaces:
- docker0 << HERE LOOKS correct not sure why not working...
period: 10s
...
1 Like
willemdh
(WillemDH)
December 6, 2024, 5:05pm
5
Hi @stephenb
I can confirm setting:
- drop_event.when.not.equals:
system.network.name: WiFi
Works.
Tx
Willem
1 Like