Re: [graylog2] Re: Graylog not connecting to elasticsearch

2016-09-07 Thread Karan Chandok
Hi Jochen,

Please find the attached updated configuration files.

On Tue, Sep 6, 2016 at 2:09 PM, Jochen Schalanda <joc...@graylog.com> wrote:

> Hi Karan,
>
> please post the current Graylog and Elasticsearch configuration files
> you're using (after the changes you've made).
>
> Cheers,
> Jochen
>
> On Tuesday, 6 September 2016 09:38:24 UTC+2, Karan Chandok wrote:
>>
>> Hi Jochen,
>>
>> Yes elasticsearch is running on same machine. I have removed white space
>> and removed unicast host setting as suggested by you however still same
>> error is coming.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Graylog Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/graylog2/qnXhVTJEUXo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> graylog2+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/graylog2/ae03a43f-c6df-47f7-893a-74d455a00bed%40googlegroups.com
> <https://groups.google.com/d/msgid/graylog2/ae03a43f-c6df-47f7-893a-74d455a00bed%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thanks & Regards
karan Chandok

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/CAKVWUYBi2O4VH8kN9mBVgM22ZyfUnca-6ga6WKTd8Bgf7cgJnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


elasticsearch.yml
Description: Binary data


server.conf
Description: Binary data


[graylog2] Graylog not connecting to elasticsearch

2016-09-03 Thread Karan Chandok
Hello,

I have installed graylog-server-2.0.3-1 along with elasticsearch 2.3.2

my elastic search is working fine.

Curl output :-

curl -X GET "http://localhost:9200;
{
  "name" : "Inza",
  "cluster_name" : "graylog2",
  "version" : {
"number" : "2.3.2",
"build_hash" : "b9e4a6acad4008027e4038f6abed7f7dba346f94",
"build_timestamp" : "2016-04-21T16:03:47Z",
"build_snapshot" : false,
"lucene_version" : "5.5.0"
  },
  "tagline" : "You Know, for Search"
}

But graylog is not connecting to elasticsearch cluster. Following message 
is there in logs file.

Log :- 2016-09-03T06:01:11.963Z INFO  [HttpServer] [HttpServer-1] Started.
2016-09-03T06:01:11.964Z INFO  [RestApiService] Started REST API at 

2016-09-03T06:01:14.741Z WARN  [IndexerSetupService] Could not connect to 
Elasticsearch
2016-09-03T06:01:14.741Z INFO  [IndexerSetupService] If you're using 
multicast, check that it is working in your network and that Elasticsearch 
is accessible. Also check that the cluster name setting is correct.
2016-09-03T06:01:14.743Z INFO  [IndexerSetupService] See 
http://docs.graylog.org/en/2.0/pages/configuration/elasticsearch.html for 
details.
2016-09-03T06:01:14.744Z INFO  [ServiceManagerListener] Services are healthy
2016-09-03T06:01:14.744Z INFO  [ServerBootstrap] Services started, startup 
times in ms: {JournalReader [RUNNING]=2, MetricsReporterService 
[RUNNING]=4, InputSetupService [RUNNING]=5, KafkaJournal [RUNNING]=16, 
OutputSetupService [RUNNING]=39, BufferSynchronizerService [RUNNING]=49, 
PeriodicalsService [RUNNING]=83, WebInterfaceService [RUNNING]=2307, 
RestApiService [RUNNING]=5456, IndexerSetupService [RUNNING]=8233}
2016-09-03T06:01:14.744Z INFO  [InputSetupService] Triggering launching 
persisted inputs, node transitioned from Uninitialized [LB:DEAD] to 
Running [LB:ALIVE]
2016-09-03T06:01:14.748Z INFO  [ServerBootstrap] Graylog server up and 
running.
2016-09-03T06:01:21.527Z INFO  [IndexRangesCleanupPeriodical] Skipping 
index range cleanup because the Elasticsearch cluster is unreachable or 
unhealthy
2016-09-03T06:02:06.520Z INFO  [IndexerClusterCheckerThread] Indexer not 
fully initialized yet. Skipping periodic cluster check.
2016-09-03T06:02:36.521Z INFO  [IndexerClusterCheckerThread] Indexer not 
fully initialized yet. Skipping periodic cluster check.
2016-09-03T06:03:06.523Z INFO  [IndexerClusterCheckerThread] Indexer not 
fully initialized yet. Skipping periodic cluster check.

I have attached my elasticsearch and graylog configurations files. Please 
help me and suggest what I am doing wrong as I am a beginner in this.

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/f6f80c23-d79b-453c-af85-d6eb3c46e2f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


elasticsearch.yml
Description: Binary data
# If you are running more than one instances of Graylog server you have to 
select one of these
# instances as master. The master will perform some periodical tasks that 
non-masters won't perform.
is_master = true

# The auto-generated node ID will be stored in this file and read after 
restarts. It is a good idea
# to use an absolute file path here if you are starting Graylog server from 
init scripts or similar.
node_id_file = /etc/graylog/server/node-id

# You MUST set a secret to secure/pepper the stored user passwords here. Use at 
least 64 characters.
# Generate one by using for example: pwgen -N 1 -s 96
password_secret = 
NYSvOvozNuSE2BIjseNMKnemJKfipa6vYe4XfaTqWvo7opjQ9deOCUhaY5ItOurGaKiBoTbDFQQQmhWSs5Oy10cQS3tpEf9f

# The default root user is named 'admin'
#root_username = admin

# You MUST specify a hash password for the root user (which you only need to 
initially set up the
# system and in case you lose connectivity to your authentication backend)
# This password cannot be changed using the API or via the web interface. If 
you need to change it,
# modify it in this file.
# Create one by using for example: echo -n yourpassword | shasum -a 256
# and put the resulting hash value into the following line
root_password_sha2 = 
5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8

# The email address of the root user.
# Default is empty
#root_email = ""

# The time zone setting of the root user. See 
http://www.joda.org/joda-time/timezones.html for a list of valid time zones.
# Default is UTC
#root_timezone = UTC

# Set plugin directory here (relative or absolute)
plugin_dir = /usr/share/graylog-server/plugin

# REST API listen URI. Must be reachable by other Graylog server nodes if you 
run a cluster.
# When using Graylog Collectors, this URI will be used to receive heartbeat 
messages and must be accessible for all collectors.
rest_listen_uri =