Hi
After upgrading from 8.6.2 to 8.7.0 this error happens all the time causing the agent/filebeat to crash and restart:
nagent | {"log.level":"error","@timestamp":"2023-04-07T12:57:29.090+0200","message":"panic: runtime error: index out of range [1] with length 0","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"udp-default","type":"udp"},"log":{"source":"udp-default"},"ecs.version":"1.6.0"}
nagent | {"log.level":"error","@timestamp":"2023-04-07T12:57:29.090+0200","message":"goroutine 160 [running]:","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"udp-default","type":"udp"},"log":{"source":"udp-default"},"ecs.version":"1.6.0"}
nagent | {"log.level":"error","@timestamp":"2023-04-07T12:57:29.091+0200","message":"github.com/elastic/beats/v7/filebeat/input/udp.procNetUDP({0xc00088d290?, 0x1, 0x1})","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"udp-default","type":"udp"},"log":{"source":"udp-default"},"ecs.version":"1.6.0"}
nagent | {"log.level":"error","@timestamp":"2023-04-07T12:57:29.091+0200","message":"github.com/elastic/beats/v7/filebeat/input/udp/input.go:271 +0x552","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"udp-default","type":"udp"},"log":{"source":"udp-default"},"ecs.version":"1.6.0"}
nagent | {"log.level":"error","@timestamp":"2023-04-07T12:57:29.091+0200","message":"github.com/elastic/beats/v7/filebeat/input/udp.(*inputMetrics).poll(0xc000762e80, {0xc00088d290, 0x1, 0x1}, 0x2020202020202020?, 0xc00088d020)","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"udp-default","type":"udp"},"log":{"source":"udp-default"},"ecs.version":"1.6.0"}
nagent | {"log.level":"error","@timestamp":"2023-04-07T12:57:29.091+0200","message":"github.com/elastic/beats/v7/filebeat/input/udp/input.go:242 +0xd1","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"udp-default","type":"udp"},"log":{"source":"udp-default"},"ecs.version":"1.6.0"}
nagent | {"log.level":"error","@timestamp":"2023-04-07T12:57:29.091+0200","message":"created by github.com/elastic/beats/v7/filebeat/input/udp.newInputMetrics","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"udp-default","type":"udp"},"log":{"source":"udp-default"},"ecs.version":"1.6.0"}
nagent | {"log.level":"error","@timestamp":"2023-04-07T12:57:29.091+0200","message":"github.com/elastic/beats/v7/filebeat/input/udp/input.go:216 +0xa70","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"udp-default","type":"udp"},"log":{"source":"udp-default"},"ecs.version":"1.6.0"}
The only UDP listener I have is from the pfSense integration which has always worked flawlessly, inlcuding at version 8.6.2. If I rollback the agent to 8.6.2 it all works well again.
I researched breaking changes and whatsoever but didn't find anything useful pointing in a new configuration direction or anything I may be missing. What could be the reason? Is this a version bug?