# Config

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXeYk4qrKh5j4QO-IOL9CaHnbkkZyy-Z4XVCO_gHWOWW8ODNFUSpVO3dlQlAJzrtLf_4GWDa_S6B1P-q2dZQqhcyrwtAY1E1D0Xko65KGxid0zrzclAiBO-k-r0cFlc5o6oLNQC58YXcKXETr69Jsr6dqggMq9rtc73p6ESeC-NcVFTQ5b9kvA?key=0ECnkWiuLUYSWNiFTVoEqA" alt=""><figcaption></figcaption></figure>

Within the Config section, various events can be saved.

The event-saving feature can be toggled ON or OFF based on requirements.

#### **Event Listeners**

Event Listeners monitor events and execute actions accordingly.&#x20;

ZTrust includes two built-in event listeners: the Logging Event Listener and the Email Event Listener.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXehqOYt3lh12IKAvjYCfr2Tb8rX0x-VR9qpdd1eh1wA5CeFcT3-0IGrQaE-k5BpPvgXLkSw8bnFTbXkHVIvb_WxdB8Y5iN19U9VwOvygr2fIImPiWQg3R8489Z5LCC9JN2Zrny4dl5Znw5pyUCytzBdI28V7DK4egxiuatPYExfa_DyTKiQnOM?key=0ECnkWiuLUYSWNiFTVoEqA" alt=""><figcaption></figcaption></figure>

When the Logging Event Listener is enabled, the listener logs error events to a designated log file.

You can utilize this listener to safeguard against hacker bot attacks.

The Email Event Listener sends an email notification to the user's account upon occurrence of an event. It supports the following events -

* Login Error
* Update Password
* Update Time-based One-time Password (TOTP)
* Remove Time-based One-time Password (TOTP)

#### **Save Events**

This is a toggle button, when activated (turned ON), login events are saved to a database, allowing access through the admin and account management consoles.&#x20;

When deactivated (turned OFF), the events are not retained.

#### **Saved Types**

It determines which event types are saved.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXed9kJKgvgDFR5HdgyoifUrYIhZRunb5PYj2m1qGhxcfq4la6RQ2UyknM5CHgO2iR2cVLLPisOBPZcA6O4MvKxqPKc4vZnlIgJKTfdEAFA2GcwSbpjKRqud2vd61NXiuBIkK2LangmKeVpj98lCpmwBqMYdOkJZa_HZGTP0Xu2IewfxKhVUmA?key=0ECnkWiuLUYSWNiFTVoEqA" alt=""><figcaption></figcaption></figure>

#### **Clear events**

This will delete all the events in the database.

#### **Expiration**

This field establishes the expiration duration for events, dictating how long they are retained in the database.&#x20;

Expired events are regularly removed from the database based on this setting.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXfIju1dFf9zHJM985h6IgAcJyyijRSHyfNZqNKFNgDqFhjJe4HkdSXzs8aq1TZUQ7HbL_oV7gQce-YPfAxcf-lLVRlxH1n29TMKk3qbItCYqtQT7FNdp9cB6JXHjJxKE9OEEoaDnyIp0YC-2up0L4NAWCFDBQCHBX5Xvj37KDMnVI8saEvUJCU?key=0ECnkWiuLUYSWNiFTVoEqA" alt=""><figcaption></figcaption></figure>

You can choose the unit of duration from the dropdown menu, specifying whether it will be in minutes, hours, or days.

#### **Admin Events Settings**

You can keep a track or monitor all the events conducted by the administrator within the Admin Console.

#### **Save Events**

This toggle button, when activated (turned ON), stores all Admin events in the database, enabling access through the admin console.

If turned OFF, the admin events won’t be saved.

#### **Include Representation**

This toggle button, when enabled (turned ON), incorporates JSON documents transmitted via the admin REST API, so that you can review the administrator actions.

When this is turned ON, it results in a significant amount of information being stored in the database. You can also set a maximum representation length.

#### **Clear admin events**

This action will clear all saved admin events from the database.

#### **Expiration**

This field determines the expiration duration for saved Admin events.

The Expired Events are subsequently removed from the database when they expire.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXelFfVjmRQROyntZ232kjUCa7l_fF42ozHJwE0W8IB8GsMjRx_XZYtcUkB-nCodj6WhnhUut6C0e3faHSc-GTwPHoEi-aqjYvfZUWHYTdMGtsQClqb8OzAHe6MxEe_alJpRQ90YfSQkhkD0Odlk72GMGtRlf3xJ49XysOHsJmy0m483uv0tSDo?key=0ECnkWiuLUYSWNiFTVoEqA" alt=""><figcaption></figcaption></figure>

You can choose the time duration unit from the dropdown menu, selecting either minutes, hours, or days.

#### **Clear Changes**

After changes are made, if you wish to discard them without saving, click on Clear Changes.

#### **Save**

To save and implement changes, click Save after making adjustments.

\


\
