Integrating Spring Data ElasticSearch
1. Overview
Spring Data ElasticSearch simplifies native ElasticSearch
Characteristic:
Based on the @ Configuration configuration, as long as it is configured in the yml file, it can be used in the project.
Tool class ElasticsearchTemplate ES template, similar to general mapper, operates ES through object
Provides a Repository for th ...
Posted by Svoboda on Mon, 13 Apr 2020 21:14:09 -0700
Run / bin/kibana to report fat error: listen eaddrnotavail 123.57.251.57:5601
Previous picture
FATAL Error: listen EADDRNOTAVAIL 123.57.251.57:5601
The configuration file is configured as follows:
[root@head-kib ~]# cd /usr/local/kibana-6.5.4-linux-x86_64/config/
[root@head-kib config]# vim kibana.yml
server.port: 5601
server.host: "123.57.251.57"
elasticsearch.url: "http://192.168.246.234:9200 "ාes node
kibana.in ...
Posted by blackcode on Mon, 06 Apr 2020 08:45:55 -0700
kibana starts reporting an error Elasticsearch cluster did not respond w
kibana start error
Elasticsearch cluster did not respond with license information
This error reporting environment is an ES cluster composed of four elastic search servers. The versions are all elk7.1.0. There are many online documents for specific installation steps.Use cdh1 as the master, cdh2, cdh3, and cdh4 as the datanode nodes.
After the ...
Posted by LAMP on Sat, 04 Apr 2020 02:01:12 -0700
Use Filebeat 6 to collect logs from multiple directories and send them to lostash
1. Install filebeat to the target machine
Official installation documents
This test uses windows environment to install filebeat
win:
1. Download the Filebeat Windows zip file from the downloads page.
2. Extract the contents of the zip file into C:\Program Files.
3. Rename the filebeat--windows directory to Fil ...
Posted by jamesloi on Thu, 02 Apr 2020 15:20:19 -0700
es the way of learning alias
ES learning path alias
The API in elastic search accepts index names when targeting specific indexes, and multiple indexes when applicable. The index aliases API allows you to alias an index with a name. All APIs automatically convert the alias to the actual index name. Aliases can also be mapped to multiple indexes, a ...
Posted by railanc4309 on Tue, 31 Mar 2020 18:27:38 -0700
k8s ~ add sidecar sidebucket for service
The word sidecar generally refers to motorcycles with straddles. In the Second World War, small Japan drove many of these motorcycles. It added a straddle on the original basis, and then it could carry an extra person. It had no impact on the original two wheeled motorcycles. It was also OK to dismantle the straddle. It had no essential damage ...
Posted by Azarian on Tue, 24 Mar 2020 00:49:01 -0700
Click [elastic search] to query and delete the "delete by" of the matching document
Idea: query and confirm first, then delete accurately
If I want to delete the record with the title "Xiao Ming really doesn't work overtime tonight", first check the existing record:
Isn't it good not to work overtime? Why delete? )
tips: you can use match_phrase to query accurately. The query command can be queried by curl or by o ...
Posted by DiscoTrio on Sat, 21 Mar 2020 09:54:29 -0700
Auto configuration of spring boot
Spring boot auto configuration is mainly completed by @ EnableAutoConfiguration, @ Conditional, @ EnableConfigurationProperties or @ ConfigurationProperties.@EnableAutoConfiguration enables automatic configuration. Its main function is to call loadFactoryNames() in the spring core package to load the written automatic configuration in th ...
Posted by StateGuy on Fri, 20 Mar 2020 11:02:12 -0700
Elasticsearch add, delete, modify and query (2)
ES Restful API GET, POST, PUT, DELETE, HEAD meaning:
1) GET: gets the current state of the request object.
2) POST: changes the current state of the object.
3) PUT: create an object.
4) DELETE: destroy the object.
5) HEAD: request to get the basic information of the object.
The new document in ES (under Index/type) i ...
Posted by Hell Toupee on Fri, 20 Mar 2020 09:05:37 -0700
High availability of ES cluster
Preface: articles before us ELK+Kafka+Filebeat analysis Nginx log The configuration of ES cluster is mentioned in. In my later experiments, I found that although the cluster can be started and can process data normally, as long as the ES1 node is hung up, the whole cluster can not operate normally and t ...
Posted by ryanhowdy on Sun, 15 Mar 2020 23:18:03 -0700