Ranger audit

Ranger uses Solr to store audit logs and to implement a user interface for searching through them. The default configuration for Ranger audit in Solr uses a shared Solr instance provided by the ADPS bundle. Make sure that the Solr host has enough memory, CPU and disk capacity.

NOTE
Solr must be installed and configured before installing Ranger Admin.
  1. To authorize as Ranger admin, enter the administrative credentials and click Sign In.

    ranger auth
    Log in to Ranger
  2. To manage audit policies in Ranger, open the Ranger console. Then, go to the Audit page.

ranger audit main
Audit page
ranger audit main is dark
Audit page

The Audit section includes the following tabs:

  • Access

  • Admin

  • Login Sessions

  • Plugins

  • Plugin Status

  • User Sync

Access tab

The Access tab provides the service activity data for all policies that have audit enabled. The default service policy is configured to log all user activity. This default policy does not contain the user and group access rules.

ranger audit access
Access tab
ranger audit access is dark
Access tab

You can filter the data based on the criteria listed in the table below.

Access tab
Search criteria Description

Access Enforcer

Search by access enforcer name

Access Type

Search by access type like READ_EXECUTE, WRITE_READ_EXECUTE

Agent Host Name

Hostname of the agent

Application

Application name

Client IP

Search by IP address that was used to access the resources

Cluster Name

Name of the cluster

Start Date

Filters results for a particular date range

End Date

Filters results for a particular date range

Exclude User

Name of the user

Resource Name

Search by resource name

Resource Type

Search by resource type based on component (for example, path in HDFS, database, table in Hive)

Result

Search by access result (Allowed/Denied logs)

Service Name

Name of the service that the user tries to access

Service Type

Type of the service that the user tries to access

Tags

Tag name

User

Name of the user who tries to access the resource

Zone Name

Name of the Zone

NOTE
Wildcards (for example, * or ?) are not currently supported in search queries.

Admin tab

The Admin tab contains all events for security audit. The events include service, service manager, login events, and actions such as creating, updating, deleting, changing a password.

ranger audit admin
Admin tab
ranger audit admin is dark
Admin tab

You can filter the data based on the criteria listed in the table below.

Admin tab
Search criteria Description

Actions

Filter logs by the following actions: Create, Update, Delete, Password Change, Export JSON, Export CSV, Export Excel, Import End, Import Start, Import Create and Import Delete

Audit Type

Filter by the following types: Ranger Group, Ranger Policy, Ranger Security Zone, Ranger Service, Ranger User and User Profile

Start Date

Login time and date is stored for each session. A date range is used to filter the results for a particular time span

End Date

Login time and date is stored for each session. A date range is used to filter the results for a particular time span

Session ID

The session count increments each time you try to log in to the system

User

Name of the user who has performed either create, update, or delete operation

Login Sessions tab

The Login Sessions tab displays information related to user sessions for each login.

ranger audit logs
Login Sessions tab
ranger audit logs is dark
Login Sessions tab

You can filter the data based on the criteria listed in the table below.

Login sessions tab
Search criteria Description

Login ID

Name of the user who tried to access to the system

Session ID

The session count increments every time the user tries to log into the system

Start Date

Specifies that results should be filtered based on a specific start date

End Date

Specifies that results should be filtered based on a specific end date

Login Type

The mode through which the user tries to login (by entering username and password)

IP

The IP address that the user utilized for login

User Agent

The browser or library version used to login for the specific event (e.g. Mozilla, Java, Python)

Result

The result of the login attempt. Possible results are: Success, Wrong Password, Account Disabled, Locked, Password Expired and User Not Found

Plugins tab

The Plugins tab shows the upload history and the Security Agents status. This tab displays all the services exported from the system.

ranger audit plugins
Plugins tab
ranger audit plugins is dark
Plugins tab

You can filter the data based on the criteria listed in the table below.

Plugins tab
Search criteria Description

Cluster Name

Filter by the cluster name

Plugin IP

IP address of the agent that tried to export the service

Plugin ID

Name of the agent that tried to export the service

Start Date

Specifies that results should be filtered based on a specific start date for each agent

End Date

Specifies that results should be filtered based on a specific end date for each agent

HTTP Response Code

HTTP code returned when trying to export the service

Service Name

The name of the service that was exported

Plugin Status tab

The Plugin Status tab shows policies effective for each plugin. The tab includes relevant host information and the time when the plugin was downloaded and started enforcing the policies.

ranger audit plugin status
Plugin Status tab
ranger audit plugin status is dark
Plugin Status tab

You can filter the data based on the criteria listed in the table below.

Plugin Status tab
Search criteria Description

Application

Application name

Cluster Name

Filter by the cluster name

Host Name

Name of the host; can be FQDN

Plugin IP

IP Address of the agent that uses the plugin

Service Name

Name of the service that contains the policies

Service Type

Filter by the service type

User Sync tab

The User Sync tab provides service activity data for all usersync processes in Ranger. This creates a compliance/audit trail for users and groups synchronized with each run of usersync.

ranger audit user sync
User Sync tab
ranger audit user sync is dark
User Sync tab

You can filter the data based on the criteria listed in the table below.

User Sync tab
Search criteria Description

Start Date

Filters results for a particular date range

End Date

Filters results for a particular date range

User Name

Name of the user who tried to access the resource

Sync Source

Filter by file, LDAP/AD, or Unix

Found a mistake? Seleсt text and press Ctrl+Enter to report it