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.IOException
public void reload() throws IOException
reload
in interface SyslogdConfig
IOException
- Thrown if the specified config file cannot be
read/loadedpublic int getSyslogPort()
getSyslogPort
in interface SyslogdConfig
public String getListenAddress()
getListenAddress
getListenAddress
in interface SyslogdConfig
String
object.public boolean getNewSuspectOnMessage()
getNewSuspectOnMessage
in interface SyslogdConfig
public String getForwardingRegexp()
getForwardingRegexp
getForwardingRegexp
in interface SyslogdConfig
String
object.public Integer getMatchingGroupHost()
getMatchingGroupHost
getMatchingGroupHost
in interface SyslogdConfig
public Integer getMatchingGroupMessage()
getMatchingGroupMessage
getMatchingGroupMessage
in interface SyslogdConfig
public String getParser()
getParser
getParser
in interface SyslogdConfig
public List<UeiMatch> getUeiList()
SyslogdConfig
getUeiList
in interface SyslogdConfig
public List<HideMatch> getHideMessages()
SyslogdConfig
getHideMessages
in interface SyslogdConfig
public String getDiscardUei()
getDiscardUei
getDiscardUei
in interface SyslogdConfig
String
object.public int getNumThreads()
SyslogdConfig
getNumThreads
in interface SyslogdConfig
public int getQueueSize()
SyslogdConfig
getQueueSize
in interface SyslogdConfig
public int getBatchSize()
SyslogdConfig
getBatchSize
in interface SyslogdConfig
public int getBatchIntervalMs()
SyslogdConfig
getBatchIntervalMs
in interface SyslogdConfig
public TimeZone getTimeZone()
SyslogdConfig
getTimeZone
in interface SyslogdConfig
public boolean shouldIncludeRawSyslogmessage()
SyslogdConfig
Default behavior is false unless configured otherwise.
shouldIncludeRawSyslogmessage
in interface SyslogdConfig
Copyright © 2021. All rights reserved.