I get "There are no log messages to display" under Logs tab of Trace sample

I've followed [Programmatic API setup to self-attach | APM Java Agent Reference [1.x] | Elastic](https://Programmatic setup to self-attach) and I was able to see everything being tracked except the Logs tab under Trace sample. I always see "There are no log messages to display" every time I try to refresh. I don't know what I'm missing here. I was expecting the application logs would be pulled here. Please help me if there's anything I didn't get right.

logs are not automatically sent. There are a variety of ways to have logs sent to the APM server, but I suggest you start with log_sending which if it works for you is the easiest

1 Like

I added log_sending=true and checked it. unfortunately, it didn't work for me.

Can you check the agent debug output for errors?