<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Locate Dynatrace OneAgent Log Files on Linux for Troubleshooting in Troubleshooting</title>
    <link>https://community.dynatrace.com/t5/Troubleshooting/Locate-Dynatrace-OneAgent-Log-Files-on-Linux-for-Troubleshooting/ta-p/199684</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;&lt;EM&gt;Summary: OneAgent logs on Linux are stored under &lt;CODE&gt;/var/log/dynatrace/oneagent/&lt;/CODE&gt;. This article explains how to navigate log directories, identify relevant files, and use them for troubleshooting installation or monitoring issues.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;There are times (traditionally within containerized environments) where the agent is properly injected and running but its log file cannot be placed within the normal location on the host, i.e. &lt;FONT face="courier new,courier"&gt;/opt/dynatrace/oneagent/log&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;By using these two commands on a Linux host, or within a Linux-based container, one is able to track down where an agent's log file is being stored in case of the file not being in the expected location for either automated or manual retrieval.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;ls -l /proc/&amp;lt;PID of Process in Question&amp;gt;/fd/&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;cat /proc/&amp;lt;PID of Process in Question&amp;gt;/fd/&amp;lt;file descriptor number&amp;gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;user@host:~$ ps aux | grep tomcat7&lt;BR /&gt;techsup+ 12319 0.0 0.0 17016 2396 pts/0 S+ 14:46 0:00 grep --color=auto tomcat7&lt;BR /&gt;tomcat7 14752 0.1 1.9 3584088 79556 ? Sl Apr14 16:51 /usr/lib/jvm/default-java/bin/java -Djava.util.logging.config.file=/var/lib/tomcat7/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -classpath /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat7 -Dcatalina.home=/usr/share/tomcat7 -Djava.io.tmpdir=/tmp/tomcat7-tomcat7-tmp org.apache.catalina.startup.Bootstrap start&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;PRE&gt;user@host:~$ sudo ls -l /proc/14752/fd | grep oneagent&lt;BR /&gt;lr-x------ 1 tomcat7 tomcat7 64 Apr 22 14:27 10 -&amp;gt; /opt/dynatrace/oneagent/agent/bin/1.193.0.20200414-084245/any/java/oneagentjava.rmi.jar (deleted)&lt;BR /&gt;lr-x------ 1 tomcat7 tomcat7 64 Apr 22 14:27 11 -&amp;gt; /opt/dynatrace/oneagent/agent/bin/1.193.0.20200414-084245/any/java/oneagentjava.sql.jar (deleted)&lt;BR /&gt;lrwx------ 1 tomcat7 tomcat7 64 Apr 22 14:27 3 -&amp;gt; /opt/dynatrace/oneagent/log/java/ruxitagent_tomcat__bootstrap_14752.0.log&lt;BR /&gt;lrwx------ 1 tomcat7 tomcat7 64 Apr 22 14:27 4 -&amp;gt; /opt/dynatrace/oneagent/log/java/ruxitagent_tomcat__14752.0.log&lt;BR /&gt;lr-x------ 1 tomcat7 tomcat7 64 Apr 22 14:27 9 -&amp;gt; /opt/dynatrace/oneagent/agent/bin/1.193.0.20200414-084245/any/java/oneagentjava.jar (deleted)&lt;/PRE&gt;
