Package org.apache.solr.security
Class SolrLogAuditLoggerPlugin
java.lang.Object
org.apache.solr.security.AuditLoggerPlugin
org.apache.solr.security.SolrLogAuditLoggerPlugin
- All Implemented Interfaces:
Closeable,AutoCloseable,Runnable,SolrInfoBean,SolrMetricProducer
Audit logger that writes to the Solr log. This interface may change in next release and is marked
experimental
- Since:
- 8.1.0
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.security.AuditLoggerPlugin
AuditLoggerPlugin.AuditEventFormatter, AuditLoggerPlugin.JSONAuditEventFormatter, AuditLoggerPlugin.MuteRuleNested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group -
Field Summary
Fields inherited from class org.apache.solr.security.AuditLoggerPlugin
eventTypes, formatter, numErrors, numLogged, numLost, requestTimes, solrMetricsContextFields inherited from interface org.apache.solr.metrics.SolrMetricProducer
CATEGORY_ATTR, HANDLER_ATTR, NAME_ATTR, OPERATION_ATTR, PLUGIN_NAME_ATTR, RESULT_ATTR, TYPE_ATTR -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.solr.security.AuditLoggerPlugin
auditAsync, close, doAudit, getCategory, getDescription, getName, getSolrMetricsContext, initializeMetrics, run, setFormatter, shouldLog, shouldMute, waitForQueueToDrain
-
Constructor Details
-
SolrLogAuditLoggerPlugin
public SolrLogAuditLoggerPlugin()
-
-
Method Details
-
init
Initialize the plugin from security.json- Overrides:
initin classAuditLoggerPlugin- Parameters:
pluginConfig- the config for the plugin
-
audit
Audit logs an event to Solr log. The event should be aAuditEventto be able to pull context info- Specified by:
auditin classAuditLoggerPlugin- Parameters:
event- the event to log
-