<?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 Qlik Replicate Linux - logs can work /VAR/LOG? in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Linux-logs-can-work-VAR-LOG/m-p/2524709#M14713</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Its posible in Qlik Replicate&amp;nbsp; in Linuxchange the folder&amp;nbsp;&amp;lt;datafolder&amp;gt;\data\logs to /VAR/LOG ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jul 2025 15:10:22 GMT</pubDate>
    <dc:creator>lguevara</dc:creator>
    <dc:date>2025-07-18T15:10:22Z</dc:date>
    <item>
      <title>Qlik Replicate Linux - logs can work /VAR/LOG?</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Linux-logs-can-work-VAR-LOG/m-p/2524709#M14713</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Its posible in Qlik Replicate&amp;nbsp; in Linuxchange the folder&amp;nbsp;&amp;lt;datafolder&amp;gt;\data\logs to /VAR/LOG ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 15:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Linux-logs-can-work-VAR-LOG/m-p/2524709#M14713</guid>
      <dc:creator>lguevara</dc:creator>
      <dc:date>2025-07-18T15:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate Linux - logs can work /VAR/LOG?</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Linux-logs-can-work-VAR-LOG/m-p/2524739#M14715</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/182107"&gt;@lguevara&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P data-start="99" data-end="184"&gt;Yes, there are several options available. The most stable approach is outlined below.&lt;/P&gt;
&lt;P data-start="186" data-end="326"&gt;Please stop the Qlik Replicate services first (eg systemctl stop areplicate). After completing all the necessary configurations, restart the services to apply the changes (eg systemctl start areplicate).&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1. Create the actual log destination directory&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; sudo mkdir -p /var/log/replicate&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; sudo chown attunity:attunity /var/log/replicate&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Replace &lt;EM&gt;attunity:attunity&lt;/EM&gt; with the user/group you want the service runs as.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2. Create a tmpfiles.d config file&lt;/STRONG&gt; by account "&lt;EM&gt;attunity&lt;/EM&gt;"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Create a custom file for your configuration (e.g. replog.conf):&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; vi &lt;STRONG&gt;/etc/tmpfiles.d/replog.conf&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; And add this line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &lt;FONT face="courier new,courier"&gt;L /opt/attunity/replicate/data/logs - attunity attunity - /var/log/replicate&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3. Remove any existing directory&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; This is critical — the symlink cannot be created if the directory already exists.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Backup the folder "&lt;STRONG&gt;/opt/attunity/replicate/logs&lt;/STRONG&gt;" then:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &lt;FONT face="courier new,courier"&gt;rm -rf /opt/attunity/replicate/logs&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;4. Apply the tmpfiles rules immediately&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; (by account "attunity")&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; systemd-tmpfiles --create /etc/tmpfiles.d/replog.conf&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Now &lt;STRONG&gt;/opt/attunity/replicate/logs&lt;/STRONG&gt; should be a symlink to &lt;STRONG&gt;/var/log/replicate&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;You can verify:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; ls -l /opt/attunity/replicate/logs&lt;BR /&gt;&amp;nbsp; &amp;nbsp; It Should show: logs -&amp;gt; /var/log/replicate as below:&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="john_wang_0-1752930295013.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/182203i80DDC505253DAA0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="john_wang_0-1752930295013.png" alt="john_wang_0-1752930295013.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;5. Enable persistence at boot&lt;BR /&gt;&amp;nbsp; &amp;nbsp; The rule in /etc/tmpfiles.d/replog.conf will be processed on every boot (or when tmpfiles is triggered). No additional action needed.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cleanup (Undo)&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; If you want to undo this later:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; rm /etc/tmpfiles.d/replog.conf&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; rm /opt/attunity/replicate/logs&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; (the below are optional, the folders will be created when Replicate service restart)&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; mkdir -p /opt/attunity/replicate/logs&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; chown attunity:attunity /opt/attunity/replicate/logs&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Please perform thorough acceptance testing in a lower environment before implementing the changes in the production system.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jul 2025 13:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Linux-logs-can-work-VAR-LOG/m-p/2524739#M14715</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-07-19T13:09:43Z</dc:date>
    </item>
  </channel>
</rss>

