IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 嵌入式 -> mac m1 安装arm64v8 的elk -> 正文阅读

[嵌入式]mac m1 安装arm64v8 的elk

直接执行:

brew tap elastic/tap

brew install elastic/tap/elasticsearch-full

brew install elastic/tap/logstash-full

brew install elastic/tap/kibana-full

后台启动

brew services start elastic/tap/elasticsearch-full
brew services start elastic/tap/kibana-full
brew services start elastic/tap/logstash-full

命令行启动

elasticsearch
kibana
logstash

关闭

brew services stop elastic/tap/elasticsearch-full
brew services stop elastic/tap/kibana-full
brew services stop elastic/tap/logstash-full

elasticsearch相关配置文件所在目录

Data:    /opt/homebrew/var/lib/elasticsearch/elasticsearch_lixiyong/
Logs:    /opt/homebrew/var/log/elasticsearch/elasticsearch_lixiyong.log
Plugins: /opt/homebrew/var/elasticsearch/plugins/

Config:  /opt/homebrew/etc/elasticsearch/
Config:  /opt/homebrew/etc/kibana/
Config:  /opt/homebrew/etc/logstash/

用自定义配置文件启动logstash
关闭logstash

brew services stop elastic/tap/logstash-full

然后在任意位置创建test.conf

vim test.conf

内容如下:

input {
    tcp {
        port => 5044
        codec => json_lines #JSON格式
    }
}
output{
    elasticsearch {
        hosts => ["localhost:9200"]
    }
}

启动

logstash -f test.conf #启动

[1] 24185
Using bundled JDK: /opt/homebrew/Cellar/logstash-full/7.14.0/libexec/jdk.app/Contents/Home
?  ELK OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
/opt/homebrew/Cellar/logstash-full/7.14.0/libexec/vendor/bundle/jruby/2.5.0/gems/bundler-1.17.3/lib/bundler/rubygems_integration.rb:200: warning: constant Gem::ConfigMap is deprecated
Sending Logstash logs to /opt/homebrew/Cellar/logstash-full/7.14.0/libexec/logs which is now configured via log4j2.properties
[2021-08-20T19:29:24,323][INFO ][logstash.runner          ] Log4j configuration path used is: /opt/homebrew/Cellar/logstash-full/7.14.0/libexec/config/log4j2.properties
[2021-08-20T19:29:24,333][INFO ][logstash.runner          ] Starting Logstash {"logstash.version"=>"7.14.0", "jruby.version"=>"jruby 9.2.19.0 (2.5.8) 2021-06-15 55810c552b OpenJDK 64-Bit Server VM 11.0.11+9 on 11.0.11+9 +indy +jit [darwin-x86_64]"}
[2021-08-20T19:29:24,431][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified

这个配置对应logback-spring.xml

<!-- 为logstash输出的JSON格式的Appender -->
<appender name="logstash"
          class="net.logstash.logback.appender.LogstashTcpSocketAppender">
    <destination>127.0.0.1:5044</destination>
    <!-- 日志输出编码 -->
    <encoder
            class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
        <providers>
            <timestamp>

操作日志:

Last login: Fri Aug 20 07:53:31 on ttys000
?  ~ brew tap elastic/tap
==> Tapping elastic/tap
Cloning into '/opt/homebrew/Library/Taps/elastic/homebrew-tap'...
remote: Enumerating objects: 1035, done.
remote: Counting objects: 100% (276/276), done.
remote: Compressing objects: 100% (175/175), done.
remote: Tot

al 1035 (delta 199), reused 148 (delta 100), pack-reused 759
Receiving objects: 100% (1035/1035), 250.53 KiB | 317.00 KiB/s, done.
Resolving deltas: 100% (785/785), done.
Tapped 17 formulae (37 files, 353.2KB).
?  ~ brew install elastic/tap/elasticsearch-full
==> Installing elasticsearch-full from elastic/tap
==> Downloading https://artifacts.elastic.co/downloads/elasticsearch/elasticsear
######################################################################## 100.0%
Warning: Tried to install empty array to /opt/homebrew/etc/elasticsearch/jvm.options.d
==> codesign -f -s - /opt/homebrew/Cellar/elasticsearch-full/7.14.0/libexec/modu
==> find /opt/homebrew/Cellar/elasticsearch-full/7.14.0/libexec/jdk.app/Contents
==> Caveats
Data:    /opt/homebrew/var/lib/elasticsearch/elasticsearch_lixiyong/
Logs:    /opt/homebrew/var/log/elasticsearch/elasticsearch_lixiyong.log
Plugins: /opt/homebrew/var/elasticsearch/plugins/
Config:  /opt/homebrew/etc/elasticsearch/

To have launchd start elastic/tap/elasticsearch-full now and restart at login:
  brew services start elastic/tap/elasticsearch-full
Or, if you don't want/need a background service you can just run:
  elasticsearch
==> Summary
🍺  /opt/homebrew/Cellar/elasticsearch-full/7.14.0: 962 files, 522.4MB, built in 8 seconds
?  ~ brew install elastic/tap/logstash-full
==> Installing logstash-full from elastic/tap
==> Downloading https://artifacts.elastic.co/downloads/logstash/logstash-7.14.0-
######################################################################## 100.0%
==> find /opt/homebrew/Cellar/logstash-full/7.14.0/libexec/jdk.app/Contents/Home
==> Caveats
Please read the getting started guide located at:
  https://www.elastic.co/guide/en/logstash/current/getting-started-with-logstash.html

To have launchd start elastic/tap/logstash-full now and restart at login:
  brew services start elastic/tap/logstash-full
Or, if you don't want/need a background service you can just run:
  logstash
==> Summary
🍺  /opt/homebrew/Cellar/logstash-full/7.14.0: 13,664 files, 586.0MB, built in 15 seconds
?  ~ brew install elastic/tap/kibana-full
==> Installing kibana-full from elastic/tap
==> Downloading https://artifacts.elastic.co/downloads/kibana/kibana-7.14.0-darw
######################################################################## 100.0%
==> Caveats
Config: /opt/homebrew/etc/kibana/
If you wish to preserve your plugins upon upgrade, make a copy of
/opt/homebrew/opt/kibana-full/plugins before upgrading, and copy it into the
new keg location after upgrading.

To have launchd start elastic/tap/kibana-full now and restart at login:
  brew services start elastic/tap/kibana-full
Or, if you don't want/need a background service you can just run:
  kibana
==> Summary
🍺  /opt/homebrew/Cellar/kibana-full/7.14.0: 51,328 files, 775.4MB, built in 36 seconds
?  ~
  嵌入式 最新文章
基于高精度单片机开发红外测温仪方案
89C51单片机与DAC0832
基于51单片机宠物自动投料喂食器控制系统仿
《痞子衡嵌入式半月刊》 第 68 期
多思计组实验实验七 简单模型机实验
CSC7720
启明智显分享| ESP32学习笔记参考--PWM(脉冲
STM32初探
STM32 总结
【STM32】CubeMX例程四---定时器中断(附工
上一篇文章      下一篇文章      查看所有文章
加:2021-08-22 13:41:27  更:2021-08-22 13:43:21 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 -2024/11/25 23:12:16-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码