Lab Guide Create a Guardium Query and Report
Lab Guide Create a Guardium Query and Report
TRADEMARKS
IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International Business Machines Corp., registered in many
jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM
trademarks is available on the web at “Copyright and trademark information” at www.ibm.com/legal/copytrade.shtml.
Adobe, the Adobe logo, PostScript, and the PostScript logo are either registered trademarks or trademarks of Adobe Systems
Incorporated in the United States, and/or other countries.
Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates.
The registered trademark Linux® is used pursuant to a sublicense from the Linux Foundation, the exclusive licensee of Linus Torvalds,
owner of the mark on a worldwide basis.
Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries,
or both.
UNIX is a registered trademark of The Open Group in the United States and other countries.
VMware, the VMware logo, VMware Cloud Foundation, VMware Cloud Foundation Service, VMware vCenter Server, and VMware
vSphere are registered trademarks or trademarks of VMware, Inc. or its subsidiaries in the United States and/or other jurisdictions.
Red Hat®, JBoss®, OpenShift®, Fedora®, Hibernate®, Ansible®, CloudForms®, RHCA®, RHCE®, RHCSA®, Ceph®, and Gluster® are
trademarks or registered trademarks of Red Hat, Inc. or its subsidiaries in the United States and other countries.
Each report depends on a query to gather the information for the report. In simple terms, the
query defines what information is gathered. You can also use queries to gather information for
other purposes, such as populating a group.
In this lab, you create a dashboard, a simple query, and a report that is used to examine user data
you generate.
Important: These exercises are presented in a virtual lab format. A virtual lab is an interactive
simulation of the original virtual machines. A virtual lab is not an actual virtual machine.
Therefore, your interaction opportunities are restricted to the exercise steps with some minor
variance. You use this lab guide, which walks you through usage and responses for the
components that are taught.
You can run the virtual lab multiple times without restriction.
The query that you create returns details of all trusted sessions that are sessions open by
database users who are members of the Lab Trusted Users group. The query returns the Database
User Name, Client and Server IP addresses, and Source Program name.
1. To access the Guardium GUI, log in as user labadmin with password P@ssword.
Uempty
The Welcome window opens.
2. Click the Edit icon and rename the My Dashboard to Lab Dashboard.
3. Click Save.
2
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 1 Create a simple query and report
Uempty
Task 2 Create the query that the report will use
1. From the left navigation menu, click Reports > Report Configuration Tools > Query-Report
Builder.
3
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 1 Create a simple query and report
Uempty
The Query-Report Builder window opens.
4
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 1 Create a simple query and report
Uempty
4. For Query name, type -Trusted Sessions.
Note: It is a good practice to identify the resources that you create with some sort of prefix to
distinguish user-added groups from the built-in ones. In addition, the “-” character at the
beginning means that your reports appear at the top of the list of reports and are consequently
easier to find and select.
6. Click Next.
5
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 1 Create a simple query and report
Uempty
The New Query window displays tools to build the query.
You choose entities from the Entities and Attributes list to add to the Selected Columns fields,
which determines how the information is displayed. You add entities to the Query Conditions,
which determine what information is displayed.
7. In the Entities and Attributes table, select Entity: Client/Server with Attribute Client IP and
then click the Copy icon .
6
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 1 Create a simple query and report
Uempty
The Client IP attribute is added to the Selected Columns section on the right side of the
window.
7
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 1 Create a simple query and report
Uempty
8. Use the scrollbar to add the following attributes to the Selected Columns table:
– Scroll down to add attribute Server IP
– Scroll up to add attribute DB User Name
– Scroll down to add attribute Source Program
When you are finished, the query builder includes four entities in the Selected Columns
section.
Note: When you build or modify a Guardium query, save your query early and often to avoid loss
of work and frustration.
8
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 1 Create a simple query and report
Uempty
10. To ensure that subsequent reports display counts of the sessions rather than details of each
individual session, select Count.
11. Put the fields in the correct sequence. Select the DB User Name entity and use the blue
arrows to promote it to the second position in the sequence.
9
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 1 Create a simple query and report
Uempty
13. To set the sort rank, select Sort results by columns and then click the Add icon .
In the field that opens, you can select which columns to sort by, and in what order.
10
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 1 Create a simple query and report
Uempty
16. To add another sort entity, click the Add icon. Select DB User Name from the drop-down list
and Ascending.
11
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 1 Create a simple query and report
Uempty
The Select a condition field window opens.
20. Expand Client/Server, scroll down, select DB User Name, and click Select.
12
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 1 Create a simple query and report
Uempty
The entity is added to the Conditions section.
21. Select the IN GROUP operator and the Lab Privileged Users runtime parameter.
13
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 1 Create a simple query and report
Uempty
2. Select Lab Dashboard and click Add Report.
.
4. From the left navigation menu, click My Dashboards > My Custom Dashboards > Lab
Dashboard. Your dashboard opens on the Add Report tab with the new report data.
14
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 1 Create a simple query and report
Uempty
7. Review and accept the default Runtime Parameter and click OK.
15
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 2 Review the updated report
Uempty
Exercise 2 Review the updated report
When you created the query, you set a condition to retrieve activity only where the database user
was in the group named Lab Privileged Users. In this exercise, you view the members of this
group, and then view the results in your report.
16
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 2 Review the updated report
Uempty
The Group Builder pane opens.
2. To reduce the number of groups, filter by part of the group name Lab Privileged Users. For
example, type Lab.
The group builder entries are filtered so that only group names that contain the word “lab” are
displayed.
Notice that the Lab Privileged Users group has a green checkmark in the Used in query
column.
3. To edit the group, select Lab Privileged Users and click the Edit icon .
17
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 2 Review the updated report
Uempty
4. To display the group members, click the Members tab.
ifif
There are three group members: DB2INST1, Joan, and Joe. In the next task, you generate
activity for Joan and Joe.
18
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 2 Review the updated report
Uempty
Task 2 Customize and view the report results
1. From the left navigation menu, click My Dashboards > My Custom Dashboards > Lab
Dashboard.
3. To sort the users in descending order, click the DB User Name column heading.
The report includes the s ession activity for JOE and JOAN.
The report shows the activity of users Joe and Joan who are members of the Lab Privileged
Users group.
This concludes this lab.
19
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
© Copyright IBM Corp. 2022