elasticsearch java client api using

1. client building​ package com.pz998.app.service.utils; import static org.elasticsearch.common.settings.Settings.settingsBuilder; import java.net.InetSocketAddress; import org.elasticsearch.client.Client; import org.elasticsearch.client.transport.TransportClient; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.c ...

Posted by Repgahroll on Sun, 05 Jan 2020 22:56:03 -0800

redis for decoupling (upload nginx logs to elastic search)

Experimental environment server1 172.25.11.1 elasticsearch,nginx ,logstash server2 172.25.11.2 redis,logstash server3 172.25.11.3 kibana Install kibana on server3 yum install -y kibana-4.5.1-1.x86_64.rpm vim /opt/kibana/config/kibana.yml /etc/init.d/kibana start netstat -antupl Browser access: 172.2 ...

Posted by Derfel Cadarn on Fri, 03 Jan 2020 18:03:33 -0800

ELK Log Analysis System - (Actual!)

brief introduction log server Improving security Centralized storage of logs Defect: Difficulty in log analysis ELK Log Analysis System Elasticsearch: Storage, Index Pool Logstash: Log Collector Kibana: Data visualization Log Processing Steps 1, centralize log management 2, Logstash and output to Elasticsearch 3. Index and store the f ...

Posted by pkrtech on Thu, 19 Dec 2019 15:11:37 -0800

Summary of ElasticSearch

1. Three clients of ES a.Transport Client, transport based connection, using port 9300 of es b.JestClient, http based connection, using port 9200 of es 3.RestClient, http based connection, official recommendation of es, 9200 port 2. Document source: es aggregation based on jestClient: https://blog.csdn.net/lvyuan1234/artic ...

Posted by pnoeric on Fri, 13 Dec 2019 09:11:44 -0800

PHP Implementation of Domain-Driven Design - Services

service You already know what entities and value objects are.As basic building blocks, they should contain the vast majority of business logic for any application.However, there are some scenarios where entity and value objects are not the best solution.Let's take a look at what Eric Evans mentioned in his book Domain Driven Design: A Way to Co ...

Posted by kishore_marti on Thu, 12 Dec 2019 17:08:15 -0800

KubeSphere log backup and recovery practice

Why log backup is needed KubeSphere log system uses the log collection and storage scheme of Fluent Bit + ElasticSearch, realizes the life cycle management of Index through the cursor, and cleans the long-term logs regularly. For scenarios with log audit and disaster recovery requirements, the default 7-day log retention policy of KubeSphere is ...

Posted by Naoa on Thu, 12 Dec 2019 03:06:36 -0800

docker builds elk environment

Official reference: https://www.elastic.co/guide/en/elastic-stack/current/installing-elastic-stack.html https://www.elastic.co/guide/index.html https://www.elastic.co/learn docker installation es docker pull docker.elastic.co/elasticsearch/elasticsearch:6.4.3 Development mode start docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single ...

Posted by paulareno on Mon, 09 Dec 2019 05:08:40 -0800

springboot ElasticSearch simple full text search highlights

I talked with Zhang Sanfeng about es a few days ago. This is a chance to learn and use Introduce dependency first <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artifactId> </dependency> configuration file spring.data.elasti ...

Posted by infernon on Mon, 09 Dec 2019 00:44:19 -0800

Automatically clean up elasticsearch index on a regular basis

Catalog 1.1 how to view index 1.2 manual index deletion method 1.3 script cleanup index 1.4 scheduled tasks 1.1 how to view index Explain: 01: I have installed elasticsearch, kibana and logstash on one machine 02:192.168.10.138 is the intranet IP address monitored by elasticsearch 03:9200 is one of the ports of elasticsearch #How to view ind ...

Posted by Dan400007 on Sun, 01 Dec 2019 07:58:36 -0800

EFK tutorial - ElasticSearch multi instance deployment

Based on ElasticSearch multi instance architecture, realize reasonable resource allocation and separation of hot and cold data Author: "the wolf of hair", welcome to reprint and contribute Catalog Application Framework ▪ 192.168.1.51 elastic search data deployment dual instance ▪ 192.168.1.52 elastic search data deployment dual inst ...

Posted by pennythetuff on Mon, 25 Nov 2019 05:51:54 -0800