热门标签 | 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。


推荐阅读
  • PyCharm下载与安装指南
    本文详细介绍如何从官方渠道下载并安装PyCharm集成开发环境(IDE),涵盖Windows、macOS和Linux系统,同时提供详细的安装步骤及配置建议。 ... [详细]
  • 本文详细介绍了如何在Linux系统上安装和配置Smokeping,以实现对网络链路质量的实时监控。通过详细的步骤和必要的依赖包安装,确保用户能够顺利完成部署并优化其网络性能监控。 ... [详细]
  • DNN Community 和 Professional 版本的主要差异
    本文详细解析了 DotNetNuke (DNN) 的两种主要版本:Community 和 Professional。通过对比两者的功能和附加组件,帮助用户选择最适合其需求的版本。 ... [详细]
  • MySQL 数据库迁移指南:从本地到远程及磁盘间迁移
    本文详细介绍了如何在不同场景下进行 MySQL 数据库的迁移,包括从一个硬盘迁移到另一个硬盘、从一台计算机迁移到另一台计算机,以及解决迁移过程中可能遇到的问题。 ... [详细]
  • ELK stack 学习记录
    ELK日志分析平台学习记录首先ELK主要指elasticsearch、logstash和kibana,三个开源软件组合而成的一套日志平台解决方案。可以将平时收集到的日志,通过前台展 ... [详细]
  • 优秀到卓越就差比他更快搭建elk集群架构上篇
    工作原理开源分布式搜索引擎,特点有:分布式,零配置,自动发现,索引自动分片,索引副本机制 ... [详细]
  • 深入解析Spring Cloud Ribbon负载均衡机制
    本文详细介绍了Spring Cloud中的Ribbon组件如何实现服务调用的负载均衡。通过分析其工作原理、源码结构及配置方式,帮助读者理解Ribbon在分布式系统中的重要作用。 ... [详细]
  • 作为一名新手,您可能会在初次尝试使用Eclipse进行Struts开发时遇到一些挑战。本文将为您提供详细的指导和解决方案,帮助您克服常见的配置和操作难题。 ... [详细]
  • 在Elasticsearch中,映射(mappings)定义了索引中字段的结构,类似于传统数据库中的表结构。虽然Elasticsearch支持字段的增删,但直接修改字段类型是不允许的。本文介绍了一种通过创建新索引并迁移数据的方式来改变字段类型的方法。 ... [详细]
  • 58同城的Elasticsearch应用与平台构建实践
    本文由58同城高级架构师于伯伟分享,由陈树昌编辑整理,内容源自DataFunTalk。文章探讨了Elasticsearch作为分布式搜索和分析引擎的应用,特别是在58同城的实施案例,包括集群优化、典型应用实例及自动化平台建设等方面。 ... [详细]
  • Centos7搭建ELK(Elasticsearch、Logstash、Kibana)教程及注意事项
    本文介绍了在Centos7上搭建ELK(Elasticsearch、Logstash、Kibana)的详细步骤,包括下载安装包、安装Elasticsearch、创建用户、修改配置文件等。同时提供了使用华为镜像站下载安装包的方法,并强调了保证版本一致的重要性。 ... [详细]
  •                               前言日志,一直以来都是开发人员和运维人员最关心的问题。开发人员可通过日志记录来协助问题定位,运维人员可通过日志发现系统隐 ... [详细]
  • ELK+filebeat安装部署监控springboot日志
    ELK服务器端部署1.安装dockercompose,略2.配置docker-compose.ymlcdrootelkvidocker-compose.ymlversion:&am ... [详细]
  • 分享一下我老师大神的人工智能教程!零基础,通俗易懂!http:blog.csdn.netjiangjunshow也欢迎大家转载本篇文章。分 ... [详细]
  • 1.ELK系统是什么ELK是一套日志中心解决方案,其三个字母分别表示:Elasticsearch:负责日志存储及检索Logstash&#x ... [详细]
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社区 版权所有