Where can I find OneAgent logs on Cloud Foundry?

You may at some point want to access the installed OneAgent log files (for example, for support purposes). For full-stack Dynatrace OneAgent deployed via the BOSH add-on, log files are located at /var/vcap/data/dynatrace/oneagent/log. Log files can additionally be found at the default path /opt/dynatrace/oneagent, which is a symlink to /var/vcap/data/dynatrace/oneagent/log. Note that /var/vcap/data/dynatrace is only accessible as root (i.e., sudo -s is required).