Elastic agent log

Hi,
where to find the event log (especially the log of a standalone agent where an integration is behaving abnormally)?

The event log is in the data directory on the client which is os-specific Installation layout | Fleet and Elastic Agent Guide [8.17] | Elastic

The easiest way to get the event log on an elastic agent is to generate an agent diagnostic from fleet Monitor Elastic Agents | Fleet and Elastic Agent Guide [8.17] | Elastic