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.
  • Constructor Details

    • SolrLogAuditLoggerPlugin

      public SolrLogAuditLoggerPlugin()
  • Method Details

    • init

      public void init(Map<String,Object> pluginConfig)
      Initialize the plugin from security.json
      Overrides:
      init in class AuditLoggerPlugin
      Parameters:
      pluginConfig - the config for the plugin
    • audit

      public void audit(AuditEvent event)
      Audit logs an event to Solr log. The event should be a AuditEvent to be able to pull context info
      Specified by:
      audit in class AuditLoggerPlugin
      Parameters:
      event - the event to log