热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

在MacOSXMavericks上设置Kibana。-SettingUpKibanaonMacOSXMavericks

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浏览器中。我知道我需要为这些文件服务。在这个示例中,我看到了服务器的内容。但是,我不确定。

  1. There is a recommended web server for Kibana
  2. Kibana有一个推荐的web服务器。
  3. 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.
  4. 如何在Mac OS X机器上设置一个网站。如果我在Windows上,我将使用IIS并将它指向我的目录。我确信Mac OS x上也有类似的东西,但是我不知道那是什么。

Thank you!

谢谢你!

3 个解决方案

#1


10  

Kibana 3

Kibana 3

Kibana is a html/Js website. So, you only need to prepare a web server for it! For example, an apache server. Mavericks has already install apache server. After you start apache server, put the kibana folder to the apache document root. Then you can visit Kibana by http://localhost/kibana

Kibana是一个html/Js网站。所以,您只需要为它准备一个web服务器!例如,apache服务器。Mavericks已经安装了apache服务器。启动apache服务器后,将kibana文件夹放到apache文档根目录中。然后可以通过http://localhost/kibana访问Kibana。

Remember to config the the elasticsearch server in config.js.

请记住配置config.js中的弹性搜索服务器。

Update:

更新:

Kibana 4 has buildin web server. After you start your Kibana, you can directly visit your page at : http://localhost:5601

Kibana 4已经构建了web服务器。启动Kibana之后,可以直接访问页面:http://localhost:5601。

#2


17  

While downloading the packages is perfectly fine, your install can be much easier on OS X if you use homebrew. (http://brew.sh)

虽然下载软件包非常好,但是如果您使用homebrew,您的安装在OS X上可能会更容易。(http://brew.sh)

Simply run:

简单地运行:

brew install elasticsearch
brew install logstash

And if you are missing the proper Java JDK or JRE files, homebrew will tell you where to get them from.

如果您缺少合适的Java JDK或JRE文件,homebrew将告诉您从哪里获取它们。

If you are running the OS X Server App (see App Store) and have websites service enabled you can also simply drop the Kibana files into the default website directory:

如果你正在运行OS X服务器应用程序(见App Store),并启用了网站服务,你也可以将Kibana文件放入默认的网站目录中:

/Library/Server/Web/Data/Sites/Default/

or a subdirectory like:

或子目录:

/Library/Server/Web/Data/Sites/Default/kibana

Hope this helps!

希望这可以帮助!

#3


7  

  1. I updated to the latest Java Version by downloading JDK Here: http://www.oracle.com/technetwork/java/javase/downloads/index.html

    我在这里下载了JDK的最新Java版本:http://www.oracle.com/technetwork/java/javase/downloads/index.html。

  2. Once Java is installed, I installed via brew:

    一旦安装了Java,我就通过brew安装:

    brew install elasticsearch

    酿造安装elasticsearch

    brew install logstash

    酿造安装logstash

  3. Download the Kibana binary here for mac: http://www.elastic.co/downloads/kibana

    下载Kibana二进制文件到mac: http://www.tic.co/downloads/kibana。

  4. Extract and run the bin/kibana executable and point your browser to localhost:5601

    提取并运行bin/kibana可执行文件,并将浏览器指向localhost:5601。

No need to download any third party servers. Cheers!

不需要下载任何第三方服务器。干杯!

UPDATE: Instead of step 3) & 4) You can also install kibana via brew: brew install kibana

更新:而不是第3步)和4)你也可以通过brew安装kibana: brew安装kibana。


推荐阅读
author-avatar
花颖年华
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有