User story #3195
closed
When upgrading Rudder from 2.4 to 2.5~beta1, the logback.xml files is not updated
Added by Nicolas CHARLES almost 12 years ago.
Updated over 9 years ago.
Description
On a system that was updated from Rudder 2.4 to 2.5~beta1, the logback.xml were not upgraded
(on orch-1 I have /opt/rudder/etc/logback.xml /opt/rudder/etc/logback.xml.dpkg-old, on orch-3 I have logback.xml and logback.xml.rpmnew )
So all my expected logs are not there
Is it the expected behaviour ?
(the guy who did the upgrade doesn't remember being asked a question)
The following entries are missing in te upgraded Rudder, hence need a migration script
<property name="REPORT_DIR" value="/var/log/rudder/compliance" />
<!--
A file log appender for exploitation logs about failure reports.
-->
<appender name="REPORTLOG" class="ch.qos.logback.core.FileAppender">
<file>${REPORT_DIR}/non-compliant-reports.log</file>
<append>true</append>
<encoder>
<pattern>%msg%n</pattern>
</encoder>
</appender>
<!-- Here come non compliant reports logger -->
<logger name="non-compliant-reports" level="info" additivity="false">
<appender-ref ref="REPORTLOG" />
<!-- <appender-ref ref="REPORTSYSLOG" /> -->
<!-- comment the following appender if you don't want to have logs about non compliant reports in both stdout and reportlog -->
<appender-ref ref="STDOUT" />
</logger>
- Tracker changed from Question to 6
Logback will create the directory if the appender is properly set ( so if the upgrade is done, then logback will be able to create the directory).
The only condition for logback is to have the right to create directory in /var/log/rudder
- Status changed from New to Pending technical review
- Assignee changed from Jonathan CLARKE to Matthieu CERDA
- % Done changed from 0 to 100
Grabbin' this.
The pull request looks okay, I approve.
- Status changed from Pending technical review to Pending release
Applied in changeset commit:31a881b9a5a99920d2784fc986961ee32f0367aa.
Applied in changeset commit:cf38b2f83f116623491d9527a2598ae4dae02c80.
- Project changed from Rudder to 34
- Category deleted (
11)
- Status changed from Pending release to Released
- Project changed from 34 to Rudder
- Category set to Packaging
- Tracker changed from 6 to User story
Also available in: Atom
PDF