<?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>topic Re: Where does the OneAgent store log files around custom plugins? in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/164160#M1466</link>
    <description>&lt;P&gt;hello Julius,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I deployed plugin for the first time on a host manually under plugin_deployment directory,&amp;nbsp; and trying to troubleshoot it as it is not reporting to the UI. I dont see this path&amp;nbsp;&lt;SPAN&gt;/opt/dynatrace/oneagent/log/plugin, the only directories i see under /opt/dynatrace/oneagent are&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;drwxr-xr-x 1 root root 288 Apr 12 11:06 agent&lt;BR /&gt;drwxr-xr-x 1 root root 136 Apr 8 13:10 plugin_deployment&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;However, i do see some logs under /var/log/dynatrace , but &lt;STRONG&gt;none&lt;/STRONG&gt; report on the actual working of the plugin or any debug messages i have inserted . Please advise thanks you!&lt;BR /&gt;&lt;BR /&gt;ls -alt /var/log/dynatrace/oneagent/&lt;BR /&gt;total 0&lt;BR /&gt;drwxrwxrwt 1 root dtuser 144 Apr 12 11:16 .&lt;BR /&gt;drwxrwxr-x 1 root dtuser 1422 Apr 12 11:06 loganalytics&lt;BR /&gt;drwxrwxr-x 1 root dtuser 1610 Apr 12 11:06 plugin&lt;BR /&gt;drwxrwxrwt 1 root dtuser 490 Apr 12 11:06 process&lt;BR /&gt;drwxrwxr-x 1 root dtuser 1244 Apr 12 11:06 os&lt;BR /&gt;drwxrwxr-x 1 root dtuser 902 Apr 12 11:06 network&lt;BR /&gt;drwxrwxr-x 1 root dtuser 472 Apr 12 11:06 extensions&lt;BR /&gt;drwxrwxr-x 1 root dtuser 310 Apr 12 11:06 watchdog&lt;BR /&gt;drwxrwxrwt 1 root dtuser 1188 Apr 7 13:29 sdk&lt;BR /&gt;drwxrwxr-x 1 root dtuser 178 Apr 7 13:29 installer&lt;BR /&gt;drwxrwxrwt 1 root dtuser 0 Apr 7 12:05 dumpproc&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Apr 2021 15:20:58 GMT</pubDate>
    <dc:creator>radme</dc:creator>
    <dc:date>2021-04-12T15:20:58Z</dc:date>
    <item>
      <title>Where does the OneAgent store log files around custom plugins?</title>
      <link>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/123988#M1168</link>
      <description>&lt;P&gt;I am currently working on a plugin for Tibco EMS running on Linux and trying to do some debugging. Dynatrace is accepting the plugin and everything seems ok from the GUI perspective, however no metrics are collected or displayed and I am trying to figure out why. In doing so I have been trying to locate where Dynatrace would store the logs around a OneAgent plugin. To my knowledge this should do it....&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;import&lt;/STRONG&gt; logging&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;from&lt;/STRONG&gt; ruxit.api.base_plugin &lt;STRONG&gt;import&lt;/STRONG&gt; BasePlugin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I am not finding anything. Any help would be appreciated. Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 10:58:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/123988#M1168</guid>
      <dc:creator>larry_roberts</dc:creator>
      <dc:date>2021-06-24T10:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the OneAgent store log files around custom plugins?</title>
      <link>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/123989#M1169</link>
      <description>&lt;P&gt;It's right in the log directory of the agent - /opt/dynatrace/oneagent/log/plugin&lt;BR /&gt;Here you can find the logs. It's little messy,  but typically you can find that info easily.&lt;BR /&gt;&lt;BR /&gt;For ActiveGate plugins it is /var/lib/dynatrace/remotepluginmodule/log/remoteplugin/ and logs are in separate directories for each plugin.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 06 Oct 2019 20:42:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/123989#M1169</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2019-10-06T20:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the OneAgent store log files around custom plugins?</title>
      <link>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/123990#M1170</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://answers.dynatrace.com/users/16467/view.html" nodeid="16467"&gt;@Julius L.&lt;/A&gt; I was able to finally locate them. I thought maybe I was looking at the wrong ones, but then I did find in the logs what I was looking for. Much appreciated!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Oct 2019 11:40:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/123990#M1170</guid>
      <dc:creator>larry_roberts</dc:creator>
      <dc:date>2019-10-07T11:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the OneAgent store log files around custom plugins?</title>
      <link>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/164160#M1466</link>
      <description>&lt;P&gt;hello Julius,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I deployed plugin for the first time on a host manually under plugin_deployment directory,&amp;nbsp; and trying to troubleshoot it as it is not reporting to the UI. I dont see this path&amp;nbsp;&lt;SPAN&gt;/opt/dynatrace/oneagent/log/plugin, the only directories i see under /opt/dynatrace/oneagent are&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;drwxr-xr-x 1 root root 288 Apr 12 11:06 agent&lt;BR /&gt;drwxr-xr-x 1 root root 136 Apr 8 13:10 plugin_deployment&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;However, i do see some logs under /var/log/dynatrace , but &lt;STRONG&gt;none&lt;/STRONG&gt; report on the actual working of the plugin or any debug messages i have inserted . Please advise thanks you!&lt;BR /&gt;&lt;BR /&gt;ls -alt /var/log/dynatrace/oneagent/&lt;BR /&gt;total 0&lt;BR /&gt;drwxrwxrwt 1 root dtuser 144 Apr 12 11:16 .&lt;BR /&gt;drwxrwxr-x 1 root dtuser 1422 Apr 12 11:06 loganalytics&lt;BR /&gt;drwxrwxr-x 1 root dtuser 1610 Apr 12 11:06 plugin&lt;BR /&gt;drwxrwxrwt 1 root dtuser 490 Apr 12 11:06 process&lt;BR /&gt;drwxrwxr-x 1 root dtuser 1244 Apr 12 11:06 os&lt;BR /&gt;drwxrwxr-x 1 root dtuser 902 Apr 12 11:06 network&lt;BR /&gt;drwxrwxr-x 1 root dtuser 472 Apr 12 11:06 extensions&lt;BR /&gt;drwxrwxr-x 1 root dtuser 310 Apr 12 11:06 watchdog&lt;BR /&gt;drwxrwxrwt 1 root dtuser 1188 Apr 7 13:29 sdk&lt;BR /&gt;drwxrwxr-x 1 root dtuser 178 Apr 7 13:29 installer&lt;BR /&gt;drwxrwxrwt 1 root dtuser 0 Apr 7 12:05 dumpproc&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 15:20:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/164160#M1466</guid>
      <dc:creator>radme</dc:creator>
      <dc:date>2021-04-12T15:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the OneAgent store log files around custom plugins?</title>
      <link>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/164164#M1467</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;the logs are now located in /var/log, previously they were in /opt/dynatrace/oneagent/log (default).&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Logs for OneAgent extensions are in&amp;nbsp;&lt;SPAN&gt;plugin directory, look for the&amp;nbsp;ruxitagent_pluginagent* logs.&amp;nbsp; Maybe your extension was not loaded due some misconfiguration.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 17:26:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/164164#M1467</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2021-04-12T17:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the OneAgent store log files around custom plugins?</title>
      <link>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/164171#M1469</link>
      <description>&lt;P&gt;Hi Julius,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes i did find that log , thanks for confirming it. Unfortunately parsing the entire log for the plugin no errors. Also the module is made in python and i had couple of print statements that show up well on simulator but nothing in these logs for them. This plugin was to capture zombie /defunct count on OS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Few of the initial logs below:&lt;/P&gt;&lt;P class="p1"&gt;2021-04-12 15:06:43.727 UTC [2056b8f9] info&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;[native] Plugin custom.python.zombie_plugin_host compatibility: true reason: no requiredAgentVersion specified, path: /app1/dynatrace/oneagent/plugin_deployment/custom.python.zombie_plugin_host&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;2021-04-12 15:06:43.728 UTC [2056b8f9] info&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;[native] Plugin added to newest compatible plugin collection: /app1/dynatrace/oneagent/plugin_deployment/custom.python.zombie_plugin_host&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;I am not able to get any visibility of what is going at the plugin unlike the simulator where the print statement can be seen. Any suggestion or idea on how to troubleshoot it, really appreciate it !&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;thanks again&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 18:56:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/164171#M1469</guid>
      <dc:creator>radme</dc:creator>
      <dc:date>2021-04-12T18:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the OneAgent store log files around custom plugins?</title>
      <link>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/164178#M1470</link>
      <description>&lt;P&gt;Well, first, you should not print output, I believe the stdout won't be captured. For the&amp;nbsp;&lt;SPAN&gt;requiredAgentVersion, you should add it to plugin.json, see&amp;nbsp;&lt;A href="http:// https://dynatrace.github.io/plugin-sdk/api/plugin_json_apidoc.html#plugin-configuration" target="_self"&gt;docs.&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;For printing out debug messages, you should use the logger:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;self.logger.setLevel(logging.DEBUG)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;self.logger.debug("MyMessage")&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Anyway first look at messages such as:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;2021-04-12 17:01:19.905 UTC [24eb088f] info &amp;nbsp;&amp;nbsp;&amp;nbsp;[native] 140252776462080(MainThread) - [do] Plugin loop status: time_taken: 2.0036761360242963, engines_info: ['&amp;lt;PluginEngine, meta_name:custom.python.sslcertcheck_plugin '&lt;BR /&gt;&amp;nbsp;'id:0x7f8f170b6ac8&amp;gt;, executions:0 ',&lt;BR /&gt;&amp;nbsp;'&amp;lt;PluginEngine, meta_name:ruxit.python.postgresql id:0x7f8f170c8128&amp;gt;, '&lt;BR /&gt;&amp;nbsp;'executions:0 ',&lt;BR /&gt;&amp;nbsp;'&amp;lt;PluginEngine, meta_name:ruxit.python.phpfpm id:0x7f8f170c8390&amp;gt;, '&lt;BR /&gt;&amp;nbsp;'executions:0 ',&lt;BR /&gt;&amp;nbsp;'&amp;lt;PluginEngine, meta_name:ruxit.python.mongodb id:0x7f8f170c85f8&amp;gt;, '&lt;BR /&gt;&amp;nbsp;'executions:0 ',&lt;BR /&gt;&amp;nbsp;'&amp;lt;PluginEngine, meta_name:ruxit.python.docker id:0x7f8f170c8860&amp;gt;, '&lt;BR /&gt;&amp;nbsp;'executions:1348 ',&lt;BR /&gt;&amp;nbsp;'&amp;lt;PluginEngine, meta_name:dynatrace.python.ntp id:0x7f8f170c8ac8&amp;gt;, '&lt;BR /&gt;&amp;nbsp;'executions:0 ',&lt;BR /&gt;&amp;nbsp;'&amp;lt;PluginEngine, meta_name:dynatrace.python.heartbeat id:0x7f8f170c8d30&amp;gt;, '&lt;BR /&gt;&amp;nbsp;'executions:1349 '],&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;This will show you how many times an extension query method has been executed.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 20:29:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/164178#M1470</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2021-04-12T20:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the OneAgent store log files around custom plugins?</title>
      <link>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/164183#M1471</link>
      <description>&lt;P&gt;Hi Julius,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I dont see even one execution of the custom plugin when i search for "PluginEngine". That is weird considering it says plugin added in the&amp;nbsp; ruxitagent logs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All positive messages there. I'd expect it to throw some "error" related to the custom plugin.. Nothing&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 20:56:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/164183#M1471</guid>
      <dc:creator>radme</dc:creator>
      <dc:date>2021-04-12T20:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the OneAgent store log files around custom plugins?</title>
      <link>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/173536#M1730</link>
      <description>&lt;P&gt;I found the same issue when developing my first plugin.&lt;/P&gt;&lt;P&gt;Once the plugin has been deployed, the agent will need to be stopped and started before you'll see anything in the ruxitagent.pluginagent log file. Do this by going to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;settings, monitoring overview, hosts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once stopped allow a minute or so for the plugin to stop, then allow 5-10 min after restart.&lt;/P&gt;&lt;P&gt;May be helpful for others in future.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 12:57:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Where-does-the-OneAgent-store-log-files-around-custom-plugins/m-p/173536#M1730</guid>
      <dc:creator>Ben_Harvey</dc:creator>
      <dc:date>2021-10-06T12:57:32Z</dc:date>
    </item>
  </channel>
</rss>

