Elastic

Elastic Stack安装

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 20:02:59
环境: OS: Centos 7.6 JDK: 1.8.0_91 下载地址: https://artifacts.elastic.co/downloads/beats/heartbeat/heartbeat-7.4.2-linux-x86_64.tar.gz https://artifacts.elastic.co/downloads/beats/packetbeat/packetbeat-7.4.2-linux-x86_64.tar.gz https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-7.4.2-linux-x86_64.tar.gz https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.4.2-linux-x86_64.tar.gz https://artifacts.elastic.co/downloads/logstash/logstash-7.4.2.tar.gz https://artifacts.elastic.co/downloads/kibana/kibana-7.4.2-linux-x86_64.tar.gz https://artifacts.elastic.co/downloads

elasticSearch查询(一)

与世无争的帅哥 提交于 2019-12-01 02:49:43
**整理成sql格式来看懂elastic** 1 、多个字段多个and查询 sql格式:select * from product where title = 'xxxx' and pid = 12 limit 1,2000; es格式: $params = array( 'index' => '你的index', 'type' => '你的type', 'body'=>array( 'from'=>1, 'size'=>2000, 'query'=>array( 'bool'=>array( 'must'=>array( array( 'match'=>array( 'pid'=>12, ), ), array( 'match'=>array( 'title'=>'xxxx', ), ), ), ), ), ), ); 2 、一个字段多个值查询,多个值可以用,区分 多个值,分批匹配 字段=》rjDetails,sgDetails,presellDetails,beforBgDetails,bgDetails 来源: https://www.cnblogs.com/FLy-1992/p/11649394.html

Elastic Search | Head插件的安装与简单使用

核能气质少年 提交于 2019-11-30 21:14:22
Elastic Search | Head插件的安装与简单使用 Elastic Search Head插件是一个入门级的Elastic Search前端插件;使用它可以按照Restful API来操作Elastic Search。 安装Node JS 我们使用官网直接下载编译好的二进制文件进行安装。 到官网右击红圈的内容,复制下载地址; 到 cd /usr/local 目录,使用 wget https://nodejs.org/dist/v10.16.3/node-v10.16.3-linux-x64.tar.xz 下载压缩包; 使用 tar -xJf node-v10.16.3-linux-x64.tar.xz 命令解压; 配置环境变量: vi /etc/profile ,最后加上 export NODE_HOME=/usr/local/node-v10.16.3-linux-x64 export PATH=$NODE_HOME/bin:$PATH 保存并退出,执行 source /etc/profile 让环境变量生效; 依次输入 node -v 和 npm -v 来验证是否安装成功。 安装Git Git是一个分布式版本控制系统,在Centos上安装git有N种方式。其中 yum 命令方式 。 安装 yum install -y git 验证 git --version 卸载

elasticsearch安装启动的那些坑

女生的网名这么多〃 提交于 2019-11-30 14:59:30
最近突发奇想,想玩一下elasticsearch,然后就找到了官网进行了安装学习: 官网地址: https://www.elastic.co/cn/ 官方手册地址: https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started.html 我安装的是最新的版本:elasticsearch-7.2.0 然后参考手册上面的安装步骤,开启了骚操作~~ 1、首先查看安装的jvm,因为es是用java开发的嘛 java -version echo $JAVA_HOME 2、然后进行下载包(curl不行的话,直接复制链接到浏览器里面哦~) // 下载安装包 curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.0.1.tar.gz // 解压下载包 tar -xvf elasticsearch-6.0.1.tar.gz // 切换到指定目录 cd elasticsearch-6.0.1/bin // 运行 ./elasticsearch 官网就上面几步操作,然后es就搞好了,然后按照步骤搞完,我TM咋不对嘞? 我执行启动命令后,报如下错误: 这个是什么鬼?为什么和官网不一样呢?

elasticsearch通过使用快照备份实现数据迁移

