Where can I find OneAgent files and logs?

You may at some point want to access the installed agent binaries, configuration files, and log files (for example, for support purposes). Here's where you can find these files.

By default your Dynatrace OneAgent is installed in the following directory:

  • On 64-bit Windows C:\Program Files (x86)\dynatrace\oneagent
  • On 32-bit Windows C:\Program Files\dynatrace\oneagent
  • On Linux /opt/dynatrace/oneagent

Exception for versions 102 and earlier

Log files

Log files are stored by default:

  • On Linux at /opt/dynatrace/oneagent/log
  • On 64-bit Windows at C:\Program Files (x86)\dynatrace\oneagent\log
  • On 32-bit Windows at C:\Program Files\dynatrace\oneagent\log
  • On Azure
    • at D:\home\data\dynatrace\log
    • and D:\home\SiteExtensions\Dynatrace\log.txt
  • On Cloud Foundry Java at <path-to-app-container>/.java-buildpack/ruxit_agent. Please note you can stream logs in Cloud Foundry via CLI cf logs app-name

Logging for iOS

You can enable logging for iOS in Info.plist or Dynatrace.plist. When running the app, you'll find the log in Xcode within the console of the Debug area:

<key>DTXLogLevel</key>
<string>FINER</string>

Available log levels are ALL, FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE, OFF.

Logging for Android

To instrument using Gradle, add agentProperties 'DTXLogLevel':'debug' to the Dynatrace configuration.

To instrument with instrument.sh/instrument.cmd, add DTXLogLevel=debug to your Dynatrace.properties file.

How to receive the debug log from an app when DTXLogLevel=debug is enabled:

  • Connect the device to your PC (or run the emulator). Check that your device is setup for development.
  • Launch the command prompt/terminal.
  • Run abd shell logcat > MyAndroidAppLog.txt For details, see Logcat.
  • Launch the instrumented app with the new debug flags.