Package hudson.plugins.audit_trail
Class ElasticSearchAuditLogger
java.lang.Object
hudson.plugins.audit_trail.AuditLogger
hudson.plugins.audit_trail.ElasticSearchAuditLogger
- All Implemented Interfaces:
ExtensionPoint
,Describable<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
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
getUrl()
int
hashCode()
void
void
setClientCertificateCredentialsId
(String clientCertificateCredentialsId) void
setSkipCertificateValidation
(boolean skipCertificateValidation) void
void
setUsernamePasswordCredentialsId
(String usernamePasswordCredentialsId) toString()
Methods inherited from class hudson.plugins.audit_trail.AuditLogger
all, cleanUp, getDescriptor
-
Field Details
-
LOGGER
-
-
Constructor Details
-
ElasticSearchAuditLogger
@DataBoundConstructor public ElasticSearchAuditLogger(String url, boolean skipCertificateValidation)
-
-
Method Details
-
log
- Specified by:
log
in classAuditLogger
-
configure
public void configure() -
getUrl
-
setUrl
-
getUsernamePasswordCredentialsId
-
setUsernamePasswordCredentialsId
-
getClientCertificateCredentialsId
-
setClientCertificateCredentialsId
@DataBoundSetter public void setClientCertificateCredentialsId(String clientCertificateCredentialsId) -
getSkipCertificateValidation
public boolean getSkipCertificateValidation() -
setSkipCertificateValidation
@DataBoundSetter public void setSkipCertificateValidation(boolean skipCertificateValidation) -
getDisplayName
-
equals
-
hashCode
public int hashCode() -
toString
-