<?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 How to generate a trace for the HTTP requests executed by Studio in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-generate-a-trace-for-the-HTTP-requests-executed-by-Studio/ta-p/2151057</link>
    <description>&lt;DIV class="talend-tkb-migrated-content"&gt;&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;H1&gt;Question&lt;/H1&gt;

&lt;P&gt;How do you generate a trace of the HTTP requests executed by the Talend Studio without using a third-party tool?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;H1&gt;Answer&lt;/H1&gt;

&lt;P&gt;&lt;B&gt;1.&lt;/B&gt; Create a &lt;STRONG&gt;logging.properties&lt;/STRONG&gt; file (in the &lt;STRONG&gt;c:\temp&lt;/STRONG&gt; folder for example) containing the following lines:&lt;/P&gt;

&lt;PRE&gt;
.level=FINEST
handlers = java.util.logging.FileHandler
java.util.logging.FileHandler.pattern = c:/temp/debug.txt
java.util.logging.FileHandler.limit = 20480KB
java.util.logging.FileHandler.count = 10
java.util.logging.FileHandler.append = true
java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
 
&lt;/PRE&gt;

&lt;P&gt;&lt;B&gt;2.&lt;/B&gt; Create a &lt;STRONG&gt;log4j.properties&lt;/STRONG&gt; file (in the &lt;STRONG&gt;c:\temp&lt;/STRONG&gt; folder for example) containing the following lines:&lt;/P&gt;

&lt;PRE&gt;
log4j.rootLogger=INFO, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
log4j.logger.org.apache.http=DEBUG
log4j.logger.org.apache.http.wire=DEBUG&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: the trace generated does not contain all the body of the HTTP requests. If you want to log the body of the HTTP requests and responses, use a HTTP proxy, such as Fiddler.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;B&gt;3.&lt;/B&gt; Start Talend Studio&amp;nbsp; by using the following commands:&lt;/P&gt;

&lt;P&gt;On Windows : from a CMD window , execute the following 2 commands :&lt;/P&gt;

&lt;PRE class="ckeditor_codeblock"&gt;
set _JAVA_OPTIONS=-Dlog4j.debug -Dlog4j.configuration=file:"c:\temp\log4j.properties" -Djava.util.logging.config.file=c:\temp\logging.properties
Talend-Studio-win-x86_64.exe --talendDebug &amp;gt; studio_debug.txt 2&amp;gt;&amp;amp;1&lt;/PRE&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="0EM5b000007WFeh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/121524i8F0FFBD5877EA7A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0EM5b000007WFeh.png" alt="0EM5b000007WFeh.png" /&gt;&lt;/span&gt;
&lt;P&gt;&lt;BR /&gt;On Linux : from a shell terminal , execute the following 2 commands :&lt;/P&gt;

&lt;PRE class="ckeditor_codeblock"&gt;
export _JAVA_OPTIONS='-Dlog4j.debug -Dlog4j.configuration=file:"/tmp/log4j.properties" -Djava.util.logging.config.file=/tmp/logging.properties'
Talend-Studio-linux-gtk-x86_64 --talendDebug &amp;gt; studio_debug.txt 2&amp;gt;&amp;amp;1&lt;/PRE&gt;
&amp;nbsp;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;NOTE : On Linux , "adapt" the file&amp;nbsp; &lt;STRONG&gt;logging.properties :&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;
java.util.logging.FileHandler.pattern = /tmp/debug.txt

&lt;/PRE&gt;

&lt;DIV&gt;Collect the 2 files : studio_debug.txt and debug.txt&lt;/DIV&gt;
&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 06 Feb 2024 15:10:57 GMT</pubDate>
    <dc:creator>TalendSolutionExpert</dc:creator>
    <dc:date>2024-02-06T15:10:57Z</dc:date>
    <item>
      <title>How to generate a trace for the HTTP requests executed by Studio</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-generate-a-trace-for-the-HTTP-requests-executed-by-Studio/ta-p/2151057</link>
      <description>&lt;DIV class="talend-tkb-migrated-content"&gt;&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;H1&gt;Question&lt;/H1&gt;

&lt;P&gt;How do you generate a trace of the HTTP requests executed by the Talend Studio without using a third-party tool?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;H1&gt;Answer&lt;/H1&gt;

&lt;P&gt;&lt;B&gt;1.&lt;/B&gt; Create a &lt;STRONG&gt;logging.properties&lt;/STRONG&gt; file (in the &lt;STRONG&gt;c:\temp&lt;/STRONG&gt; folder for example) containing the following lines:&lt;/P&gt;

&lt;PRE&gt;
.level=FINEST
handlers = java.util.logging.FileHandler
java.util.logging.FileHandler.pattern = c:/temp/debug.txt
java.util.logging.FileHandler.limit = 20480KB
java.util.logging.FileHandler.count = 10
java.util.logging.FileHandler.append = true
java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
 
&lt;/PRE&gt;

&lt;P&gt;&lt;B&gt;2.&lt;/B&gt; Create a &lt;STRONG&gt;log4j.properties&lt;/STRONG&gt; file (in the &lt;STRONG&gt;c:\temp&lt;/STRONG&gt; folder for example) containing the following lines:&lt;/P&gt;

&lt;PRE&gt;
log4j.rootLogger=INFO, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
log4j.logger.org.apache.http=DEBUG
log4j.logger.org.apache.http.wire=DEBUG&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: the trace generated does not contain all the body of the HTTP requests. If you want to log the body of the HTTP requests and responses, use a HTTP proxy, such as Fiddler.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;B&gt;3.&lt;/B&gt; Start Talend Studio&amp;nbsp; by using the following commands:&lt;/P&gt;

&lt;P&gt;On Windows : from a CMD window , execute the following 2 commands :&lt;/P&gt;

&lt;PRE class="ckeditor_codeblock"&gt;
set _JAVA_OPTIONS=-Dlog4j.debug -Dlog4j.configuration=file:"c:\temp\log4j.properties" -Djava.util.logging.config.file=c:\temp\logging.properties
Talend-Studio-win-x86_64.exe --talendDebug &amp;gt; studio_debug.txt 2&amp;gt;&amp;amp;1&lt;/PRE&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="0EM5b000007WFeh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/121524i8F0FFBD5877EA7A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0EM5b000007WFeh.png" alt="0EM5b000007WFeh.png" /&gt;&lt;/span&gt;
&lt;P&gt;&lt;BR /&gt;On Linux : from a shell terminal , execute the following 2 commands :&lt;/P&gt;

&lt;PRE class="ckeditor_codeblock"&gt;
export _JAVA_OPTIONS='-Dlog4j.debug -Dlog4j.configuration=file:"/tmp/log4j.properties" -Djava.util.logging.config.file=/tmp/logging.properties'
Talend-Studio-linux-gtk-x86_64 --talendDebug &amp;gt; studio_debug.txt 2&amp;gt;&amp;amp;1&lt;/PRE&gt;
&amp;nbsp;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;NOTE : On Linux , "adapt" the file&amp;nbsp; &lt;STRONG&gt;logging.properties :&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;
java.util.logging.FileHandler.pattern = /tmp/debug.txt

&lt;/PRE&gt;

&lt;DIV&gt;Collect the 2 files : studio_debug.txt and debug.txt&lt;/DIV&gt;
&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Feb 2024 15:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-generate-a-trace-for-the-HTTP-requests-executed-by-Studio/ta-p/2151057</guid>
      <dc:creator>TalendSolutionExpert</dc:creator>
      <dc:date>2024-02-06T15:10:57Z</dc:date>
    </item>
  </channel>
</rss>

