I needed a way to report on the issue types and determine if there was a type that was creating excessive issues.
As reporting is not available in DRA, I had to use a database query to gather the information I needed.
Here's a query that can be ran on the DRA admin appliance and will create a report of issue types and count of issues
sudo -u postgres bash -c "psql -d itp -c \"
SELECT issue_type, COUNT(*) from managed_issues GROUP BY issue_type ORDER BY issue_type;
\"" 2>/dev/null
This will return a list with a count --
issue_type | count
-------------------------+-------
ABUSE_MULTIPLE_DB | 29
ABUSE_SINGLE_DB | 7
ACCOUNT_MISUSE | 10
. . .
The issue_type does not exactly match the issue type names that are used when filtering in DRA, but are similar enough to determine the issues.
#DataRiskAnalytics(formerlyCounterBreach)