作者:花颖年华 | 来源:互联网 | 2023-10-10 16:04
IamtryingtolearnabouttheELKstack(ElasticSearch,LogstashandKibana).Inanefforttogets
I am trying to learn about the ELK stack (ElasticSearch, Logstash and Kibana). In an effort to get started, I've been running through the "Getting Started" guide found at http://logstash.net/docs/1.4.0/tutorials/getting-started-with-logstash. I've been following these steps on a Mac OS X Mavericks installation. I did do one thing different, though.
我想了解一下ELK栈(弹性搜索,logstack和Kibana)。为了开始工作,我在http://logstash.net/docs/1.4.0/ tutorials/gettingstartedwith-logstash中找到了“入门”指南。我一直在遵循Mac OS X Mavericks的安装步骤。但我做了一件不同的事。
After downloading the Logstash and Elasticsearch tarballs, I copied their contents into the following locations:
在下载了logstack和弹性搜索tarball之后,我将其内容复制到以下位置:
- Logstash: /Applications/dev/logstash/1.4.0/
- Logstash:/ / dev / Logstash / 1.4.0 /应用程序
- Elasticsearch: /Applications/dev/Elasticsearch/1.1.0
- Elasticsearch:/应用程序/ dev / Elasticsearch / 1.1.0
I then start Elasticsearch using the following command from a terminal:
然后,我使用来自终端的以下命令启动了弹性搜索:
sudo /Applications/dev/Elasticsearch/1.1.0/bin/elasticsearch
I then start a new terminal window. In that new terminal window, I start Logstash using the following command:
然后我启动一个新的终端窗口。在那个新的终端窗口中,我使用下面的命令启动logstorage:
sudo /Applications/dev/logstash/1.4.0/bin/logstash -e 'input { stdin { } } output { elasticsearch { host => localhost } } '
Logstash appears to start just fine. If I enter 'you know, for logs' as mentioned in the getting started guide, I can see the results using POSTMAN. However, I'm stuck on Kibana.
登录似乎开始的很好。如果我输入“您知道,对于日志”,正如在入门指南中提到的那样,我可以使用POSTMAN查看结果。然而,我却困在基巴纳。
I've downloaded Kibana using the following command:
我使用以下命令下载了Kibana:
git clone https://github.com/elasticsearch/kibana.git kibana
I've placed the downloaded files into /Applications/dev/kibana/3.0.0
. I'm now stuck on how to actually bring Kibana up in a web browser. I know that somehow I need to serve these files. I see server stuff in this sample. However, I'm not sure if
我已将下载的文件放入/应用程序/dev/kibana/3.0.0。我现在还在讨论如何将Kibana放到web浏览器中。我知道我需要为这些文件服务。在这个示例中,我看到了服务器的内容。但是,我不确定。
- There is a recommended web server for Kibana
- Kibana有一个推荐的web服务器。
- How to setup a a web site on a Mac OS X machine. If I were on Windows, I'd just use IIS and point it at my directory. I'm sure there's something similar on Mac OS X. However, I'm not sure what that is.
- 如何在Mac OS X机器上设置一个网站。如果我在Windows上,我将使用IIS并将它指向我的目录。我确信Mac OS x上也有类似的东西,但是我不知道那是什么。
Thank you!
谢谢你!
3 个解决方案