Project

General

Profile

Actions

User story #3018

closed

Log agent's report about failure in a dedicated logfile

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

Status:
Released
Priority:
3
Assignee:
-
Category:
System integration
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

This feature consists in having a dedicated logfile containing informations about failure reports in Rudder.

It will be based on raw reports data filtered by raw reports status : result_error, result_repaired, log_repaired, log_warn.

It will not create a new table and use RuddersysEvents table to log reports

Log format expected is [Execution date] N:nodeId(Node hostname) S:report_status R:ruleId(rule name) D:directiveId(directive name) C:component name V:keyValue message

here is an example log :

[20/nov./2012 09:41 +0100] N:root(server.rudder.local) S:result_repaired R:hasPolicyServer-root(Rudder system policy: basic setup (common)) D:common-root(Common) C:Security parameters V:None Some internal security parameters were adjusted
[20/nov./2012 09:41 +0100] N:root(server.rudder.local) S:result_repaired R:root-DP(distributePolicy) D:root-distributePolicy(Distribute Policy) C:Check WebDAV credentials V:None The Rudder WebDAV user and password were updated
[20/nov./2012 09:45 +0100] N:root(server.rudder.local) S:result_repaired R:hasPolicyServer-root(Rudder system policy: basic setup (common)) D:common-root(Common) C:Security parameters V:None Some internal security parameters were adjusted
[20/nov./2012 09:45 +0100] N:root(server.rudder.local) S:result_repaired R:root-DP(distributePolicy) D:root-distributePolicy(Distribute Policy) C:Check WebDAV credentials V:None The Rudder WebDAV user and password were updated
[20/nov./2012 09:46 +0100] N:8fee32c0-00c8-4ae8-8597-5a54a9b6a523(node1.rudder.local) S:result_error R:d0c4a57e-4715-467b-a036-a907c0d9deff(Rule42) D:87097897-95cc-4868-ab39-690b6d11076d(apache) C:apacheServer V:None Could not restart Apache HTTPD
[20/nov./2012 09:46 +0100] N:8fee32c0-00c8-4ae8-8597-5a54a9b6a523(node1.rudder.local) S:result_error R:d0c4a57e-4715-467b-a036-a907c0d9deff(Rule42) D:87097897-95cc-4868-ab39-690b6d11076d(apache) C:apacheServer V:None Apache binary is not present. Something is wrong (installation failure ?)

This is the implementation part of #2988

pull request : https://github.com/Normation/rudder/pull/34

Actions

Also available in: Atom PDF