Reports
The current Reports feature is provided as a Beta version in version 10.2.0.
Overview
QueryPie Reports is a feature that outputs data required for audit responses in the form of reports.
It can output details such as user and administrator status and history, security settings, user-specific permission statuses and histories for databases/servers, as well as database/server access and query/command usage history.
Viewing Report List
In the Audit menu, navigate to the Reports > Reports to view the list of report generation tasks.
To access the Reports menu, your account must be granted Report Audit Full Access administrator permissions.
Creating a Report
Search: You can search using the Task Name.
Create Task: Navigate to the report creation page.
Refresh: Reload the task list.
Report Section: Displays the report area specified during task creation. The three sections include:
QueryPie System
QueryPie DAC
QueryPie SAC
Task Name: The name of the task entered during report creation.
Scheduling: The recurrence frequency specified during task creation, with the following options:
None: No recurrence (one-time generation).
Daily: Repeats daily.
Weekly: Repeats weekly.
Monthly: Repeats monthly.
Quarterly: Repeats quarterly.
Created By: The user who created the report task.
Created At: The timestamp of when the report task was created.
Last Task At: The timestamp of the most recent report generation (empty if no reports have been generated).
Last Task Status: The status of the most recent report generation task, which can be:
Succeeded: Successful
In Progress: Ongoing
Failed: Failed
Last Report File: A button to download the most recently generated report file.
If no file exists or the file has expired, the button will be disabled.
Password settings for file downloads can be configured in Security Settings.
When password protection is enabled, you must set a password during download. This password is required to extract the downloaded file.
Viewing Report Details
Click on the desired report from the list to open a drawer displaying detailed information.
Unschedule Task: For recurring reports, you can unschedule the task to stop further automatic generation.
Report Section: Display the report area (e.g., QueryPie General, DAC, SAC)
Click the magnifying glass icon to view detailed information for the selected section.
Scheduling: Show the recurrence frequency (e.g., None, Daily, Weekly, Quarterly)
Date Range: For one-time reports, displays the date range of the report.
Start Date: Indicate the start date for recurring reports.
Next Task At: Show the scheduled time for the next task (left empty for one-time reports)
User Scope: Display the scope of users included in the report
Resource Scope: Display the scope of resources included in the report.
Report List Tab: Display a list of generated reports
Report No.: A serial number assigned to each report within the task.
Created At: The timestamp indicating when the report was generated.
Expired At: The date and time when the report file will expire (or is set to expire).
Status: The current status of the report task (either Succeeded or Failed)
Report File: A link to download the report file.
If the generated file is unavailable or has already expired, the link will be disabled.
You can specify whether a password is required for the file download in the Security settings.
When password protection is enabled, a password will be set during the file download. The password will then be required to unzip the file later.
Action History Tab: Display the user's action history for the report.
Action At: Date and time the action was performed.
Action Type: Type of action (either Report Download or Report Unschedule).
Target Report No.: The target report serial number (left blank if unavailable).
Action By: The person who performed the action.
Creating Report
You can access the report creation page by clicking the + Create Task
button on the report list screen.
Providing Task Basic Information
Task Name: Provide a name to identify the report creation task.
Scheduling: Set the recurrence frequency for the report creation task.
None: Select this option for a one-time task without repetition.
Daily: Select this option for the task to repeat daily.
Weekly: Select this option for the task to repeat weekly.
Monthly: Select this option for the task to repeat monthly.
Quarterly: Select this option for the task to repeat quarterly.
Date Range: Specifies the period range for historical data.
If
Scheduling
is set toNone
, specify the output range for historical data.Current data will be output based on the task execution time, regardless of the Date Range input.
Start Date: Start date for recurring tasks.
If
Scheduling
is set toDaily
,Weekly
,Monthly
, orQuarterly
, specify the start date for the task.
Configuring Report Output Items
On the left side of the creation page, configure the report output items, scope, and filters.
Report Section: Choose the report section based on the service (QueryPie System, DAC, or SAC).
Scope : Define the scope of the report. Refer to the (Optional) Specify Report Scope section below for detailed guidance.
Raw Data: Specify whether to include raw data in the report output:
When enabled, raw data is provided as a CSV file along with the report.
When disabled, only aggregated data is provided in HTML format.
Select All: Toggle to select or deselect all report output items.
For available output items by report section, and details on scope and filter support for each item, see the sections below.
(Optional) Specifying Report Scope
The scope specification feature is used to generate reports based on specific users or databases/servers.
To view the list of permissions granted to Infrastructure Security Team members across all databases registered in QueryPie:
Set the User Scope to Infrastructure Security Team members.
To view the permissions and grant history for all users on servers assigned to a specific service:
Set the Resource Scope to a tag that identifies the servers assigned to the specific service.
You can specify the report scope by clicking the Scope
button to the right of the Report Section.
When applying a scope, report output items that cannot support the specified scope will be disabled.
Example:
If the QueryPie SAC section is selected and both User Scope and Resource Scope are specified, the following items will be disabled:
Command Template Status
Command Template Management History
User Scope: Specify the User-Based Scope
Define the report output scope based on users. When entering a group, the search will include users within the specified group.
Clicking the dropdown displays the list of groups and users currently registered in QueryPie. Select the desired group or user by clicking on it.
You can also search for groups or users by typing their names in the input field.
If multiple values are selected, they will be combined using an OR condition, broadening the scope.
Resource Scope (Tags): Specify the Resource-Based Scope
Define the report output scope based on tagged databases or servers.
To add a tag, place the cursor in the Input Tag field, type the key, press Enter, type the value, and press Enter again to complete the tag entry.
However, if the Section is set to
QueryPie System
, resource scope configuration is not supported.
After completing your input, click the Apply
button to save the scope and close the modal. To preview the applied settings, click the Load Preview
button.
(Optional) Configuring Detailed Filters for Report Output Items
For some report output items, you can configure additional detailed filters.
button is displayed to the left of item names that support detailed filters.
Clicking the button opens a modal to input filter criteria, and clicking
Apply
button saves your settings.Use the
Load Preview
button to view the applied settings.
When a detailed filter is active, the button changes to indicating its configured status.
In version 10.2.0, the following detailed filters are supported:
QueryPie System - User Account Status
Filter user accounts based on their status:
Active, Locked, Expired, Locked Manually
QueryPie DAC - DB Access History
Time range filtering for the Action At column:
Input start and end times.
Choose whether to include or exclude the time range.
If Exclude is selected, only records outside the specified time range will be displayed.
QueryPie SAC - Server Access History
Time range filtering for the Action At column:
Input start and end times.
Choose whether to include or exclude the time range.
If Exclude is selected, only records outside the specified time range will be displayed.
QueryPie SAC - Command History, Restricted Commands
Keyword filtering for the Command column:
Input keywords for exact matches.
When multiple keywords are entered, they are combined with an OR condition, broadening the search scope.
Report Preview
The report preview allows you to check how the report will be generated based on the current input.
Aggregation details are not reflected in the preview and are represented as
{n}
.Raw data shows up to the five most recent records as of the current moment, with any additional entries omitted.
In version 10.2.0, tasks targeting future time periods may not display accurate durations in the report preview.
If the report's schedule, date range, scope, output items, or detailed filters are modified, you must reload the preview.
Saving the Report
After running the report preview, click the Save
button to save the report task.
As of version 10.2.0, reports can only be generated in English.
Reference: Supported Scope and Detailed Filters for Report Output Items
Report Sections | Output Items | User Scope | Resource Scope | Detailed Filters |
---|---|---|---|---|
QueryPie System | User Account Status | O | Unsupported | - |
User Account Management History | O | Unsupported | - | |
User Account Activation History | O | Unsupported | - | |
Administrator Status | O | Unsupported | - | |
Admin Role History | O | Unsupported | - | |
Admin Activity History | O | Unsupported | - | |
User Login History | O | Unsupported | - | |
Login IPs by User | O | Unsupported | - | |
Authentication Method | Unsupported | Unsupported | - | |
Security Configuration Status | Unsupported | Unsupported | - | |
QueryPie DAC | DB Access Control - Assigned Status | O | O | - |
DB Access Control Logs | O | O | - | |
DB Access History | O | O | O | |
Query Execution History | O | O | - | |
QueryPie SAC | Direct Permission Status by User | O | O | - |
Direct Permission Change History | O | O | - | |
Server Role Status by User | O | O | - | |
Server Role Grant/Revocation History | O | O | - | |
Server Access History | O | O | O | |
Command History | O | O | O | |
Command Template Status | Unsupported | Unsupported | - | |
Command Template Management History | Unsupported | Unsupported | - | |
Command Whitelist Grant/Revocation History | O | O | - | |
Restricted Commands | O | O | O |