public class SyslogAuditEventHandlerConfiguration extends EventHandlerConfiguration
SyslogAuditEventHandler.
This configuration object can be created from JSON. Example of valid JSON configuration:
{
"protocol" : "TCP",
"host" : "https://forgerock.example.com",
"port" : 6514,
"connectTimeout" : 30000,
"facility" : "local0",
"severityFieldMappings": [{
"topic" : "system-status",
"field" : "level",
"valueMappings" : {
"SEVERE" : "EMERGENCY",
"WARNING" : "WARNING",
"INFO" : "INFORMATIONAL"
},
"buffering" : {
"enabled" : "true"
}
}]
}
| Modifier and Type | Class and Description |
|---|---|
static class |
SyslogAuditEventHandlerConfiguration.EventBufferingConfiguration
Configuration of event buffering.
|
static class |
SyslogAuditEventHandlerConfiguration.SeverityFieldMapping
Encapsulates configuration for mapping audit event field values to Syslog severity values.
|
| Modifier and Type | Field and Description |
|---|---|
protected SyslogAuditEventHandlerConfiguration.EventBufferingConfiguration |
buffering
Event buffering is disabled by default.
|
| Constructor and Description |
|---|
SyslogAuditEventHandlerConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
SyslogAuditEventHandlerConfiguration.EventBufferingConfiguration |
getBuffering()
Returns the configuration for events buffering.
|
int |
getConnectTimeout()
Returns the timeout after which attempts to connect to the Syslog daemon will be abandoned.
|
Facility |
getFacility()
Returns the facility constant that should be applied to all Syslog messages.
|
String |
getHost()
Returns the hostname of the Syslog daemon to which messages should be published.
|
int |
getPort()
Returns the port of the Syslog daemon to which messages should be published.
|
TransportProtocol |
getProtocol()
Returns the protocol over which messages transmitted to the Syslog daemon.
|
List<SyslogAuditEventHandlerConfiguration.SeverityFieldMapping> |
getSeverityFieldMappings()
Returns the configurations for mapping audit event field values to Syslog severity values.
|
boolean |
isUsableForQueries()
States if an
AuditEventHandler can be used for queries. |
void |
setBufferingConfiguration(SyslogAuditEventHandlerConfiguration.EventBufferingConfiguration bufferingConfiguration)
Sets the configuration for events buffering.
|
void |
setConnectTimeout(int connectTimeout)
Sets the timeout after which attempts to connect to the Syslog daemon will be abandoned.
|
void |
setFacility(Facility facility)
Sets the facility constant that should be applied to all Syslog messages.
|
void |
setHost(String host)
Sets the hostname of the Syslog daemon to which messages should be published.
|
void |
setPort(int port)
Sets the port of the Syslog daemon to which messages should be published.
|
void |
setProtocol(TransportProtocol protocol)
Sets the protocol over which messages transmitted to the Syslog daemon.
|
void |
setSeverityFieldMappings(List<SyslogAuditEventHandlerConfiguration.SeverityFieldMapping> severityFieldMappings)
Sets the configurations for mapping audit event field values to Syslog severity values.
|
getName, getTopics, isEnabled, setEnabled, setName, setTopics@JsonPropertyDescription(value="audit.handlers.syslog.buffering") protected SyslogAuditEventHandlerConfiguration.EventBufferingConfiguration buffering
public SyslogAuditEventHandlerConfiguration()
public TransportProtocol getProtocol()
public void setProtocol(TransportProtocol protocol)
protocol - the transport protocol.public String getHost()
public void setHost(String host)
host - the hostname.public int getPort()
public void setPort(int port)
port - the port.public int getConnectTimeout()
TransportProtocol.TCP is active.public void setConnectTimeout(int connectTimeout)
TransportProtocol.TCP is active.connectTimeout - the connect timeout.public Facility getFacility()
public void setFacility(Facility facility)
facility - the facility.public List<SyslogAuditEventHandlerConfiguration.SeverityFieldMapping> getSeverityFieldMappings()
public void setSeverityFieldMappings(List<SyslogAuditEventHandlerConfiguration.SeverityFieldMapping> severityFieldMappings)
severityFieldMappings - the severity field mappings.public SyslogAuditEventHandlerConfiguration.EventBufferingConfiguration getBuffering()
public void setBufferingConfiguration(SyslogAuditEventHandlerConfiguration.EventBufferingConfiguration bufferingConfiguration)
bufferingConfiguration - The configurationpublic boolean isUsableForQueries()
EventHandlerConfigurationAuditEventHandler can be used for queries.isUsableForQueries in class EventHandlerConfigurationAuditEventHandler can be used for queries.
False - If the AuditEventHandler can not be used for queries.Copyright © 2025 Open Identity Platform Community. All rights reserved.