Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Sep 24, 2024 12:51:44 PM
Nov 22, 2021 8:57:36 AM
Starting from Qlik Replicate version "November 2021", when the logging level is set to Verbose, sections in a Replicate log file that might contain customer data will be encrypted while the rest of the log will remain in clear text, this is implemented by the enable_data_logging configuration parameter set to true by default in order to prevent customer data snippets from appearing in verbose logs.
The sample line of the task log file looks like this:
2021-11-05T15:45:11:390848 [AT_GLOBAL ]I: Logging of database data is disabled (at_logger.c:2702)
However, in some support cases, R&D may require the ability to decrypt the log in order to analyze the problem. In such cases, Qlik Support will ask you to provide the task or environment-level encryption key and corresponding task log files:
Below is the detailed steps how to enable the database data logging and decrypt a task log file with corresponding log.key files.
2021-11-05T15:59:07:969146 [AT_GLOBAL ]I: Log file encryption base "755opF/9oGw7YOx+2ma0dA==" (at_logger.c:2695)
2021-11-05T15:59:07:969146 [INFRASTRUCTURE ]I: The log level for 'TARGET_APPLY' has been changed from 'INFO' to 'VERBOSE'. (at_logger.c:2927)
2021-11-05T15:59:07:969146 [INFRASTRUCTURE ]I: The log level for 'SOURCE_CAPTURE' has been changed from 'INFO' to 'VERBOSE'. (at_logger.c:2927)
... ...
2021-11-05T16:02:21:346746 [SOURCE_CAPTURE ]V: Event of captured table 'SCOTT.KIT' (data object id '93719', object id '93719') (oradcdc_parse.c:303)
2021-11-05T16:02:21:346746 [SOURCE_CAPTURE ]V: xid [000008fb00100007] (oradcdc_parse.c:166)
2021-11-05T16:02:21:346746 [SOURCE_CAPTURE ]V: BI col 2 [5]
~uAAAABvF/duclauaOYlVdTbsCpbAiSZGsq3DIp8XyImAZjY984KVgc62Lir20Mnw1VU1V/54j/vXa4BXpyQ7rjcEPR1MtjoYnpPSeu4QSwfiUx3l}~ (oradcdc_parse.c:340)
The encryption key file (log.key file) can be used to decrypt any log that was encrypted with it, not just the log for which Qlik Support requested the encryption key file. If this is a concern, you can generate a log.key file that will only be valid for the specific log requested by Qlik Support.
To do this:
If you do not want verbose logs encrypted, open <REPLICATE_INSTALL_DIR>\bin\repctl.cfg and set the enable_data_logging parameter to false then restart the Replicate server service. Add the line if you do not see it in the file.
Products: Qlik Replicate
If you want to create "log.key" file manually, see article
I am getting following error in my linux environment :
ran the command from install bin :
[root@dc2-uvlqlkq01 bin]# ./repctl dumplog "/QlikApp_Stage/qlikqa/logs/reptask_LIOSPG_LCADM_MDW_LS.log" "/QlikApp_Stage/qlikqa/tasks/LIOSPG_LCADM_MDW_LS/log.key" > "/QlikApp_Stage/qlikqa/logs/reptask_LIOSPG_LCADM_MDW_LS_dump.log"
./repctl: error while loading shared libraries: libarepbase.so: cannot open shared object file: No such file or directory
[root@dc2-uvlqlkq01 bin]
Hi @nareshkumar
Please try running the arep_login.sh script first to ensure all the paths to the libraries are set:
source /opt/attunity/replicate/bin/arep_login.sh
Thanks,
Dana
Notes, if you try to Decrypt and your decrypted log show :
[dumplog command] Failed
command dumplog: Redundant positional argument (exit status 22)
then you need to add qualifier for the log.key
example:
~\bin>repctl dumplog "C:\deceptask_sql-2-sql.log" log_key="C:\temp\log.key" > "C:\temp\decrypted.log"