文章分类 - elasticsearch
摘要:# Sample Logstash configuration for creating a simple # Beats -> Logstash -> Elasticsearch pipeline. #input{ # kafka{ # bootstrap_servers => ["localho
阅读全文
摘要:通过nohub方式启动filebeat,运行一段时间后filebeat自动退出,原因是filebeat默认会定期检测文件是否有新的内容,如果超过一定时间检测的文件没有任务新日志写入,那么filebeat会自动退出,解决办法就是将filebeat通过系统后台的方式长期运行。 1、在linux操作系统
阅读全文
摘要:POST accesslog/_delete_by_query?conflicts=proceed&wait_for_completion=false { "query": { "range": { "@timestamp": { "lt": "2022-03-01T08:00:00.0560000
阅读全文
摘要:参考:https://www.cnblogs.com/coloz/p/10487679.html zookeeper报错 JAVA_HOME is not set https://www.cnblogs.com/china-baizhuangli/p/8920776.html
阅读全文
摘要:参考:https://blog.csdn.net/luoqinglong850102/article/details/113516356 三、解决方法1、增加es堆内存 ./elasticsearch -Xms30g -Xmx30g -Xms30g 表示JVM Heap(堆内存)最小为30g,初始化
阅读全文
摘要:参考:https://help.aliyun.com/document_detail/169257.html
阅读全文
摘要:{ "query": { "bool": { "must": [ { "match": { "title": "Science" } }, { "match": { "countryArea": "United States" } }, { "bool": { "should": [ { "matc
阅读全文
摘要:filebeat.inputs: - type: log enabled: true paths: - /opt/kidx/deploy/talk-skills/logs/skills_consumer.log fields: type: skills_consumer - type: log en
阅读全文
摘要:参考:https://blog.csdn.net/jianblog/article/details/54585043 input { # 多张表的同步只需要设置多个jdbc的模块就行了 jdbc { # mysql 数据库链接,shop为数据库名 jdbc_connection_string =>
阅读全文
摘要:1、apache配置日志格式 LogFormat "{ \ \"@timestamp\": \"%{%Y-%m-%dT%H:%M:%S%z}t\", \ \"@version\": \"1\", \ \"tags\":[\"apache\"], \ \"message\": \"%h %l %u %
阅读全文
摘要:input { jdbc { jdbc_driver_library => "/home/software/logstash-6.4.3/lib/mysql-connector-java-5.1.41-bin.jar" jdbc_driver_class => "com.mysql.jdbc.Dri
阅读全文
摘要:elastisearch Scripted fields 自定义字段 1、字段值转换 def hangyes= [243: '橱柜', 244: '卫浴', 32: '地板', 33: '吊顶', 65: '陶瓷', 70: '衣柜', 188: '硅藻泥', 387: '净水器', 477: '木
阅读全文
摘要:网址:https://blog.csdn.net/E_Eric12138/article/details/79333606 https://www.cnblogs.com/dydxw/p/12667874.html mysql 转es http://www.ischoolbar.com/EsPars
阅读全文
摘要:<?phpclass PsElasticSearch{ private $client; private static $instance; private $index_name_prefix; private function __construct($config) { include(VEN
阅读全文

浙公网安备 33010602011771号