Class SyslogConfigBean

  • All Implemented Interfaces:
    SyslogdConfig

    public final class SyslogConfigBean
    extends java.lang.Object
    implements SyslogdConfig
    This is a bean container that can be used as a SyslogdConfig service.
    • Constructor Detail

      • SyslogConfigBean

        public SyslogConfigBean()
    • Method Detail

      • setSyslogPort

        public void setSyslogPort​(int syslogPort)
      • getListenAddress

        public java.lang.String getListenAddress()
        Description copied from interface: SyslogdConfig

        getListenAddress

        Specified by:
        getListenAddress in interface SyslogdConfig
        Returns:
        a String object.
      • setListenAddress

        public void setListenAddress​(java.lang.String listenAddress)
      • setNewSuspectOnMessage

        public void setNewSuspectOnMessage​(boolean newSuspectOnMessage)
      • getForwardingRegexp

        public java.lang.String getForwardingRegexp()
        Description copied from interface: SyslogdConfig

        getForwardingRegexp

        Specified by:
        getForwardingRegexp in interface SyslogdConfig
        Returns:
        a String object.
      • setForwardingRegexp

        public void setForwardingRegexp​(java.lang.String forwardingRegexp)
      • setMatchingGroupHost

        public void setMatchingGroupHost​(int matchingGroupHost)
      • setMatchingGroupMessage

        public void setMatchingGroupMessage​(int matchingGroupMessage)
      • getParser

        public java.lang.String getParser()
        Description copied from interface: SyslogdConfig

        getParser

        Specified by:
        getParser in interface SyslogdConfig
        Returns:
        the parser class to use when parsing syslog messages, as a string.
      • setParser

        public void setParser​(java.lang.String parser)
      • getDiscardUei

        public java.lang.String getDiscardUei()
        Description copied from interface: SyslogdConfig

        getDiscardUei

        Specified by:
        getDiscardUei in interface SyslogdConfig
        Returns:
        a String object.
      • setDiscardUei

        public void setDiscardUei​(java.lang.String discardUei)
      • getNumThreads

        public int getNumThreads()
        Description copied from interface: SyslogdConfig
        Number of threads used for consuming/dispatching messages.
        Specified by:
        getNumThreads in interface SyslogdConfig
        Returns:
        number of threads
      • setNumThreads

        public void setNumThreads​(int numThreads)
      • getQueueSize

        public int getQueueSize()
        Description copied from interface: SyslogdConfig
        Maximum number of messages to keep in memory while waiting to be dispatched.
        Specified by:
        getQueueSize in interface SyslogdConfig
        Returns:
        queue size
      • setQueueSize

        public void setQueueSize​(int queueSize)
      • getBatchSize

        public int getBatchSize()
        Description copied from interface: SyslogdConfig
        Messages are aggregated in batches before being dispatched. When the batch reaches this size, it will be dispatched.
        Specified by:
        getBatchSize in interface SyslogdConfig
        Returns:
        batch size
      • setBatchSize

        public void setBatchSize​(int batchSize)
      • getBatchIntervalMs

        public int getBatchIntervalMs()
        Description copied from interface: SyslogdConfig
        Messages are aggregated in batches before being dispatched. When the batch has been created for longer than this interval it will be dispatched, regardless of the size.
        Specified by:
        getBatchIntervalMs in interface SyslogdConfig
        Returns:
        interval in ms
      • getTimeZone

        public java.util.TimeZone getTimeZone()
        Description copied from interface: SyslogdConfig
        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
        Specified by:
        getTimeZone in interface SyslogdConfig
      • setTimeZone

        public void setTimeZone​(java.util.TimeZone timeZone)
      • shouldIncludeRawSyslogmessage

        public boolean shouldIncludeRawSyslogmessage()
        Description copied from interface: SyslogdConfig
        Indicates whether or not to include the raw syslog message as an event parameter on events generated by Syslogd.

        Default behavior is false unless configured otherwise.

        Specified by:
        shouldIncludeRawSyslogmessage in interface SyslogdConfig
        Returns:
        whether or not to include the raw syslog message as an event parameter on events generated by Syslogd
      • setIncludeRawSyslogmessage

        public void setIncludeRawSyslogmessage​(boolean includeRawSyslogmessage)
      • setBatchIntervalMs

        public void setBatchIntervalMs​(int batchIntervalMs)
      • reload

        public void reload()
                    throws java.io.IOException
        Description copied from interface: SyslogdConfig
        reload configuration
        Specified by:
        reload in interface SyslogdConfig
        Throws:
        java.io.IOException