summaryrefslogtreecommitdiffstats
path: root/src/formats/katello_log.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/formats/katello_log.json')
-rw-r--r--src/formats/katello_log.json48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/formats/katello_log.json b/src/formats/katello_log.json
new file mode 100644
index 0000000..750b14a
--- /dev/null
+++ b/src/formats/katello_log.json
@@ -0,0 +1,48 @@
+{
+ "$schema": "https://lnav.org/schemas/format-v1.schema.json",
+ "katello_log": {
+ "title": "Katello log format",
+ "description": "Log format used by katello and foreman as used in Satellite 6.",
+ "url": "http://theforeman.org/",
+ "regex": {
+ "log": {
+ "pattern": "^\\[\\s?(?<alert_level>\\w+)\\s(?<timestamp>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2})\\s(?<module>\\w+)\\]\\s+(?<message>.*)$"
+ }
+ },
+ "level-field": "alert_level",
+ "level": {
+ "error": "ERROR",
+ "warning": "WARN",
+ "debug": "DEBUG"
+ },
+ "value": {
+ "alert_level": {
+ "kind": "string"
+ },
+ "module": {
+ "kind": "string"
+ },
+ "message": {
+ "kind": "string"
+ }
+ },
+ "sample": [
+ {
+ "line": "[DEBUG 2015-05-20 12:22:19 main] /Stage[main]/Certs::Candlepin/Exec[create candlepin qpid exchange]/unless: Failed: ConnectError: [Errno 1] _ssl.c:504: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca",
+ "level": "debug"
+ },
+ {
+ "line": "[DEBUG 2015-05-20 12:22:19 main] Exec[create candlepin qpid exchange](provider=posix): Executing 'qpid-config --ssl-certificate /etc/pki/katello/certs/java-client.crt --ssl-key /etc/pki/katello/private/java-client.key -b 'amqps://avl248.bcc.qld.gov.au:5671' add exchange topic event --durable'",
+ "level": "debug"
+ },
+ {
+ "line": "[ERROR 2015-05-20 12:22:19 main] qpid-config --ssl-certificate /etc/pki/katello/certs/java-client.crt --ssl-key /etc/pki/katello/private/java-client.key -b 'amqps://avl248.bcc.qld.gov.au:5671' add exchange topic event --durable returned 1 instead of one of [0]",
+ "level": "error"
+ },
+ {
+ "line": "[ INFO 2015-05-20 12:22:19 main] /usr/share/ruby/vendor_ruby/puppet/util/errors.rb:104:in `fail'",
+ "level": "info"
+ }
+ ]
+ }
+} \ No newline at end of file