橙三吉。 提交于 2019-11-30 13:32:24
环境: name3主机 elasticsearch-1.7.2 data1主机 elasticsearch-1.7.2 测试的elasticsearch都为单机版,所以产生的快照文件都在一个目录。 需求: 现在需要将name3中的数据都迁移到data1中 实现步骤: 1、编辑name3的配置文件,增加快照存储地址 vi elasticsearch.yml path.repo: ["/mnt/dfs/elastic/repo"] 2、重启elasticsearch ps -ef|grep elasticsearch kill -9 xxxx /opt/elasticsearch-1.7.2/bin/elasticsearch -Xmx32g -Xms32g -d 3.注册快照 curl -XPUT http://192.168.0.203:9200/_snapshot/my_repo -d ' { "type": "fs", "settings": { "location": "/mnt/dfs/elastic/repo" } }' 执行: curl http://localhost:9200/_snapshot 查看结果 执行快照请求--备份(快照名称:snapshot_20190926) curl -XPUT http://localhost:9200/_snapshot/my

Build Telemetry for Distributed Services之Elastic APM

北战南征 提交于 2019-11-30 12:58:09
官网地址:https://www.elastic.co/guide/en/apm/get-started/current/index.html Overview Elastic APM is an application performance monitoring system built on the Elastic Stack. It allows you to monitor software services and applications in real time — collect detailed performance information on response time for incoming requests, database queries, calls to caches, external HTTP requests, and more. This makes it easy to pinpoint and fix performance problems quickly. Elastic APM also automatically collects unhandled errors and exceptions. Errors are grouped based primarily on the stacktrace, so you can

skywalking 链路式跟踪

天涯浪子 提交于 2019-11-30 09:39:09
wget http://mirror.bit.edu.cn/apache/skywalking/6.4.0/apache-skywalking-apm-6.4.0.tar.gz wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.6.2-linux-x86_64.tar.gz wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.6.2.tar.gz wget https://artifacts.elastic.co/downloads/kibana/kibana-6.6.1-linux-x86_64.tar.gz java -javaagent:agent/skywalking-agent.jar -jar hdrrestserver.jar 来源: https://www.cnblogs.com/fengjian2016/p/11576900.html

03_Elastic部署

放肆的年华 提交于 2019-11-30 04:20:38
ES集群部署 elastic不能用root用户去启动,否则会报错,所以创建elastic用户 1.创建elastic用户 $ useradd elastic -s /sbin/nologin 2..部署JDK环境 根据01_环境说明中安装即可 3.下载elastic源码包 $ wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.6.0.tar.gz 4.解压elastic $ tar xvf elasticsearch-6.6.0.tar.gz -C /usr/local/ $ mv /usr/local/elasticsearch-6.6.0/ /usr/local/elastic $ chown -R elastic /usr/local/elastic/ 5.修改elastic内存配置 elasticsearch6.6.0默认内存需要1G,如果没有1G内存可能会报错,如果内存不够则需要修改配置文件 $ vim /usr/local/elastic/config/jvm.options -Xms512m -Xmx512m 6.修改elastic配置文件 $ mkdir /data/es-data -p $ mkdir /var/log/elastic/ $ vim /usr

elastic search+kibana 5.6.12安装指南

╄→гoц情女王★ 提交于 2019-11-29 04:25:33
前提准备: 1,安装jdk, We recommend installing Java version 1.8.0_131 or later. 2, 设置文件最大打开数(使用命令ulimit -n查看) ulimit -n 65536 3, 创建用户elastic/用户组elastic groupadd elastic useradd elastic -g elastic 4,设置用户可锁定内存 修改/etc/security/limits.conf, 添加行: # allow user 'elastic' mlockall elastic soft memlock unlimited elastic hard memlock unlimited 5,设置最大虚拟内存: vi /etc/sysctl.conf 添加行:vm.max_map_count=655360 然后执行命令: sysctl -p elastic用户登录安装和启动: 1,下载对应的elastic search版本 cd /usr/local mkdir elasticsearch cd elasticsearch wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.12.zip sha1sum