&lt;P&gt;Locate the file descriptor number for the agent's log file from the output of command 1. Be on the lookout for &lt;FONT face="courier new,courier"&gt;ruxitagent_...&lt;/FONT&gt; as the start of the log file's name at the end of the directory path.&lt;/P&gt;
&lt;P&gt;Using command 2 after having both the PID of the injected or companion process as well as the correct file descriptor number for the agent log file will allow you to open up and view the contents of the agent's log; &lt;STRONG&gt;even if the output of command 1 says that the file has been (Deleted)&lt;/STRONG&gt;.&lt;/P&gt;
&lt;PRE&gt;user@host:~$ sudo cat /proc/14752/fd/4 | more # to read through the ruxitagent_tomcat__14752.0.log file&lt;/PRE&gt;
&lt;P&gt;Once you have the log file open, it can be reviewed to learn what state the OneAgent is running in (IE if its been disabled automatically upon reaching out to the server or if it's reaching out to an unexpected environment) and any other sorts of issues it is experiencing beyond being unable to write its log to the expected location.&lt;/P&gt;
&lt;P&gt;As outlined above, you would be providing the PID of the process in question, whether it be the PID of the Java process or the PID of a Go process, etc., within the container or running natively on a host.&lt;/P&gt;
&lt;UL class=""&gt;
&lt;LI&gt;Note: When it comes to the web server agents (Apache, Nginx, IIS) and looking for/into their logs, in this case, you would instead use the PID of the companion process for said Web Server if such a companion process is visible.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;After having run both commands, you have the confirmation evidence that 1) the agent is indeed injected into the app (we would not have an agent log file without injection) and 2) you should have confirmation that it's probably running into networking issues that would lead to the agent not being able to reach out to the cluster to report in its metrics. You also have evidence to show that the agent cannot properly write to the intended log file location, so the environment may have other configuration/permission level issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN data-contrast="auto"&gt;What to read next:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN data-ccp-props="{&amp;quot;134233117&amp;quot;:false,&amp;quot;134233118&amp;quot;:false,&amp;quot;335559738&amp;quot;:299,&amp;quot;335559739&amp;quot;:299}"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-contrast="auto"&gt;&lt;span class="lia-unicode-emoji" title=":open_book:"&gt;📖&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN data-ccp-props="{&amp;quot;134233117&amp;quot;:false,&amp;quot;134233118&amp;quot;:false,&amp;quot;335559738&amp;quot;:240,&amp;quot;335559739&amp;quot;:240}"&gt;&amp;nbsp;&lt;A id="link_6" class="page-link lia-link-navigation lia-custom-event" href="https://community.dynatrace.com/t5/Troubleshooting/How-to-collect-a-Support-Archive/ta-p/252022" target="_blank" rel="noopener"&gt;How to collect a Support Archive&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-contrast="auto"&gt;&lt;span class="lia-unicode-emoji" title=":open_book:"&gt;📖&lt;/span&gt;&amp;nbsp;&lt;A id="link_6" class="page-link lia-link-navigation lia-custom-event" href="https://community.dynatrace.com/t5/Troubleshooting/General-Oneagent-update-Issues-and-troubleshooting/ta-p/263154" target="_blank" rel="noopener"&gt;General Oneagent update Issues and troubleshooting&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Dec 2025 07:47:59 GMT</pubDate>
    <dc:creator>dominikus_randy</dc:creator>
    <dc:date>2025-12-09T07:47:59Z</dc:date>
    <item>
      <title>Locate Dynatrace OneAgent Log Files on Linux for Troubleshooting</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/Locate-Dynatrace-OneAgent-Log-Files-on-Linux-for-Troubleshooting/ta-p/199684</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;&lt;EM&gt;Summary: OneAgent logs on Linux are stored under &lt;CODE&gt;/var/log/dynatrace/oneagent/&lt;/CODE&gt;. This article explains how to navigate log directories, identify relevant files, and use them for troubleshooting installation or monitoring issues.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;There are times (traditionally within containerized environments) where the agent is properly injected and running but its log file cannot be placed within the normal location on the host, i.e. &lt;FONT face="courier new,courier"&gt;/opt/dynatrace/oneagent/log&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;By using these two commands on a Linux host, or within a Linux-based container, one is able to track down where an agent's log file is being stored in case of the file not being in the expected location for either automated or manual retrieval.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;ls -l /proc/&amp;lt;PID of Process in Question&amp;gt;/fd/&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;cat /proc/&amp;lt;PID of Process in Question&amp;gt;/fd/&amp;lt;file descriptor number&amp;gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;user@host:~$ ps aux | grep tomcat7&lt;BR /&gt;techsup+ 12319 0.0 0.0 17016 2396 pts/0 S+ 14:46 0:00 grep --color=auto tomcat7&lt;BR /&gt;tomcat7 14752 0.1 1.9 3584088 79556 ? Sl Apr14 16:51 /usr/lib/jvm/default-java/bin/java -Djava.util.logging.config.file=/var/lib/tomcat7/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -classpath /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat7 -Dcatalina.home=/usr/share/tomcat7 -Djava.io.tmpdir=/tmp/tomcat7-tomcat7-tmp org.apache.catalina.startup.Bootstrap start&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;PRE&gt;user@host:~$ sudo ls -l /proc/14752/fd | grep oneagent&lt;BR /&gt;lr-x------ 1 tomcat7 tomcat7 64 Apr 22 14:27 10 -&amp;gt; /opt/dynatrace/oneagent/agent/bin/1.193.0.20200414-084245/any/java/oneagentjava.rmi.jar (deleted)&lt;BR /&gt;lr-x------ 1 tomcat7 tomcat7 64 Apr 22 14:27 11 -&amp;gt; /opt/dynatrace/oneagent/agent/bin/1.193.0.20200414-084245/any/java/oneagentjava.sql.jar (deleted)&lt;BR /&gt;lrwx------ 1 tomcat7 tomcat7 64 Apr 22 14:27 3 -&amp;gt; /opt/dynatrace/oneagent/log/java/ruxitagent_tomcat__bootstrap_14752.0.log&lt;BR /&gt;lrwx------ 1 tomcat7 tomcat7 64 Apr 22 14:27 4 -&amp;gt; /opt/dynatrace/oneagent/log/java/ruxitagent_tomcat__14752.0.log&lt;BR /&gt;lr-x------ 1 tomcat7 tomcat7 64 Apr 22 14:27 9 -&amp;gt; /opt/dynatrace/oneagent/agent/bin/1.193.0.20200414-084245/any/java/oneagentjava.jar (deleted)&lt;/PRE&gt;
