Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Nov 21, 2023 3:35:09 AM
Sep 28, 2022 5:42:14 AM
This article recommends a path on how to analyze a Qlik Replicate log.
The Qlik Replicate version appears at the first line of the log. In the example image below, the Qlik Replicate version is 2021.11 build 469 (i.e. PR06).
The name of the Qlik Replicate server and its platform type are displayed immediately after the version. In our example, the Qlik Replicate server's name is STAM.qliktech.com and it is running on a Windows platform.
If you are running an old or unsupported Qlik Replicate version or a GA release (or even an early service pack), it is likely that any defects you are experiencing are resolved in the latest version. We recommend crosschecking issues with defects fixed in our release notes.
For many problems it is important to know what type of task is being run. For example, are we lookin gat a Full load task or a CDC task?
This information will usually appear near the first lines of the log.
To locate them quckly, search for the word running.
You can also get this information from the task JDSON which is included in the task diagnostic package.
In the example below the task named ‘s-2-s’ is Full load and CDC task.
Was it started with fresh start (fig started)?
Was processing resumed (fig resumed)?
Was processing resumed from timestamp (fig resume timestamp)?
Was the task resumed after recoverying from an error (fig resume error)?
This information is relevant if a task was resumed after a recoverable error. This means you will need to look for the original error that caused the resume for recovery in the previous log file.
Every log line has a generic structure:
When starting to look at the log in order to troubleshoot a problem, it is recommended to search first for errors (you can simply search the string ]E:) and also search for warnings (you can simply search the string ]W:).
Example Error:
In the example below you can see that the task failed with a DB2 error -803 (SQL0803N) when trying to apply the insert command listed in the first line on the target endpoint (the Qlik Replicate component that generated the message is TRAGET_APPLY). Since all the lines listed in the example below belong to same Replicate thread (thread # 00053118) we can conclude that they are all related.
Example Warning:
Based on the error\warnings found in the log, you will be able to decide how to continue troubleshooting.
The logging level of a Qlik Replicate component can be changed in the task settings.
Sometimes you will need additinoal information on what action was performed by Qlik Replicate before an error occurres. For that purpose, you can turn up the Qlik Replicate logging level. For example, we may increase it to TRACE or VERBOSE for the specific Qlik Replicate component of interest. This would be the component that generated the error/warning.
For example, when turning on TRACE logging level, on SOURCE_CAPTUER and/or TARGET_APPLY, Qlik Replicate will display in the log the SQL commands that it performed to the specific endpoint. The example below shows few of the TRACE log records for SOURCE_CAPTURE when working with Oracle source end point.
Keep in mind that a detailed logging level will produce larger log files.
Great article! I have also found it helpful to search for "error" or "fail" in case an endpoint error code is not interpreted by Replicate as needing to be captured with the "]E" error notation. Also, searching for the format of an endpoint error code can be helpful, such as "ORA-" if you are using Oracle.
Thank you, this is a really helpful article.
Is there an article which describes Component Logging Categories such as FILE_FACTORY, ASSERTION, INFRASTRUCTURE and etc? It is not always obvious which category to set to TRACE/VERBOSE to analyze the issue.
For example, if I am chasing down the issue converting csv file to parquet (]E: Failed to convert file from csv to parquet) should I set FILE_FACTORY to VERBOSE or TARGET_APPLY?
Hi @eksmirnova
Yes, this is documented in our user guide: Replicate Loggers | Qlik Replicate Help
For your example, I would try File_Factory, IO and Target_Apply. If the issue happens during the full load phase of a task, rather than change processing, substitute Target_Load for Target_Apply.
Thanks,
Dana
Thank you Dana!