NOTES: Trial Kibana+logstash+elasticsearch+redis

Source: Internet
Author: User
Tags download redis kibana logstash

Do Android 3 years, the network is not very concerned about, and now look let me eat a surprise, many of the previously expected features are open source, and powerful, try a bit.

Simple trial

Download elasticsearch-1.4.2 and start

Download logstash-1.4.2, run the following command

Bin/logstash-e ' input {stdin {}} output {elasticsearch {host = localhost}} '

The data entered by the console will be logstash to Elasticsearch (so Logstash is a data glue or connector)

Found a more index (but also a useless Node, later to understand)


Download kibana-3.1.0, Kibana just JS, put in the Web App directory will be

I put it in/var/lib/tomcat6/webapps/root/.

Then visit http://10.15.4.207:8080/kibana-3.1.0/index.html

But it is wrong to say that the connection is not elasticsearch, check more information, using the following methods to solve

Change Elasticsearch.yml, add the following two lines

Http.cors.enabled:true
Http.cors.allow-origin:/https?:\ /\/<*your\.kibana\.host*> (: [0-9]+)?


See the Kibana interface


Join Redis

Download redis-2.8.19

Run Src/redis-server start service after make

Redis is a data storage service interface similar to memcached


This experiment is actually very simple, with two logstash processes.

First feed, read stdin and then send data to Redis

The second one gives the index data, Logstash reads the Redis data, and then submits the data to the Elasticsearch

specific steps, editing logstash.feed.conf   

$ cat logstash.feed.conf

Input {
stdin {
}
}
Output {
StdOut {}
Redis {host = "127.0.0.1" data_type = "List" key = "Logstash"}
}

And start with Bin/logstash-f logstash.feed.conf .

Edit logstash.index.conf (content below)

Input {
Redis
{
Host = "127.0.0.1"
data_type = "List"
Key = "Logstash"
Type = "Redis-input"
}
}

Output
{
Elasticsearch {
host = "localhost"
}
}

Enter data in the console of the feed, and check in the Kibana window



The data was successfully imported.

With powerful tools, I haven't been working on the internet lately, but I'm also thinking about where it's available.


Ref

Http://www.cnblogs.com/xiaouisme/p/3977721.html

Http://www.cnblogs.com/buzzlight/p/logstash_elasticsearch_kibana_log.html

Http://tinytub.github.io/logstash-install.html

http://blog.csdn.net/longxibendi/article/details/35237543

http://m.oschina.net/blog/179848


NOTES: Trial Kibana+logstash+elasticsearch+redis

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.