&lt;P&gt;Locate the file descriptor number for the agent's log file from the output of command 1. Be on the lookout for &lt;FONT face="courier new,courier"&gt;ruxitagent_...&lt;/FONT&gt; as the start of the log file's name at the end of the directory path.&lt;/P&gt;
&lt;P&gt;Using command 2 after having both the PID of the injected or companion process as well as the correct file descriptor number for the agent log file will allow you to open up and view the contents of the agent's log; &lt;STRONG&gt;even if the output of command 1 says that the file has been (Deleted)&lt;/STRONG&gt;.&lt;/P&gt;
&lt;PRE&gt;user@host:~$ sudo cat /proc/14752/fd/4 | more # to read through the ruxitagent_tomcat__14752.0.log file&lt;/PRE&gt;
&lt;P&gt;Once you have the log file open, it can be reviewed to learn what state the OneAgent is running in (IE if its been disabled automatically upon reaching out to the server or if it's reaching out to an unexpected environment) and any other sorts of issues it is experiencing beyond being unable to write its log to the expected location.&lt;/P&gt;
&lt;P&gt;As outlined above, you would be providing the PID of the process in question, whether it be the PID of the Java process or the PID of a Go process, etc., within the container or running natively on a host.&lt;/P&gt;
&lt;UL class=""&gt;
&lt;LI&gt;Note: When it comes to the web server agents (Apache, Nginx, IIS) and looking for/into their logs, in this case, you would instead use the PID of the companion process for said Web Server if such a companion process is visible.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;After having run both commands, you have the confirmation evidence that 1) the agent is indeed injected into the app (we would not have an agent log file without injection) and 2) you should have confirmation that it's probably running into networking issues that would lead to the agent not being able to reach out to the cluster to report in its metrics. You also have evidence to show that the agent cannot properly write to the intended log file location, so the environment may have other configuration/permission level issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN data-contrast="auto"&gt;What to read next:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN data-ccp-props="{&amp;quot;134233117&amp;quot;:false,&amp;quot;134233118&amp;quot;:false,&amp;quot;335559738&amp;quot;:299,&amp;quot;335559739&amp;quot;:299}"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-contrast="auto"&gt;&lt;span class="lia-unicode-emoji" title=":open_book:"&gt;📖&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN data-ccp-props="{&amp;quot;134233117&amp;quot;:false,&amp;quot;134233118&amp;quot;:false,&amp;quot;335559738&amp;quot;:240,&amp;quot;335559739&amp;quot;:240}"&gt;&amp;nbsp;&lt;A id="link_6" class="page-link lia-link-navigation lia-custom-event" href="https://community.dynatrace.com/t5/Troubleshooting/How-to-collect-a-Support-Archive/ta-p/252022" target="_blank" rel="noopener"&gt;How to collect a Support Archive&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-contrast="auto"&gt;&lt;span class="lia-unicode-emoji" title=":open_book:"&gt;📖&lt;/span&gt;&amp;nbsp;&lt;A id="link_6" class="page-link lia-link-navigation lia-custom-event" href="https://community.dynatrace.com/t5/Troubleshooting/General-Oneagent-update-Issues-and-troubleshooting/ta-p/263154" target="_blank" rel="noopener"&gt;General Oneagent update Issues and troubleshooting&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 07:47:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/Locate-Dynatrace-OneAgent-Log-Files-on-Linux-for-Troubleshooting/ta-p/199684</guid>
      <dc:creator>dominikus_randy</dc:creator>
      <dc:date>2025-12-09T07:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I locate OneAgent log files in Linux host?</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/Locate-Dynatrace-OneAgent-Log-Files-on-Linux-for-Troubleshooting/tac-p/202000#M80</link>
      <description>&lt;P&gt;great in-depth writeup on OA log files! thanks&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/15512"&gt;@dominikus_randy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 13:36:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/Locate-Dynatrace-OneAgent-Log-Files-on-Linux-for-Troubleshooting/tac-p/202000#M80</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2023-01-10T13:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I locate OneAgent log files in Linux host?</title>
      <link>https://community.dynatrace.com/t5/Troubleshooting/Locate-Dynatrace-OneAgent-Log-Files-on-Linux-for-Troubleshooting/tac-p/226446#M329</link>
      <description>&lt;P&gt;Amazing , would like to know if agent is stopped however jars references are still there in Application processes which&amp;nbsp; is creating log files even DT environment is down. how can we make sure those 4 jars(oneagentjava) files not get loaded without uninstallation of Oneagnet? can this is possible through command line?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 14:20:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Troubleshooting/Locate-Dynatrace-OneAgent-Log-Files-on-Linux-for-Troubleshooting/tac-p/226446#M329</guid>
      <dc:creator>SachinJindal</dc:creator>
      <dc:date>2023-10-24T14:20:32Z</dc:date>
    </item>
  </channel>
</rss>

