Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SettingUp ElasticSearch Logstash

I am trying to setup a LogStash/Redis/ElasticSearch pipeline for centralized logging,I have a few questions,

  1. I believe for this to work, you need a specific version of elasticsearch & logstash, is there a place where I can find a one-to-one mapping as to what versions of elasticsearch & logstash gel together.

  2. This might sound very silly but, in the elasticsearch.yml file all lines start with #, do I need to get rid of the # for some minimum values.

  3. Lastly I set up the whole pipeline, but I see the following error,

    NativeException - org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];[SERVICE_UNAVAILABLE/2/no master];:
        org/elasticsearch/cluster/block/ClusterBlocks.java:138:in `globalBlockedException'
        org/elasticsearch/cluster/block/ClusterBlocks.java:128:in `globalBlockedRaiseException'
    

Also I installed the elasticsearch head plugin, but it fails to load up, all I see is a spinning wheel in the Chrome tab.

like image 536
pup784 Avatar asked Jan 12 '13 00:01

pup784


People also ask

Is Logstash included in Elasticsearch?

Logstash is a light-weight, open-source, server-side data processing pipeline that allows you to collect data from a variety of sources, transform it on the fly, and send it to your desired destination. It is most often used as a data pipeline for Elasticsearch, an open-source analytics and search engine.

How do I set up Logstash in Kibana?

Connect to KibanaIn a web browser, go to the FQDN or public IP address of your Logstash Server. You should see a Kibana welcome page. Click on Logstash Dashboard to go to the premade dashboard.

What is the difference between Logstash and Elasticsearch?

Elasticsearch is an open source, full-text search and analysis engine, based on the Apache Lucene search engine. Logstash is a log aggregator that collects data from various input sources, executes different transformations and enhancements and then ships the data to various supported output destinations.


1 Answers

1 Look a the logstash elasticsearch output

It says that for logstash 1.1.9 you should use elasticsearch 0.20.2.

2 Depends of your needs and your environment, but initially you don't need to change anything in elasticsearch to make it work.

3 It sounds like you have problems finding the nodes, maybe it is something related with the multicast discovery and the configuration of your environment.

Look at elasticsearch zen discovery

Try disabling multicast to use unicast instead, to do that just uncomment this line within your elasticsearch.yml configuration file:

discovery.zen.ping.multicast.enabled: false

and set the unicast hosts to match your environment:

discovery.zen.ping.unicast.hosts: ["localhost"]

Maybe this thread can help you.

like image 164
Alejandro Avatar answered Sep 19 '22 00:09

Alejandro