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

Details for Windows installations

For Dynatrace OneAgent versions 102 and earlier on Windows, you’ll find installed OneAgent binaries, configuration files, and log files here:

  • On 64-bit Windows C:\Program Files (x86)\ruxit\agent

  • On 32-bit Windows C:\Program Files\ruxit\agent

Note: Installation directory paths are preserved during OneAgent auto-updates on Windows.

Details for Linux installations

For Dynatrace OneAgent versions 102 and earlier on Linux you’ll find your installed OneAgent binaries, configuration files, and log files here:

  • /opt/ruxit/agent/

Other Linux content, including outdated log files, are also retained at /opt/ruxit

Apart from the files that are installed at /opt/dynatrace/oneagent , extra files are also installed:

  • Startup scripts are installed at /etc/init.d.
  • One of the Linux OneAgent components, liboneagentproc.so, is located in the system library directory (/lib or /lib64 depending on your architecture) and is enabled at /etc/ld.so.preload.

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 with 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.