Difficulty: Beginner
Estimated Time: 10 minutes


After completing this scenario, users will be able to enable review recorded sessions in Red Hat Enterprise Linux, and track activity inside SQL Server using SQL Server's auditing feature.

Concepts included in this scenario:

  • Installing software for Terminal Session Recording
  • Enabling and recording terminal sessions
  • List recorded sessions
  • Replay recorded sessions using Web Console
  • Enabling SQL Server auditing
  • Viewing the audit events in the SQL Server audit log file

Example Usecase:

Your compliance officer needs to have session recording across all OS and database activity for high privileged users. The session recording can be used to review all the actions carried out at the OS level, while SQL Server's auditing feature can be used to record database actions.

Author: Don Pinto, Technical Content Manager (Red Hat)

Terminal Session Recording and SQL Server Auditing

Step 1 of 7

Step 1

Installing software

When you start this demo, SQL Server installation will start on the machine. You should see the message like the one below as a confirmation that the installation is complete.

Microsoft SQL Server 2017 (RTM-CU16) (KB4508218) - 14.0.3223.3 (X64) Jul 12 2019 17:43:08 Copyright (C) 2017 Microsoft Corporation Enterprise Evaluation Edition (64-bit) on Linux (Red Hat Enterprise Linux 8.0 (Ootpa))

(1 rows affected)

Install two rpm packages, cockpit-session-recording and tlog.

yum -y install cockpit-session-recording tlog


  cockpit-session-recording-1-29.el8.noarch                      tlog-5-1.el8.x86_64


The first package, cockpit-session-recording will add an additional feature Web Console which you will be using to enable and configure session recording. The tlog package will provide the tools which will be used to both record and view the recorded terminal sessions.