Class ElasticSearchAuditLogger

java.lang.Object
hudson.plugins.audit_trail.AuditLogger
hudson.plugins.audit_trail.ElasticSearchAuditLogger
All Implemented Interfaces:
ExtensionPoint, Describable<AuditLogger>

public class ElasticSearchAuditLogger extends AuditLogger
AuditLogger implementation to send audit logs to an Elastic Search server. Some code take from the Jenkins logstash plugin: https://github.com/jenkinsci/logstash-plugin Default values are set in /src/main/resources/hudson/plugins/audit_trail/ElasticSearchAuditLogger/config.jelly
Author:
Alex Russell
  • Field Details

    • LOGGER

      protected static final Logger LOGGER
  • Constructor Details

    • ElasticSearchAuditLogger

      @DataBoundConstructor public ElasticSearchAuditLogger(String url, boolean skipCertificateValidation)
  • Method Details

    • log

      public void log(String event)
      Specified by:
      log in class AuditLogger
    • configure

      public void configure()
    • getUrl

      public String getUrl()
    • setUrl

      @DataBoundSetter public void setUrl(String url) throws URISyntaxException, MalformedURLException
      Throws:
      URISyntaxException
      MalformedURLException
    • getUsernamePasswordCredentialsId

      public String getUsernamePasswordCredentialsId()
    • setUsernamePasswordCredentialsId

      @DataBoundSetter public void setUsernamePasswordCredentialsId(String usernamePasswordCredentialsId)
    • getClientCertificateCredentialsId

      public String getClientCertificateCredentialsId()
    • setClientCertificateCredentialsId

      @DataBoundSetter public void setClientCertificateCredentialsId(String clientCertificateCredentialsId)
    • getSkipCertificateValidation

      public boolean getSkipCertificateValidation()
    • setSkipCertificateValidation

      @DataBoundSetter public void setSkipCertificateValidation(boolean skipCertificateValidation)
    • getDisplayName

      public String getDisplayName()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object