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
public class SolrLogAuditLoggerPlugin extends AuditLoggerPlugin
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.MuteRule
-
Nested 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, queuedTime, requestTimes, solrMetricsContext, totalTime
-
-
Constructor Summary
Constructors Constructor Description SolrLogAuditLoggerPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
audit(AuditEvent event)
Audit logs an event to Solr log.void
init(Map<String,Object> pluginConfig)
Initialize the plugin from security.json-
Methods inherited from class org.apache.solr.security.AuditLoggerPlugin
auditAsync, close, doAudit, getCategory, getDescription, getName, getSolrMetricsContext, initializeMetrics, run, setFormatter, shouldLog, shouldMute, waitForQueueToDrain
-
-
-
-
Method Detail
-
init
public void init(Map<String,Object> pluginConfig)
Initialize the plugin from security.json- Overrides:
init
in classAuditLoggerPlugin
- Parameters:
pluginConfig
- the config for the plugin
-
audit
public void audit(AuditEvent event)
Audit logs an event to Solr log. The event should be aAuditEvent
to be able to pull context info- Specified by:
audit
in classAuditLoggerPlugin
- Parameters:
event
- the event to log
-
-