Class SyslogdConfigFactory

    • Constructor Detail

      • SyslogdConfigFactory

        public SyslogdConfigFactory()
                             throws IOException
        Private constructor
        Throws:
        IOException - Thrown if the specified config file cannot be read
    • Method Detail

      • reload

        public void reload()
                    throws IOException
        Reload the config from the default config file
        Specified by:
        reload in interface SyslogdConfig
        Throws:
        IOException - Thrown if the specified config file cannot be read/loaded
      • getSyslogPort

        public int getSyslogPort()
        Return the port on which SNMP traps should be received.
        Specified by:
        getSyslogPort in interface SyslogdConfig
        Returns:
        the port on which SNMP traps should be received
      • getNewSuspectOnMessage

        public boolean getNewSuspectOnMessage()
        Return whether or not a newSuspect event should be sent when a trap is received from an unknown IP address.
        Specified by:
        getNewSuspectOnMessage in interface SyslogdConfig
        Returns:
        whether to generate newSuspect events on traps.
      • getParser

        public String getParser()

        getParser

        Specified by:
        getParser in interface SyslogdConfig
        Returns:
        the parser class to use when parsing syslog messages, as a string.
      • 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
      • 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
      • 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
      • 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 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
      • 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