public final class SyslogdConfigFactory extends Object implements SyslogdConfig
| Constructor and Description |
|---|
SyslogdConfigFactory()
Private constructor
|
SyslogdConfigFactory(InputStream stream)
Constructor for SyslogdConfigFactory.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBatchIntervalMs()
Messages are aggregated in batches before being dispatched.
|
int |
getBatchSize()
Messages are aggregated in batches before being dispatched.
|
String |
getDiscardUei()
getDiscardUei
|
String |
getForwardingRegexp()
getForwardingRegexp
|
List<HideMatch> |
getHideMessages()
A collection of Strings we do not want to attach to the event.
|
String |
getListenAddress()
getListenAddress
|
Integer |
getMatchingGroupHost()
getMatchingGroupHost
|
Integer |
getMatchingGroupMessage()
getMatchingGroupMessage
|
boolean |
getNewSuspectOnMessage()
Return whether or not a newSuspect event should be sent when a trap is
received from an unknown IP address.
|
int |
getNumThreads()
Number of threads used for consuming/dispatching messages.
|
String |
getParser()
getParser
|
int |
getQueueSize()
Maximum number of messages to keep in memory while waiting
to be dispatched.
|
int |
getSyslogPort()
Return the port on which SNMP traps should be received.
|
TimeZone |
getTimeZone()
Optional:
- if not null it will be used as default time zone if no time zone is given
- if not set the system time zone will be used
|
List<UeiMatch> |
getUeiList()
A collection of Strings->UEI's
|
void |
reload()
Reload the config from the default config file
|
boolean |
shouldIncludeRawSyslogmessage()
Indicates whether or not to include the raw syslog message as an event parameter on events generated by Syslogd.
|
public SyslogdConfigFactory()
throws IOException
IOException - Thrown if the specified config file cannot be readpublic SyslogdConfigFactory(InputStream stream) throws IOException
Constructor for SyslogdConfigFactory.
stream - a InputStream object.IOExceptionpublic void reload()
throws IOException
reload in interface SyslogdConfigIOException - Thrown if the specified config file cannot be
read/loadedpublic int getSyslogPort()
getSyslogPort in interface SyslogdConfigpublic String getListenAddress()
getListenAddress
getListenAddress in interface SyslogdConfigString object.public boolean getNewSuspectOnMessage()
getNewSuspectOnMessage in interface SyslogdConfigpublic String getForwardingRegexp()
getForwardingRegexp
getForwardingRegexp in interface SyslogdConfigString object.public Integer getMatchingGroupHost()
getMatchingGroupHost
getMatchingGroupHost in interface SyslogdConfigpublic Integer getMatchingGroupMessage()
getMatchingGroupMessage
getMatchingGroupMessage in interface SyslogdConfigpublic String getParser()
getParser
getParser in interface SyslogdConfigpublic List<UeiMatch> getUeiList()
SyslogdConfiggetUeiList in interface SyslogdConfigpublic List<HideMatch> getHideMessages()
SyslogdConfiggetHideMessages in interface SyslogdConfigpublic String getDiscardUei()
getDiscardUei
getDiscardUei in interface SyslogdConfigString object.public int getNumThreads()
SyslogdConfiggetNumThreads in interface SyslogdConfigpublic int getQueueSize()
SyslogdConfiggetQueueSize in interface SyslogdConfigpublic int getBatchSize()
SyslogdConfiggetBatchSize in interface SyslogdConfigpublic int getBatchIntervalMs()
SyslogdConfiggetBatchIntervalMs in interface SyslogdConfigpublic TimeZone getTimeZone()
SyslogdConfiggetTimeZone in interface SyslogdConfigpublic boolean shouldIncludeRawSyslogmessage()
SyslogdConfigDefault behavior is false unless configured otherwise.
shouldIncludeRawSyslogmessage in interface SyslogdConfigCopyright © 2022. All rights reserved.