일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- ELASTIC
- License
- sort
- 차트
- 파이썬
- token filter test
- license delete
- zip 암호화
- Test
- Python
- docker
- Mac
- Kafka
- high level client
- zip 파일 암호화
- analyzer test
- MySQL
- Elasticsearch
- springboot
- API
- Java
- TensorFlow
- matplotlib
- flask
- licence delete curl
- plugin
- query
- aggregation
- 900gle
- aggs
- Today
- Total
목록ElasticStack (108)
개발잡부
NGram 을 검색에 이용해 보자 NGram unigram(유니그램 – 1글자) bigram(바이그램 - 2자) Elasticsearch는 NGram을 처리하는 토큰 필터를 제공하며 설정은 "type": "nGram" 으로 지정 #! The [nGram] token filter name is deprecated and will be removed in a future version. Please change the filter name to [ngram] instead. nGram 을 ngram 으로 해야 한다는.. PUT doo_ngram { "settings": { "analysis": { "filter": { "doo_ngram_filter": { "type": "ngram", "min_gram":..
GET hyper-item/_search { "_source": ["itemNm", "itemNo"], "from": 0, "size": 20, "timeout": "60s", "query": { "bool": { "filter": [ { "script": { "script": { "source": "(doc['rsvDocDispYn'].value == 'Y' && doc['itemStoreInfo.rsvSoldOutYn'].value == 'N' ) || (doc['docDispYn'].value == 'Y' && doc['itemStoreInfo.soldOutYn'].value == 'N')", "lang": "painless" } } }, { "range": { "saleStartDt": { "fr..
카테고리를 파이썬으로보내야 하나.. 애매하네 시간이 없어 급하게 작업하다 보니 문제가 생김 ecs 가 재실행하면서 노드의 키값이 바뀌다 보니... 죽을때 마다 매번 노가다를 import json import time from elasticsearch import Elasticsearch from elasticsearch.helpers import bulk from ssl import create_default_context import matplotlib.pyplot as plt from matplotlib.collections import EventCollection import numpy as np from hurry.filesize import size import threading import t..
ES가 항상 건강하길 바라는 마음으로 클러스터 레벨의 heath check curl - XGET 'localhost:9200/_cluster/health?pretty' GET _cluster/health 인덱스 레벨의 heath check GET _cluster/health?level=indices 인덱스 레벨의 heath check GET _cluster/health?level=shards cluster_name 클러스터 명 status timed_out number_of_nodes number_of_data_nodes active_primary_shards active_shards relocating_shards initializing_shards unassigned_shards delayed_una..
[퍼옴] https://www.elastic.co/guide/en/fleet/7.15/fleet-overview.html#elastic-agent Elastic Agent Elastic Agent는 로그, 메트릭 및 기타 데이터 유형에 대한 모니터링을 각 호스트에 추가하는 단일 통합 방법입니다. 단일 에이전트를 사용하면 인프라 전반에 모니터링을 더 쉽고 빠르게 배포할 수 있습니다. 에이전트의 단일 통합 정책을 통해 새 데이터 소스에 대한 통합을 더 쉽게 추가할 수 있습니다. 자세한 내용은 탄력적 에이전트 를 참조하십시오 . Fleet Fleet은 Kibana에서 웹 기반 UI를 제공하여 인기 있는 서비스 및 플랫폼에 대한 통합을 추가 및 관리하고 Elastic Agent의 집합을 관리합니다. 당사의 통합..
MacOS 에 kafka 를 설치 https://ldh-6019.tistory.com/228?category=1059128 [kafka] MacOs Kafka install / test kafka를 설치 해보자 https://www.apache.org/dyn/closer.cgi?path=/kafka/2.8.0/kafka_2.13-2.8.0.tgz Apache Download Mirrors Copyright © 2020 The Apache Software Foundation, Licensed under the Apache L.. ldh-6019.tistory.com 명령어 모음 kafka 실행 #카프카 설치 경로로 이동 cd /Users/doo/kafka/kafka_2.13-2.8.0 #주키퍼 시작 bin..
Logrotate 사용 (elasticsearch , logstash) logrotate 설치 확인 rpm -qa | grep logrotate 설치되어있지 않다면 yum으로 설치 yum -y install logrotate logrotate 설정 파일 생성 sudo vi /etc/logrotate.d/{서비스명} elasticsearch - sudo vi /etc/logrotate.d/elasticsearch* PRD 환경은 -mtime +30 으로 수정 elasticsearch "/log/elasticsearch/*.gz" { su root root daily missingok rotate 0 postrotate /usr/bin/find /log/elasticsearch/ -name "*.gz" -t..
elasticsearch random sort 를 구현해보자 여러가지 방법이 있지만 잴 만만한 방법으로 개발환경 elasticsearch 7.9.2 sample code GET exp-item/_search/ { "_source": [ "itemNm", "itemNo", "itemStoreInfo.eventInfo.rmsEventKind" ], "size": 12, "query": { "bool": { "must_not": [ { "term": { "itemNo": { "value": "055964330" } } } ], "filter": [ { "terms": { "itemStoreInfo.eventInfo.rmsEventKind": [ "BASIC", "PICK", "TOGETHER", "GIFT" ..
하나의 필드에 여러개의 텀을 검색할때 사용 GET ds-item/_search { "_source": ["itemNo","itemStatus","unitDispYn", "docDispYn", "itemDispYn", "docDispInfo"], "query": { "terms": { "itemNo": [ "10000300057455", "10000300083762", "10000300055602" ] } } } profile 을 보니
Logrotate 사용 (elasticsearch , logstash) logrotate 설치 확인 rpm -qa | grep logrotate 설치되어있지 않다면 yum으로 설치 yum -y install logrotate logrotate 설정 파일 생성 sudo vi /etc/logrotate.d/{서비스명} elasticsearch - sudo vi /etc/logrotate.d/elasticsearch* PRD 환경은 -mtime +30 으로 수정 elasticsearch "/log/elasticsearch/*.gz" { su root root daily missingok rotate 0 postrotate /usr/bin/find /log/elasticsearch/ -name "*.gz" -t..