I briefly introduced Elasticsearch in play with elasticsearch. In this article, we still do some basic learning about how to perform CRUD in Elasticsearch? Suppose we are creating an application similar to Weibo. Let's call it kiwi first. Kiwi is composed of messages. In kiwi, a message is called a ksay
I briefly introduced Elasticsearch in play with elasticsearch. In this article, we still do some basic learning about how to perform CRUD in Elasticsearch? Suppose we are creating an application
ES supports near real-time indexing, updating, querying, and deleting documents, which means that the data just indexed takes 1 seconds to search, which is different from the traditional SQL database.
More ES documentation Reference: Elasticsearch Official document Translation
Index/Replace DocumentI've tried to index a document before, so let's review it here:' Localhost:9200/customer/external/1?pretty ' ' { "name""John Doe"}' In the exampl
/logging.yml/etc/elasticsearch/scripts/etc/init.d/ Elasticsearch/etc/sysconfig/elasticsearch/usr/lib/sysctl.d/usr/lib/sysctl.d/elasticsearch.conf/usr/lib/systemd /system/elasticsearch.service #启动脚本/usr/lib/tmpfiles.d/usr/lib/tmpfiles.d/elasticsearch.conf3, modify the configuration file, here are some of the path to see personal habits[Email protected] ~]# vim/etc/elasticsearch/elasticsearch.yml cluster.name: "Linux-es" Node.name:es1.bjwf.com33Path.data:/elk/data37 path.logs:/elk/logs43 bootstrap
important is the followingParameters:#es的home路径, you don't have to use the default value toSet.default.es_home=#分配给es的最小内存set.default.es_min_mem=256#分配给es的最大内存set.default.es_max_mem=1024# Startup Wait Time-out (in seconds)wrapper.startup.timeout=300# time to close wait timeout (in seconds)wrapper.shutdown.timeout=300# ping time-out (in seconds)wrapper.ping.timeout=300Installing pluginsTake head plugin as an example:When connected, run%es_home%\bin\plugin-install Mobz/elasticsearch-head directly
Preface:
1. The deployed Elk Architecture is elasticsearch (hereinafter referred to as ES) +logstash+kibana+filebeat
The 2.Filebeat deployment is responsible for collecting logs on the nodes that need to collect the logs. The Logstash and ES are then filtered for analysis, and then transferred and focused on the Kibana system for visual display.
3. Non-cluster deployment None-cluster
4. The elasticsearch,kibana are made up of 5.5.2→6.0.0, while Logstash is 5.5.2→6.0.1;filebeat 5.5.2→5.6.5→6.0.1
because the company's Elasticsearch cluster only uses two servers. As long as one server data loss Elasticsearch will lose half the data. Therefore, the backup and recovery of data is very important. Elasticsearch snapshot and recovery modules can create a single index or a snapshot of the entire cluster to a remote repository for data backup and recovery. The following is a backup recovery. Kibana Index as an exampleData backup and Recovery1. Modify the Elasticsearch configuration fileVim Elast
Elasticsearch provides a very comprehensive and powerful rest API that you can use to interact with your cluster. The few things you can do with the API are as follows:
Check your cluster, node, and index health status and statistics
Managing cluster, node, and index data and metadata
Perform crud (Create, read, update, and delete) indexes and search operations
Perform advanced search operations such as paging, sorting, filtering, scripting, aggregation, and many others
1. First prepare the Java environment and install the JDK.: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.htmlNot much to introduce here2. Download Jenkins to Linux serverView Kernel version information:cat/proc/version; more/etc/issue650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/8E/51/wKioL1i9NK-jsopCAAA-Xpq9Evw724.png-wh_500x0-wm_ 3-wmp_4-s_570535673.png "title=" To view the system version information.
installation is commonly used: remote network installation, U disk installation, CD-ROM installation three ways, the following for the installation of CD1. The boot interface appears, choose to install or upgrade the existing system, select the first installation system. Install or upgrade an existing system installation or upgrade of existing systemsinstall system with Basicvideo driver basic graphics driver used during installationRescue Installed system Enter system Repair modeBoot from local
If you get the "current" domain name host = Window.location.host;
Url=document.domain;
url = window.location.href;
Get full URL path: The following code can be used to fully document the results:
Run as follows:Thisurl:["+ Thisurl +"] "Strwrite + +"Thishref:["+ Thishref +"] "Strwrite + +"Thissloc:["+ Thissloc +"] "Strwrite + +"Thisdloc:["+ Thisdloc +"] "document.write (strwrite); -->thisurl: [http://it.sinoeb.cn/%E7%BD%91%E7%AB%99/Javascript%E6%8A%80%E6%9C%AF/js%E5%8F%96%E5%BE%97%E5% bd%93%e5%8
B3e1ff d6 1a 9e C2 C9 E7 4e ad f4 5f E3 E9 9 D7 E8 F9 f4 D2 E8 22 D7e218 be E2 CE (CF) 4a A8 AE 3f c6 2d e9 34 E6 E0 65e231 E2 8a 5f ce 3 5f bf eb 7 AE d0 ca 5 8d a5 b7 f0e24a BC 7a BC DC 5 db C0 6a 2 e5 to CB AC BA A5 3b 9d F1 77 38e263 a6 D1 3c af D8 6a A2 c0 5e BB c2 notoginseng F2 2be27b EC 4a 8c 4c F2 F7 A9 2b Ba 6d d6 6a e5 e0 da e5 b9 e5e293 F7 7f F0 c4 4e 3c A3 ee 4e 8f A-EB db ad 7a 9c FE2AC DB 5a da E3 AE 2d 5e ea DF 6 m ce D1 2e 6dE2C5 C1 9c D8 6a 9b 4a E8 d6 5 ff d4 1b AC 1f (BF 55)
There are two ways to connect a system in a virtual machine using Xshell in a computer, one of which is when the network of a virtual machine is bridged, and this mode can connect to the extranet, that is, if the computer is able to surf the internet, it can also be connected directly to the virtual machine. In this mode only need to open the system inside the virtual machine, the firewall shut down, and then into terminal mode, enter Ifconfig carriage return, at this time can be displayed in th
it can be implemented on its own and control the cache when necessary, but sometimes we need more control. For example, there are not many opportunities for query reuse, and we want to periodically clear the cache for these queries. If you do not specify _cache_key, you can only clear the entire filter cache (filter caches), instead, you only need to execute the following command to clear the specific cache:‘localhost:9200/users/_cache/clear?filter_k
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.