Auditing and Events
Every user action is tracked in GridGain. This tracking is recorded in the form of Events. You can use events to audit user activity on the cluster.
How to Use Events
To use an event to audit actions:
-
Enable the event type (here we’re enabling
EVT_MANAGEMENT_TASK_STARTED
):<property name="includeEventTypes"> <list> <util:constant static-field="org.apache.ignite.events.EventType.EVT_MANAGEMENT_TASK_STARTED"/> </list> </property>
-
Implement
EventStorageSpi
. The implementation will receive all events in itsrecord()
method. After that you can log or store the events however you prefer. -
Specify your
EventStorageSpi
in your configuration:<property name="eventStorageSpi"> <!-- Insert the name of your implementation here. --> <bean class="org.gridgain.examples.events.MgmtAuditEventStorageSpi"/> </property>
For a complete example of configuring an event for auditing, including a sample EventStorageSPI
implementation, see Monitoring and Auditing Web Console Activity.
Events
You can always find the most complete and up to date list of events in the javadocs: Ignite events and GridGain events.
Events are grouped into the following categories:
Event Category | Event Name |
---|---|
Checkpoint |
EVT_CHECKPOINT_SAVED |
Deployment |
EVT_CLASS_DEPLOYED |
Error |
EVT_JOB_TIMEDOUT |
Discovery |
EVT_NODE_JOINED |
Discovery (all) |
EVT_NODE_JOINED |
Job Execution |
EVT_JOB_MAPPED |
Task Execution |
EVT_TASK_STARTED |
Cache |
EVT_CACHE_ENTRY_CREATED |
Cache Rebalance |
EVT_CACHE_REBALANCE_STARTED |
Cache Lifecycle |
EVT_CACHE_STARTED |
Cache Query |
EVT_CACHE_QUERY_EXECUTED |
Transactions |
EVT_TX_STARTED |
Cluster Activation |
EVT_CLUSTER_ACTIVATED |
License |
EVT_LIC_CLEARED |
Authentication |
EVT_AUTHENTICATION_SUCCEEDED |
Authorization |
EVT_AUTHORIZATION_SUCCEEDED |
© 2020 GridGain Systems, Inc. All Rights Reserved. Privacy Policy | Legal Notices. GridGain® is a registered trademark of GridGain Systems, Inc.
Apache, Apache Ignite, the Apache feather and the Apache Ignite logo are either registered trademarks or trademarks of The Apache Software Foundation.