forked from letsencrypt/boulder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add log validator to integration tests (letsencrypt#4782)
For now this mainly provides an example config and confirms that log-validator can start up and shut down cleanly, as well as provide a stat indicating how many log lines it has handled. This introduces a syslog config to the boulder-tools image that will write logs to /var/log/program.log. It also tweaks the various .json config files so they have non-default syslogLevel, to ensure they actually write something for log-validator to verify.
- Loading branch information
Showing
41 changed files
with
114 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module( load="builtin:omfile" template="LELogFormat" ) | ||
|
||
template( name="LELogFormat" type="list" ) { | ||
property(name="timereported" dateFormat="rfc3339") | ||
constant(value=" ") | ||
property(name="hostname" field.delimiter="46" field.number="1") | ||
constant(value=" datacenter ") | ||
property(name="syslogseverity") | ||
constant(value=" ") | ||
property(name="syslogtag") | ||
property(name="msg" spifno1stsp="on" ) | ||
property(name="msg" droplastlf="on" ) | ||
constant(value="\n") | ||
} | ||
|
||
template( name="TmplAll" type="string" string="/var/log/%PROGRAMNAME%.log" ) | ||
|
||
action( type="omfile" dynaFile="TmplAll" ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,6 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,6 +152,6 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,6 +153,6 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,6 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,6 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"syslog": { | ||
"stdoutLevel": 7 | ||
}, | ||
"debugAddr": ":8016", | ||
"files": [ | ||
"/var/log/akamai-purger.log", | ||
"/var/log/boulder-ca.log", | ||
"/var/log/boulder-publisher.log", | ||
"/var/log/boulder-ra.log", | ||
"/var/log/boulder-sa.log", | ||
"/var/log/boulder-va.log", | ||
"/var/log/boulder-wfe2.log", | ||
"/var/log/boulder-wfe.log", | ||
"/var/log/nonce-service.log", | ||
"/var/log/ocsp-responder.log", | ||
"/var/log/ocsp-updater.log" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
}, | ||
|
||
"common": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
}, | ||
|
||
"common": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
"backdate": "1h", | ||
|
||
"syslog": { | ||
"stdoutlevel": 7, | ||
"stdoutlevel": 7 | ||
}, | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
}, | ||
|
||
"common": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,6 +120,6 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,6 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
}, | ||
|
||
"common": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 4, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
}, | ||
|
||
"common": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,7 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 4, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
}, | ||
|
||
"common": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,6 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,6 +152,6 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,6 +153,6 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,6 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,6 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"syslog": { | ||
"stdoutLevel": 7 | ||
}, | ||
"debugAddr": ":8016", | ||
"files": [ | ||
"/var/log/akamai-purger.log", | ||
"/var/log/boulder-ca.log", | ||
"/var/log/boulder-publisher.log", | ||
"/var/log/boulder-ra.log", | ||
"/var/log/boulder-sa.log", | ||
"/var/log/boulder-va.log", | ||
"/var/log/boulder-wfe2.log", | ||
"/var/log/boulder-wfe.log", | ||
"/var/log/nonce-service.log", | ||
"/var/log/ocsp-responder.log", | ||
"/var/log/ocsp-updater.log" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
"maxDBConns": 10 | ||
}, | ||
"syslog": { | ||
"stdoutLevel": 7 | ||
"stdoutLevel": 7, | ||
"syslogLevel": 7 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
}, | ||
|
||
"common": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
}, | ||
|
||
"common": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
"backdate": "1h", | ||
|
||
"syslog": { | ||
"stdoutlevel": 7, | ||
"stdoutlevel": 7 | ||
}, | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
}, | ||
|
||
"common": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,6 +118,6 @@ | |
|
||
"syslog": { | ||
"stdoutlevel": 6, | ||
"sysloglevel": 4 | ||
"sysloglevel": 6 | ||
} | ||
} |
Oops, something went wrong.