Actions
User story #3024
closedUser story #2988: Log agent's report about failure in a dedicated logfile
[Integration] Log agent's report about failure in a dedicated logfile
Pull Request:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:
Description
Since #3018 (implementation part) is almost done, we can now begin its integration.
There's two things that must be done as integration part :
- First, add, in rudder-webapp.properties, the property defining log frequency.
The property is called : rudder.batch.reports.logInterval
only the property need to be inserted, but here it is with it commentary :#################### # Report logger ################################################################## #################### # # Non compliant reports logger. # # Non compliant reports can be logged by rudder. # A value need to be specified to determine the interval between two logger run. # A negative or 0 value means to not log reports. # rudder.batch.reports.logInterval=1
- Secondly, to keep track and persist the logger process, we need to keep the last id processed by the logger.
To do that we want to add a new table in the database containing only the last id processed.
The table name is ReportLogLastId with only one column lastId which is an integer.
The creation SQL request has been added to file Reportsschema.sql, but in case of migration that table has to be created.
I added a migration file : dbMigration-2.4-2.5-last-error-report-id.sql
pull request : https://github.com/Normation/rudder-packages/pull/7
Updated by Jonathan CLARKE about 12 years ago
We also need a logrotate configuration for this new log file.
Updated by François ARMAND about 12 years ago
- Tracker changed from User story to Enhancement
Updated by Vincent MEMBRÉ about 12 years ago
- Tracker changed from Enhancement to 6
Updated by Vincent MEMBRÉ about 12 years ago
- Description updated (diff)
- Status changed from New to Pending technical review
- Assignee changed from Matthieu CERDA to Vincent MEMBRÉ
I made a pull request for the integration part (first packaging contribution \o/)
Updated by Vincent MEMBRÉ about 12 years ago
- Assignee changed from Vincent MEMBRÉ to Jonathan CLARKE
Updated by Jonathan CLARKE about 12 years ago
- Status changed from Pending technical review to 12
All clear!
Updated by Nicolas CHARLES almost 12 years ago
- Status changed from 12 to Pending release
- % Done changed from 0 to 100
Applied in changeset commit:65b7ad03288d98362b4c198a07428c18b75fb750.
Updated by Matthieu CERDA almost 12 years ago
- Status changed from Pending release to Released
Updated by Benoît PECCATTE over 9 years ago
- Tracker changed from 6 to User story
Actions