用puppet安装Graylog2

我已经通过下载所有DEB文件并进行configuration来从头开始安装Graylog2。 现在我试图在木偶的帮助下在一个环境中安装Graylog2,到目前为止没有运气。

我使用的是来自伪造的elasticsearch / elasticsearch和graylog / graylog 。

这是我目前的configuration:

#site.pp node 'mynode' { class {'apt': proxy_host => 'proxynode', proxy_port => '3142', } class {'toolbox':} class {'java':} class {'elasticsearch': ensure => 'present', #enabled => ensure running + enabled true status => 'enabled', ###only works with the repository #version => '1.3.2', package_url => 'puppet:///files/deb/elasticsearch-0.90.13.deb', } elasticsearch::instance {'graylog2':} class {'mongodb':} class {'graylog2::repo': version => '0.21', } -> class {'graylog2::server': service_enable => 'true', rest_listen_uri => "http://${::ipaddress}:12900", rest_transport_uri => "http://${::ipaddress}:12900", #verysecurepw password_secret => 'cdebc192e0ae1f5df753018a8d284b9eacf2042d55fb712f7a89260c3fc3668d', root_password_sha2 => 'cdebc192e0ae1f5df753018a8d284b9eacf2042d55fb712f7a89260c3fc3668d', } -> class {'graylog2::web': application_secret => 'cdebc192e0ae1f5df753018a8d284b9eacf2042d55fb712f7a89260c3fc3668d', graylog2_server_uris => ["http://${::ipaddress}:12900"], } } 

deb包已经成功下载并安装。 当我使用自定义的elasticsearch实例时,它会自动启动,如果我不启动实例。

但是,如果我尝试启动graylog-服务器,它给了我以下内容:

 ERROR: Could not successfully connect to ElasticSearch. Check that your cluster state is not RED and that ElasticSearch is running properly. 

检查Elasticsearch服务:

 curl -XGET 'http://192.168.0.1:9200/_cluster/health?pretty=true' { "cluster_name" : "elasticsearch", "status" : "green", "timed_out" : false, "number_of_nodes" : 2, "number_of_data_nodes" : 2, "active_primary_shards" : 0, "active_shards" : 0, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 0 } 

看起来不错

看网页192.168.0.1:9000给我一个错误,说明graylog-web服务无法连接到服务器。

也许我错过了一个Graylog和Elasticsearch之间的连接,但我似乎无法find它。

Graylog错误日志:

 2014-09-09T12:02:54.383+02:00 ERROR [ServiceManager] Service IndexerSetupService [FAILED] has failed in the STARTING state. java.lang.IllegalStateException at org.graylog2.UI.exitHardWithWall(UI.java:40) at org.graylog2.indexer.Indexer.start(Indexer.java:205) at org.graylog2.initializers.IndexerSetupService.startUp(IndexerSetupService.java:66) at com.google.common.util.concurrent.AbstractIdleService$2$1.run(AbstractIdleService.java:54) at com.google.common.util.concurrent.Callables$3.run(Callables.java:95) at java.lang.Thread.run(Thread.java:745) 2014-09-09T12:02:54.394+02:00 ERROR [InputSetupService] Not starting any inputs because lifecycle is: Uninitialized?[LB:DEAD] 2014-09-09T12:02:54.404+02:00 INFO [PeriodicalsService] Shutting down periodical [org.graylog2.periodical.DeflectorManagerThread]. 2014-09-09T12:02:54.404+02:00 INFO [PeriodicalsService] Shutdown of periodical [org.graylog2.periodical.DeflectorManagerThread] complete, took <0ms>. 

—剪断—

你需要使用elasticsearch-0.90.10的弹性search版本,他们说在变更日志中它与elasticsearch-1.3.2兼容,但是当你使用新的elasticsearch时,我有同样的错误