Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
RDS severity description (#41)
Browse files Browse the repository at this point in the history
* description added

* more human readable description

* add information about mysql

* add severity cover databases from RDS
  • Loading branch information
karolkieglerski authored Aug 27, 2021
1 parent b18fd84 commit 16ef6ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/config/rds.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
},
{
"key": "severity",
"description": "If a field log_type equal postgresql then will check in log_content for :WARNING: or :ERROR: and set correct else INFO, else if not postgresql (mysql, mariadb) then the same approach but will check in log_content for [Warning] or [Error] and set correct else INFO",
"pattern": "if(log_type == 'postgresql', &if(contains(log_content, ':WARNING:'), &'WARNING', &if(contains(log_content, ':ERROR:'), &'ERROR', &'INFO', @), @), &if(contains(log_content, '[Warning]'), &'WARNING', &if(contains(log_content, '[Error]'), &'ERROR', &null, @), @), @)",
"priority": 12
},
Expand Down
3 changes: 2 additions & 1 deletion src/config/rds_aurora.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
},
{
"key": "severity",
"description": "If a field log_type equal postgresql then will check in log_content for :WARNING: or :ERROR: and set correct else INFO, else will check for aurora mysql the same approach but will check in log_content for [Warning] or [Error] and set correct else INFO",
"pattern": "if(log_type == 'postgresql', &if(contains(log_content, ':WARNING:'), &'WARNING', &if(contains(log_content, ':ERROR:'), &'ERROR', &'INFO', @), @), &if(contains(log_content, '[Warning]'), &'WARNING', &if(contains(log_content, '[Error]'), &'ERROR', &null, @), @), @)",
"priority": 12
},
Expand All @@ -53,4 +54,4 @@
]
}
]
}
}

0 comments on commit 16ef6ab

Please sign in to comment.