# OneAgent for application-only monitoring log files

**URL:** <https://community.dynatrace.com/t/oneagent-for-application-only-monitoring-log-files/42737>\
**Category:** Troubleshooting\
**Tags:** cloud-foundry, oneagent\
**Created:** [November 28, 2023, 1:10pm UTC](https://community.dynatrace.com/t/oneagent-for-application-only-monitoring-log-files/42737 "2023-11-28T13:10:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darynakovyrina](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/darynakovyrina/32/30846_2.png) [@darynakovyrina](https://community.dynatrace.com/u/darynakovyrina)\
**Post date:** [November 28, 2023, 1:10pm UTC](https://community.dynatrace.com/t/oneagent-for-application-only-monitoring-log-files/42737/1 "2023-11-28T13:10:00Z")

</div>

- For the Java buildpack, you can access the log files at \<path-to-app-container\>/.java-buildpack/dynatrace\_one\_agent/log.
- For the Node.js, Staticfile, PHP buildpacks, as well as the NPM module, you can access the log files at \<path-to-app-container\>/dynatrace/oneagent/log.

SpoilerIn order to stream logs, run the following command.

```auto
cf logs app-name

```
