Project

General

Profile

Actions

User story #3024

closed

User story #2988: Log agent's report about failure in a dedicated logfile

[Integration] Log agent's report about failure in a dedicated logfile

Added by Vincent MEMBRÉ about 12 years ago. Updated over 9 years ago.

Status:
Released
Priority:
3
Assignee:
Jonathan CLARKE
Category:
-
Target version:
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


Subtasks 1 (0 open1 closed)

User story #3073: add logrotate configuration for "non compliant reports" logfileReleasedJonathan CLARKE2012-12-12Actions
Actions #1

Updated by Jonathan CLARKE about 12 years ago

We also need a logrotate configuration for this new log file.

Actions #2

Updated by François ARMAND almost 12 years ago

  • Tracker changed from User story to Enhancement
Actions #3

Updated by Vincent MEMBRÉ almost 12 years ago

  • Tracker changed from Enhancement to 6
Actions #4

Updated by Jonathan CLARKE almost 12 years ago

  • Target version set to 2.5.0~beta1
Actions #5

Updated by Jonathan CLARKE almost 12 years ago

  • Assignee set to Matthieu CERDA
Actions #6

Updated by Vincent MEMBRÉ almost 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/)

Actions #7

Updated by Vincent MEMBRÉ almost 12 years ago

  • Assignee changed from Vincent MEMBRÉ to Jonathan CLARKE
Actions #8

Updated by Jonathan CLARKE almost 12 years ago

  • Status changed from Pending technical review to 12

All clear!

Actions #9

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.

Actions #10

Updated by Matthieu CERDA almost 12 years ago

  • Status changed from Pending release to Released
Actions #11

Updated by Benoît PECCATTE over 9 years ago

  • Tracker changed from 6 to User story
Actions

Also available in: Atom PDF