Azure / azure-linux-extensions

Linux Virtual Machine Extensions for Azure
Apache License 2.0
306 stars 253 forks source link

Enabling GuestAgent Logging #1880

Closed arisettisanjana closed 7 months ago

arisettisanjana commented 7 months ago

Currently only backup initiated extension logs (of only last successful retry of one run) are sent to Kusto -TraceLogMessages. RestorePoint initiated extension job's logs are not available in Kusto. To obtain logs of each extension run, we utilize the event logging feature provided by Guest Agent, push extension telemetry to AzCore Kusto cluster's fa database. So, this feature was previously disabled as we have seen a regression, reactivating the logging functionality through the guest agent by removing the asynchronous programming logic (which still can be triggered based on the config flag) that triggered the event every 10 seconds to capture the logs.

iamashwani-who commented 7 months ago

Can you please update the description to add more details about what is the theory and why are trying this out?

deveshjagwani commented 7 months ago

Can you please update the description to add more details about what is the theory and why are trying this out?

+1 to Ashwani's comment. Please add detailed description, its effects, testing, etc.

deveshjagwani commented 7 months ago

Is it possible to test this change somehow end-to-end internally ? I am looking for some form of testing.

arisettisanjana commented 7 months ago

yes it is possible to test this changes end-to-end, have done the testing and see the logs in Kusto

deveshjagwani commented 7 months ago

yes it is possible to test this changes end-to-end, have done the testing and see the logs in Kusto