Package org.graylog2

Class Configuration


public class Configuration extends BaseConfiguration
Helper class to hold configuration of Graylog
  • Constructor Details

    • Configuration

      public Configuration()
  • Method Details

    • maintainsStreamAwareFieldTypes

      public boolean maintainsStreamAwareFieldTypes()
    • isMaster

      @Deprecated public boolean isMaster()
      Deprecated.
      Use isLeader() instead.
    • isLeader

      public boolean isLeader()
      Returns the configured leader status. This is only valid for static leader election. You should probably use LeaderElectionService.isLeader() instead.
    • setIsMaster

      @Deprecated public void setIsMaster(boolean is)
      Deprecated.
    • setIsLeader

      public void setIsLeader(boolean is)
      We should remove this method after refactoring StaticLeaderElectionService and Server so that they don't need this to communicate demotion from leader to follower anymore.
    • getLeaderElectionMode

      public LeaderElectionMode getLeaderElectionMode()
    • getLockServiceLockTTL

      public Duration getLockServiceLockTTL()
    • getLeaderElectionLockPollingInterval

      public Duration getLeaderElectionLockPollingInterval()
    • getPasswordSecret

      public String getPasswordSecret()
    • getOutputBatchSize

      public int getOutputBatchSize()
    • getOutputFlushInterval

      public int getOutputFlushInterval()
    • getOutputBufferProcessors

      public int getOutputBufferProcessors()
    • getOutputBufferProcessorThreadsCorePoolSize

      public int getOutputBufferProcessorThreadsCorePoolSize()
    • isCloud

      public boolean isCloud()
    • getAutoRestartInputs

      public boolean getAutoRestartInputs()
    • runMigrations

      public boolean runMigrations()
    • ignoreMigrationFailures

      public boolean ignoreMigrationFailures()
    • getSkipPreflightChecks

      public boolean getSkipPreflightChecks()
    • getNodeIdFile

      public String getNodeIdFile()
    • getRootUsername

      public String getRootUsername()
    • getRootPasswordSha2

      public String getRootPasswordSha2()
    • getRootTimeZone

      public org.joda.time.DateTimeZone getRootTimeZone()
    • getRootEmail

      public String getRootEmail()
    • isAllowLeadingWildcardSearches

      public boolean isAllowLeadingWildcardSearches()
    • isAllowHighlighting

      public boolean isAllowHighlighting()
    • getLoadBalancerRecognitionPeriodSeconds

      public int getLoadBalancerRecognitionPeriodSeconds()
    • getStreamProcessingTimeout

      public long getStreamProcessingTimeout()
    • getStreamProcessingMaxFaults

      public int getStreamProcessingMaxFaults()
    • getOutputModuleTimeout

      public long getOutputModuleTimeout()
    • getOutputFaultCountThreshold

      public long getOutputFaultCountThreshold()
    • getOutputFaultPenaltySeconds

      public long getOutputFaultPenaltySeconds()
    • getStaleMasterTimeout

      @Deprecated public int getStaleMasterTimeout()
      Deprecated.
      Use getStaleLeaderTimeout instead
    • getStaleLeaderTimeout

      public int getStaleLeaderTimeout()
    • getLdapConnectionTimeout

      public int getLdapConnectionTimeout()
    • getAlertCheckInterval

      @Deprecated public int getAlertCheckInterval()
      Deprecated.
    • getDefaultMessageOutputClass

      public String getDefaultMessageOutputClass()
    • getDashboardWidgetDefaultCacheTime

      public com.github.joschi.jadconfig.util.Duration getDashboardWidgetDefaultCacheTime()
    • getUserPasswordDefaultAlgorithm

      public String getUserPasswordDefaultAlgorithm()
    • getUserPasswordBCryptSaltSize

      public int getUserPasswordBCryptSaltSize()
    • isContentPacksLoaderEnabled

      public boolean isContentPacksLoaderEnabled()
    • getContentPacksDir

      public Path getContentPacksDir()
    • getContentPacksAutoInstall

      public Set<String> getContentPacksAutoInstall()
    • getIndexRangesCleanupInterval

      public com.github.joschi.jadconfig.util.Duration getIndexRangesCleanupInterval()
    • getTrustedProxies

      public Set<IpSubnet> getTrustedProxies()
    • getLoadBalancerRequestThrottleJournalUsage

      public int getLoadBalancerRequestThrottleJournalUsage()
    • getDeactivatedBuiltinAuthenticationProviders

      public Set<String> getDeactivatedBuiltinAuthenticationProviders()
    • getFailureHandlingQueueCapacity

      public int getFailureHandlingQueueCapacity()
    • getFailureHandlingShutdownAwait

      public com.github.joschi.jadconfig.util.Duration getFailureHandlingShutdownAwait()
    • getEnabledTlsProtocols

      @Deprecated public Set<String> getEnabledTlsProtocols()
      Deprecated.
      This is needed for backwards compatibility. The setting in TLSProtocolsConfiguration should be used instead.
    • validatePasswordSecret

      @ValidatorMethod public void validatePasswordSecret() throws com.github.joschi.jadconfig.ValidationException
      Throws:
      com.github.joschi.jadconfig.ValidationException
    • validateRootUser

      @ValidatorMethod public void validateRootUser() throws com.github.joschi.jadconfig.ValidationException
      Throws:
      com.github.joschi.jadconfig.ValidationException
    • validateLeaderElectionTimeouts

      @ValidatorMethod public void validateLeaderElectionTimeouts() throws com.github.joschi.jadconfig.ValidationException
      Throws:
      com.github.joschi.jadconfig.ValidationException
    • isRootUserDisabled

      public boolean isRootUserDisabled()
      The root user is disabled if the RootAccountRealm is deactivated.
    • enablePreflightWebserver

      public boolean enablePreflightWebserver()