okies… this was missing entry
elasticsearch.yml
discovery.zen.ping.unicast.hosts: ["localhost:9300"]
graylog config
elasticsearch_discovery_zen_ping_unicast_hosts = localhost:9300
now there are no exceptions like:
2017-05-13 18:34:06,006 ERROR: org.graylog2.shared.rest.exceptionmappers.AnyExceptionClassMapper - Unhandled exception in REST resource
org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];
But I still see
2017-05-14 00:21:20,652 INFO : org.graylog2.periodical.IndexRetentionThread - Elasticsearch cluster not available, skipping index retention checks.
Question: log says INFO, but as it says cluster not available, what it really means?
[details=Summary]2017-05-14 00:21:13,764 INFO : org.graylog2.bootstrap.CmdLineTool - Loaded plugin: Elastic Beats Input 2.2.3 [org.graylog.plugins.beats.BeatsInputPlugin]
2017-05-14 00:21:13,766 INFO : org.graylog2.bootstrap.CmdLineTool - Loaded plugin: Collector 2.2.3 [org.graylog.plugins.collector.CollectorPlugin]
2017-05-14 00:21:13,767 INFO : org.graylog2.bootstrap.CmdLineTool - Loaded plugin: Enterprise Integration Plugin 2.2.3 [org.graylog.plugins.enterprise_integration.EnterpriseIntegrationPlugin]
2017-05-14 00:21:13,768 INFO : org.graylog2.bootstrap.CmdLineTool - Loaded plugin: MapWidgetPlugin 2.2.3 [org.graylog.plugins.map.MapWidgetPlugin]
2017-05-14 00:21:13,776 INFO : org.graylog2.bootstrap.CmdLineTool - Loaded plugin: Pipeline Processor Plugin 2.2.3 [org.graylog.plugins.pipelineprocessor.ProcessorPlugin]
2017-05-14 00:21:13,776 INFO : org.graylog2.bootstrap.CmdLineTool - Loaded plugin: Anonymous Usage Statistics 2.2.3 [org.graylog.plugins.usagestatistics.UsageStatsPlugin]
2017-05-14 00:21:14,937 INFO : org.graylog2.bootstrap.CmdLineTool - Running with JVM arguments: -Djava.library.path=./…/lib/sigar -Xms1g -Xmx1g -XX:NewRatio=1 -XX:+ResizeTLAB -XX:+UseConcMarkSweepGC -XX:+CMSConcurrentMTEnabled -XX:+CMSClassUnloadingEnabled -XX:+UseParNewGC -XX:-OmitStackTraceInFastThrow
2017-05-14 00:21:15,101 INFO : org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator null
2017-05-14 00:21:15,368 INFO : org.graylog2.shared.system.stats.SigarService - Failed to load SIGAR. Falling back to JMX implementations.
2017-05-14 00:21:16,750 INFO : org.graylog2.shared.buffers.InputBufferImpl - Message journal is enabled.
2017-05-14 00:21:16,769 INFO : org.graylog2.plugin.system.NodeId - Node ID: a82459e5-b0d2-4ead-ba37-fa27e980eb86
2017-05-14 00:21:16,936 INFO : kafka.log.LogManager - Loading logs.
2017-05-14 00:21:16,999 INFO : kafka.log.LogManager - Logs loading complete.
2017-05-14 00:21:16,999 INFO : org.graylog2.shared.journal.KafkaJournal - Initialized Kafka based journal at data/journal
2017-05-14 00:21:17,013 INFO : org.graylog2.shared.buffers.InputBufferImpl - Initialized InputBufferImpl with ring size <65536> and wait strategy , running 2 parallel message handlers.
2017-05-14 00:21:17,027 INFO : org.mongodb.driver.cluster - Cluster created with settings {hosts=[192.168.1.4:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout=‘30000 ms’, maxWaitQueueSize=5000}
2017-05-14 00:21:17,062 INFO : org.mongodb.driver.cluster - No server chosen by ReadPreferenceServerSelector{readPreference=primary} from cluster description ClusterDescription{type=UNKNOWN, connectionMode=SINGLE, serverDescriptions=[ServerDescription{address=192.168.1.4:27017, type=UNKNOWN, state=CONNECTING}]}. Waiting for 30000 ms before timing out
2017-05-14 00:21:17,081 INFO : org.mongodb.driver.connection - Opened connection [connectionId{localValue:1, serverValue:62}] to 192.168.1.4:27017
2017-05-14 00:21:17,083 INFO : org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescription{address=192.168.1.4:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 4]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, roundTripTimeNanos=495971}
2017-05-14 00:21:17,089 INFO : org.mongodb.driver.connection - Opened connection [connectionId{localValue:2, serverValue:63}] to 192.168.1.4:27017
2017-05-14 00:21:17,322 INFO : org.elasticsearch.node - [es_2.4.4_node-1] version[2.4.4], pid[55742], build[fcbb46d/2017-01-03T11:33:16Z]
2017-05-14 00:21:17,322 INFO : org.elasticsearch.node - [es_2.4.4_node-1] initializing …
2017-05-14 00:21:17,326 INFO : org.elasticsearch.plugins - [es_2.4.4_node-1] modules , plugins [graylog-monitor], sites
2017-05-14 00:21:18,485 INFO : org.elasticsearch.node - [es_2.4.4_node-1] initialized
2017-05-14 00:21:18,535 INFO : org.graylog2.shared.buffers.ProcessBuffer - Initialized ProcessBuffer with ring size <65536> and wait strategy .
2017-05-14 00:21:19,682 INFO : org.graylog2.bindings.providers.RulesEngineProvider - No static rules file loaded.
2017-05-14 00:21:19,911 WARN : org.graylog.plugins.map.geoip.GeoIpResolverEngine - GeoIP database file does not exist: /etc/graylog/server/GeoLite2-City.mmdb
2017-05-14 00:21:19,917 INFO : org.graylog2.buffers.OutputBuffer - Initialized OutputBuffer with ring size <65536> and wait strategy .
2017-05-14 00:21:19,973 WARN : org.graylog.plugins.map.geoip.GeoIpResolverEngine - GeoIP database file does not exist: /etc/graylog/server/GeoLite2-City.mmdb
2017-05-14 00:21:20,058 WARN : org.graylog.plugins.map.geoip.GeoIpResolverEngine - GeoIP database file does not exist: /etc/graylog/server/GeoLite2-City.mmdb
2017-05-14 00:21:20,092 WARN : org.graylog.plugins.map.geoip.GeoIpResolverEngine - GeoIP database file does not exist: /etc/graylog/server/GeoLite2-City.mmdb
2017-05-14 00:21:20,123 WARN : org.graylog.plugins.map.geoip.GeoIpResolverEngine - GeoIP database file does not exist: /etc/graylog/server/GeoLite2-City.mmdb
2017-05-14 00:21:20,627 INFO : org.graylog2.bootstrap.ServerBootstrap - Graylog server 2.2.3+7adc951 starting up
2017-05-14 00:21:20,627 INFO : org.graylog2.bootstrap.ServerBootstrap - JRE: Oracle Corporation 1.8.0_60-ea on Mac OS X 10.12.4
2017-05-14 00:21:20,627 INFO : org.graylog2.bootstrap.ServerBootstrap - Deployment: unknown
2017-05-14 00:21:20,627 INFO : org.graylog2.bootstrap.ServerBootstrap - OS: macOS Sierra (10.12.4)
2017-05-14 00:21:20,627 INFO : org.graylog2.bootstrap.ServerBootstrap - Arch: x86_64
2017-05-14 00:21:20,629 WARN : org.graylog2.shared.events.DeadEventLoggingListener - Received unhandled event of type <org.graylog2.plugin.lifecycles.Lifecycle> from event bus <AsyncEventBus{graylog-eventbus}>
2017-05-14 00:21:20,644 INFO : org.graylog2.shared.initializers.PeriodicalsService - Starting 26 periodicals …
2017-05-14 00:21:20,644 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.ThroughputCalculator] periodical in [0s], polling every [1s].
2017-05-14 00:21:20,646 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.AlertScannerThread] periodical in [10s], polling every [60s].
2017-05-14 00:21:20,646 INFO : org.elasticsearch.node - [es_2.4.4_node-1] starting …
2017-05-14 00:21:20,647 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.BatchedElasticSearchOutputFlushThread] periodical in [0s], polling every [1s].
2017-05-14 00:21:20,648 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.ClusterHealthCheckThread] periodical in [120s], polling every [20s].
2017-05-14 00:21:20,649 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.ContentPackLoaderPeriodical] periodical, running forever.
2017-05-14 00:21:20,650 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.GarbageCollectionWarningThread] periodical, running forever.
2017-05-14 00:21:20,650 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.IndexerClusterCheckerThread] periodical in [0s], polling every [30s].
2017-05-14 00:21:20,651 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.IndexRetentionThread] periodical in [0s], polling every [300s].
2017-05-14 00:21:20,651 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.IndexRotationThread] periodical in [0s], polling every [10s].
2017-05-14 00:21:20,652 INFO : org.graylog2.periodical.IndexRetentionThread - Elasticsearch cluster not available, skipping index retention checks.
2017-05-14 00:21:20,652 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.NodePingThread] periodical in [0s], polling every [1s].
2017-05-14 00:21:20,652 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.VersionCheckThread] periodical in [300s], polling every [1800s].
2017-05-14 00:21:20,653 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.ThrottleStateUpdaterThread] periodical in [1s], polling every [1s].
2017-05-14 00:21:20,653 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.events.ClusterEventPeriodical] periodical in [0s], polling every [1s].
2017-05-14 00:21:20,654 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.events.ClusterEventCleanupPeriodical] periodical in [0s], polling every [86400s].
2017-05-14 00:21:20,653 INFO : org.mongodb.driver.connection - Opened connection [connectionId{localValue:3, serverValue:64}] to 192.168.1.4:27017
2017-05-14 00:21:20,654 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.ClusterIdGeneratorPeriodical] periodical, running forever.
2017-05-14 00:21:20,654 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.IndexRangesMigrationPeriodical] periodical, running forever.
2017-05-14 00:21:20,654 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.IndexRangesCleanupPeriodical] periodical in [15s], polling every [3600s].
2017-05-14 00:21:20,654 INFO : org.mongodb.driver.connection - Opened connection [connectionId{localValue:4, serverValue:65}] to 192.168.1.4:27017
2017-05-14 00:21:20,657 INFO : org.mongodb.driver.connection - Opened connection [connectionId{localValue:5, serverValue:66}] to 192.168.1.4:27017
2017-05-14 00:21:20,659 INFO : org.mongodb.driver.connection - Opened connection [connectionId{localValue:6, serverValue:67}] to 192.168.1.4:27017
2017-05-14 00:21:20,659 INFO : org.mongodb.driver.connection - Opened connection [connectionId{localValue:7, serverValue:68}] to 192.168.1.4:27017
2017-05-14 00:21:20,660 INFO : org.mongodb.driver.connection - Opened connection [connectionId{localValue:9, serverValue:69}] to 192.168.1.4:27017
2017-05-14 00:21:20,660 INFO : org.mongodb.driver.connection - Opened connection [connectionId{localValue:8, serverValue:70}] to 192.168.1.4:27017
2017-05-14 00:21:20,669 INFO : org.graylog2.periodical.IndexerClusterCheckerThread - Indexer not fully initialized yet. Skipping periodic cluster check.
2017-05-14 00:21:20,669 INFO : org.graylog2.shared.initializers.PeriodicalsService - Not starting [org.graylog2.periodical.UserPermissionMigrationPeriodical] periodical. Not configured to run on this node.
2017-05-14 00:21:20,669 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.AlarmCallbacksMigrationPeriodical] periodical, running forever.
2017-05-14 00:21:20,670 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.ConfigurationManagementPeriodical] periodical, running forever.
2017-05-14 00:21:20,673 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.LdapGroupMappingMigration] periodical, running forever.
2017-05-14 00:21:20,675 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.IndexFailuresPeriodical] periodical, running forever.
2017-05-14 00:21:20,676 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog.plugins.usagestatistics.UsageStatsNodePeriodical] periodical in [300s], polling every [21600s].
2017-05-14 00:21:20,676 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog.plugins.usagestatistics.UsageStatsClusterPeriodical] periodical in [300s], polling every [21600s].
2017-05-14 00:21:20,679 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog.plugins.pipelineprocessor.periodical.LegacyDefaultStreamMigration] periodical, running forever.
2017-05-14 00:21:20,679 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog.plugins.collector.periodical.PurgeExpiredCollectorsThread] periodical in [0s], polling every [3600s].
2017-05-14 00:21:20,683 INFO : org.graylog.plugins.pipelineprocessor.periodical.LegacyDefaultStreamMigration - Legacy default stream has no connections, no migration needed.
2017-05-14 00:21:20,724 INFO : org.graylog2.migrations.V20161130141500_DefaultStreamRecalcIndexRanges - Cluster not connected yet, delaying migration until it is reachable.
2017-05-14 00:21:20,735 INFO : org.elasticsearch.transport - [es_2.4.4_node-1] publish_address {192.168.1.4:9350}, bound_addresses {192.168.1.4:9350}
2017-05-14 00:21:20,740 INFO : org.elasticsearch.discovery - [es_2.4.4_node-1] es_2.4.4/2efwyyU5Rp-hcPwn8a60pg
2017-05-14 00:21:21,011 INFO : org.graylog2.shared.initializers.JerseyService - Enabling CORS for HTTP endpoint
2017-05-14 00:21:23,746 WARN : org.elasticsearch.discovery - [es_2.4.4_node-1] waited for 3s and no initial state was set by the discovery
2017-05-14 00:21:23,746 INFO : org.elasticsearch.node - [es_2.4.4_node-1] started
2017-05-14 00:21:23,803 INFO : org.elasticsearch.cluster.service - [es_2.4.4_node-1] detected_master {es_2.4.4_node-1}{fkeTi0n0Rui5XJWrioBPGQ}{192.168.1.4}{192.168.1.4:9300}, added {{es_2.4.4_node-1}{fkeTi0n0Rui5XJWrioBPGQ}{192.168.1.4}{192.168.1.4:9300},}, reason: zen-disco-receive(from master [{es_2.4.4_node-1}{fkeTi0n0Rui5XJWrioBPGQ}{192.168.1.4}{192.168.1.4:9300}])
2017-05-14 00:21:27,757 INFO : org.glassfish.grizzly.http.server.NetworkListener - Started listener bound to [192.168.1.4:12900]
2017-05-14 00:21:27,759 INFO : org.glassfish.grizzly.http.server.HttpServer - [HttpServer] Started.
2017-05-14 00:21:27,759 INFO : org.graylog2.shared.initializers.JerseyService - Started REST API at http://192.168.1.4:12900/api/
2017-05-14 00:21:29,561 INFO : org.glassfish.grizzly.http.server.NetworkListener - Started listener bound to [192.168.1.4:9000]
2017-05-14 00:21:29,561 INFO : org.glassfish.grizzly.http.server.HttpServer - [HttpServer-1] Started.
2017-05-14 00:21:29,561 INFO : org.graylog2.shared.initializers.JerseyService - Started Web Interface at http://192.168.1.4:9000/
2017-05-14 00:21:29,562 INFO : org.graylog2.shared.initializers.ServiceManagerListener - Services are healthy
2017-05-14 00:21:29,562 INFO : org.graylog2.shared.initializers.InputSetupService - Triggering launching persisted inputs, node transitioned from Uninitialized [LB:DEAD] to Running [LB:ALIVE]
2017-05-14 00:21:29,562 INFO : org.graylog2.bootstrap.ServerBootstrap - Services started, startup times in ms: {OutputSetupService [RUNNING]=1, ConfigurationEtagService [RUNNING]=3, BufferSynchronizerService [RUNNING]=3, JournalReader [RUNNING]=3, InputSetupService [RUNNING]=3, KafkaJournal [RUNNING]=4, StreamCacheService [RUNNING]=15, PeriodicalsService [RUNNING]=38, IndexerSetupService [RUNNING]=3170, JerseyService [RUNNING]=8917}
2017-05-14 00:21:29,567 INFO : org.graylog2.bootstrap.ServerBootstrap - Graylog server up and running.
[/details]