elastic / beats

:tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash
https://www.elastic.co/products/beats
Other
12.16k stars 4.91k forks source link

Fix libbeat argument parsing to allow beats to be imported in other code bases. #41153

Open leehinman opened 1 day ago

leehinman commented 1 day ago

had to be reverted because of APM issues:

Also when trying to add beats to elastic-agent we discovered:

We need to rework Beats argument parsing and init calls to make libbeat both safe to import in other code bases but also provide guidance for APM to use the modified code correctly.

Locations that need updating:

libbeat

filebeat

metricbeat

packetbeat

x-pack

elasticmachine commented 1 day ago

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)