{"action":"opened","issue":{"url":"https://api.github.com/repos/balabit/syslog-ng/issues/1090","repository_url":"https://api.github.com/repos/balabit/syslog-ng","labels_url":"https://api.github.com/repos/balabit/syslog-ng/issues/1090/labels{/name}","comments_url":"https://api.github.com/repos/balabit/syslog-ng/issues/1090/comments","events_url":"https://api.github.com/repos/balabit/syslog-ng/issues/1090/events","html_url":"https://github.com/balabit/syslog-ng/issues/1090","id":160450913,"number":1090,"title":"Unable to start elasticsearch destination when configures as master without data","user":{"login":"erempel","id":8525120,"avatar_url":"https://avatars.githubusercontent.com/u/8525120?v=3","gravatar_id":"","url":"https://api.github.com/users/erempel","html_url":"https://github.com/erempel","followers_url":"https://api.github.com/users/erempel/followers","following_url":"https://api.github.com/users/erempel/following{/other_user}","gists_url":"https://api.github.com/users/erempel/gists{/gist_id}","starred_url":"https://api.github.com/users/erempel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erempel/subscriptions","organizations_url":"https://api.github.com/users/erempel/orgs","repos_url":"https://api.github.com/users/erempel/repos","events_url":"https://api.github.com/users/erempel/events{/privacy}","received_events_url":"https://api.github.com/users/erempel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-15T15:25:04Z","updated_at":"2016-06-15T15:25:04Z","closed_at":null,"body":"If the two options for elasticsearch are configured as\r\n\r\nnode.data: false\r\nnode.master: true\r\n\r\nthe elasticsearch destination will not start with error\r\n\r\nException occured: org.elasticsearch.common.inject.CreationException: Guice creation errors:\r\n1) Error injecting constructor, java.lang.IllegalStateException: node is not configured to store local location\r\n  at org.elasticsearch.gateway.GatewayMetaState.<init>(Unknown Source)\r\n  while locating org.elasticsearch.gateway.GatewayMetaState\r\n    for parameter 3 at org.elasticsearch.gateway.Gateway.<init>(Unknown Source)\r\n  while locating org.elasticsearch.gateway.Gateway\r\n    for parameter 1 at org.elasticsearch.gateway.GatewayService.<init>(Unknown Source)\r\n  while locating org.elasticsearch.gateway.GatewayService\r\nCaused by: java.lang.IllegalStateException: node is not configured to store local location\r\n\r\n\r\nThis is a valid configuration for a stand alone elasticsearch node.\r\n\r\nsyslog-ng 3.8.0 alpha\r\nElasticsearch 2.3.3\r\n\r\nsyslog-ng configuration for my destination is\r\n\r\ndestination d_elasticsearch_0 {\r\n  elasticsearch(\r\n    index(\"flare-${YEAR}.${MONTH}.${DAY}.${HOUR}\")\r\n    type(\"flare\")\r\n    cluster(\"es-dcs-dev\")\r\n    client_mode(\"node\")\r\n    flush_limit(\"5000\")\r\n    template(\"$MESSAGE                    \")\r\n    resource(\"/etc/elasticsearch/elasticsearch.yml\")\r\n  );\r\n};\r\n"}}
{"actor":{"display_login":"erempel"}}