<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: IvyLog4jLayout - parameters</title><link>https://answers.axonivy.com/questions/4358/ivylog4jlayout-parameters</link><description>&lt;p&gt;Dear Ivy Team&lt;/p&gt;
&lt;p&gt;For REST logs (rest_client category), I would like to log the elapsed time as well as the amount of data transferred. Any tips how to configure IvyLog4jLayout ?&lt;/p&gt;
&lt;p&gt;Best regards
John&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/4358/ivylog4jlayout-parameters" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 04 Feb 2020 08:00:11 -0500</lastBuildDate><item><title>Answer by John Moser</title><link>https://answers.axonivy.com/questions/4358/ivylog4jlayout-parameters/4362</link><description>&lt;p&gt;Thank you ... but (response here because I needed to add a pic)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I don't see the entry "External REST WebService"&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/vmvm_sWi9J24.PNG"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Moser</dc:creator><pubDate>Tue, 04 Feb 2020 08:00:11 -0500</pubDate><guid>https://answers.axonivy.com/questions/4358/ivylog4jlayout-parameters/4362</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/4358/ivylog4jlayout-parameters/4359</link><description>&lt;p&gt;Hi John&lt;/p&gt;
&lt;p&gt;REST payload logs are currently limited to the features you already see in the designer. There is no summary of the content-length available when sending REST requests. But the content-length header of the response could contain valid sizes (if we're not receiving chuncked output).&lt;/p&gt;
&lt;p&gt;What is possible today is to record request/response data via JMX api and use the visualvm plugin to detect slow services. &lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/visualvm_RESTrequestResponsePayload.png"&gt;&lt;/p&gt;
&lt;p&gt;To enable request/response payload recording:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Install the 'MBean' plugin for visualvm &lt;/li&gt;
&lt;li&gt;Reboot and open the VM of your engine&lt;/li&gt;
&lt;li&gt;Switch to the 'MBean' tab&lt;/li&gt;
&lt;li&gt;Navigate to 'IvyEngine' -&amp;gt; 'External REST WebService' -&amp;gt; 'YOURAPP' -&amp;gt; 'YourEnVIROMENT' -&amp;gt; 'YOURSERVICE'&lt;/li&gt;
&lt;li&gt;set &lt;code&gt;recordRequestResponse&lt;/code&gt; to &lt;code&gt;true&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;consider raising &lt;code&gt;maxEntityBytesToRecord&lt;/code&gt; as well&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Then one could directly analyze slow calls in the &lt;code&gt;slowestCall&lt;/code&gt; composite attribute view.
Still there is no direct exposure of the payload size. But you can manually explore slowest calls....&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Tue, 04 Feb 2020 06:31:22 -0500</pubDate><guid>https://answers.axonivy.com/questions/4358/ivylog4jlayout-parameters/4359</guid></item></channel></rss>