Auditing
Use GridGain's event-based auditing to track user actions and export event information to an external system.
Auditing capabilities of GridGain are based on the event functionality. All user actions trigger specific events. The events contain the information about the user and the data that was accessed or modified by the action. You can track the events and export them into an external system.
You can use an event listener to listen to events, or you can create a custom event storage. On this page, we provide an example of an event storage that outputs information about events to System.out.
Enabling Events
Decide which actions you want to track and enable the corresponding event types. We recommend enabling only the specific events you really need. Too many events can have an impact on the performance of the cluster. The events must be enabled on every server node.
<bean class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="includeEventTypes">
<list>
<util:constant static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_PUT"/>
<util:constant static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_REMOVED"/>
</list>
</property>
</bean>IgniteConfiguration cfg = new IgniteConfiguration();
cfg.setIncludeEventTypes(
EventType.EVT_CACHE_OBJECT_PUT,
EventType.EVT_CACHE_OBJECT_REMOVED);var cfg = new IgniteConfiguration
{
IncludedEventTypes = new[]
{
EventType.CacheObjectPut,
EventType.CacheObjectRemoved
}
};Not supported.
Custom Event Storage
Implement a custom event storage and specify it in the node configuration. The storage does not have to store events, it can simply output the information to the log or export into an external system. The implementation will receive all events in the record() method.
The following example outputs the information about the event to console.
Not supported.
Not supported.
Specify your event storage class in the node configuration. The storage class must be available in the node's classpath.
Not supported.
Not supported.
All nodes started with the above configuration will output the information about the “cache put” and “cache remove” events.
Identifying the User
If your cluster is protected by authentication, you can get the user name from the subjectID of an event. Note that subjectID may be not available in some events.
The following piece of code illustrates how to obtain the user name:
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

