![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Elasticsearch
文章平均质量分 92
柳暗花明又一村ヾ(◍°∇°◍)ノ゙
这个作者很懒,什么都没留下…
展开
-
elasticsearch使用API查询时最大10000条限制问题,解决办法
首先手指index最大显示数值: url = self.host + '/{}/_settings?pretty'.format(yourindex) data = { "index":{ "max_result_window":10000000 } } data = json.dumps(data) response = requests.put(url, headers = self.headers, dat原创 2020-12-17 16:18:17 · 1149 阅读 · 1 评论 -
docker安装运行elasticsearch,elasticsearch-head
安装elasticsearch命令:docker run -d --name elasticsearch --restart always --env discovery.type=single-node -p 9200:9200 -p 9300:9300 192.168.30.51:5001/elasticsearch:7.9.1(镜像)修改配置:docker run -it elasticsearch /bin/bashvi config/elasticsearch.yml#增加ht原创 2020-12-16 17:06:39 · 103 阅读 · 0 评论 -
Elasticsearch启动时候出现vm.max_map_count异常的处理方法
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]elasticsearch启动时遇到的错误1、vim /etc/sysctl.conf (需要是root账户)文件最后添加一行: vm.max_map_count=2621442、sysctl -p 重启生效...原创 2020-12-10 09:18:13 · 3915 阅读 · 4 评论 -
elasticsearch安装报错java.lang.RuntimeException: can not run elasticsearch as root
可以新建用户,在新用户模式下运行adduser elasticpasswd 123456chown -R elastic:elastic elasticsearch-7.8.1/chmod 770 elasticsearch-7.8.1/然后运行./bin/elasticearch -d必要时添加成服务:vi /usr/lib/systemd/system/elasticsearch.service[Unit]Description=elasticsearchAfter=n原创 2020-08-16 16:39:29 · 871 阅读 · 0 评论 -
beats使用
auditbeat使用sudo ./auditbeat -e -c auditbeat.yml#配置- module: file_integrity paths: - /bin - /usr/bin - /sbin - /usr/sbinoutput.file: path: "/opt/auditbeat/output" filename: auditbeatfilebeatsudo ./filebeat -e -c filebeat.yml#配置f原创 2020-07-14 16:32:40 · 368 阅读 · 0 评论 -
centos安装nginx
1.安装依赖项yum install -y make cmake gcc gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel下载nginxwget http://nginx.org/download/nginx-1.14.2.tar.gz解压tar zxvf nginx-1.14.2.tar.gz && cd nginx-1.14.2编译配置’./configure && make &原创 2020-06-15 11:24:08 · 104 阅读 · 0 评论 -
centos安装elasticsearch-head
elasticsearch-head需要node环境,所以现状nodewget https://nodejs.org/dist/v6.10.2/node-v6.10.2-linux-x64.tar.xztar xf node-v6.10.2-linux-x64.tar.xzmv node-v6.10.2-linux-x64 /usr/local/node设置环境变量vi /etc/profile#在最后添加:export NODE_HOME=/usr/local/nodeexport PA原创 2020-06-16 18:39:34 · 142 阅读 · 0 评论 -
ubuntu安装elk
首先安装jdksudo apt-get install openjdk-8-jdk下载 elasticsearch,logstash,kibana地址https://www.elastic.co/cn/downloads/原创 2020-06-13 10:08:30 · 298 阅读 · 0 评论 -
elasticsearch healh状态为yellow
首先查看索引状态curl -XGET "http://localhost:9200/_cat/indices?v"yellow open twitter Ocd_zNBeSPmMRNR5YFjSug 5 1 2 0 9.8kb 9.8kbyellow open test MTpbi7_UQnOiJ_UU0X8AXg 1 1 1 0 4.5kb原创 2020-06-17 09:08:12 · 738 阅读 · 0 评论 -
python无法读取elasticsearch数据
python读取elasticsearch数据中报错:HTTPHeaderDict’ object has no attribute 'get_all经过诊断是python pip elasticsearch的版本问题解决方法是重新pip一个新的版本,eg:pip install elasticsearch==7.0.0.0原创 2020-06-20 22:13:26 · 1061 阅读 · 0 评论