목록NoSQL (8)
보조기억장치

## 샘플 데이터 1POST produce_index/_doc{ "name": "Mango", "botanical_name": "Harum Manis", "produce_type": "Fruit", "country_of_origin": "Indonesia", "organic": true, "date_purchased": "2020-05-02T07:15:35", "quantity": 500, "unit_price": 1.5, "description": "Mango Arumanis or Harum Manis is originated from East Java. Arumanis means harum dan manis or fragrant and sweet just like its taste. ..
https://www.elastic.co/guide/en/beats/metricbeat/8.7/setup-repositories.html#_yum Repositories for APT and YUM | Metricbeat Reference [8.7] | Elastic To add the Elastic repository, make sure that you use the echo method shown in the example. Do not use add-apt-repository because it will add a deb-src entry, but we do not provide a source package. If you have added the deb-src entry by mistake, y..
repository 설정 # vi /etc/yum.repos.d/logstash.repo [logstash-8.x] name=Elastic repository for 8.x packages baseurl=https://artifacts.elastic.co/packages/8.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md 설치 # sudo yum install logstash 환경설정 (환경에 따라 작성필요) # vi /etc/logstash/conf.d/test.conf input { ... } filter { ... } output { ... } 실행 ..
https://www.elastic.co/guide/en/kibana/current/rpm.html Install Kibana with RPM | Kibana Guide [8.7] | Elastic Install Kibana with RPMedit The RPM for Kibana can be downloaded from our website or from our RPM repository. It can be used to install Kibana on any RPM-based system such as OpenSuSE, SLES, Red Hat, and Oracle Enterprise. This package contains both free a www.elastic.co repository 설정 #..
https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html Install Elasticsearch with RPM | Elasticsearch Guide [8.7] | Elastic Startup timeouts with older systemd versions By default Elasticsearch sets the TimeoutStartSec parameter to systemd to 900s. If you are running at least version 238 of systemd then Elasticsearch can automatically extend the startup timeout, and will do so ..
mongosh 에서 실행 # use champ # db.createUser({ user: "ninja", pwd: "p@ssw0rd", roles: [ "readWrite" ]}) 패스워드 변경 # use champ (수동 입력) db.changeUserPassword("accountUser", passwordPrompt()) (바로 입력) db.changeUserPassword("accountUser", "SOh3TbYhx8ypJPxmt1oOfL")
몽구DB 사용중 유니크 키값 중복으로 에러가 발생 MongoServerError: E11000 duplicate key error collection: champ.users index: username_1 dup key: { username: null } [ { v: 2, key: { _id: 1 }, name: '_id_' }, { v: 2, key: { username: 1 }, name: 'username_1', background: true, unique: true }, { v: 2, key: { email: 1 }, name: 'email_1', background: true, unique: true } ] 인덱스 목록 조회 db.users.getIndexes() 불필요 인덱스 삭제로 해결 db..
Google firebase json 임포트시 아래형식으로 입력 { "foods": [ { "id": "m1", "name": "짜장면", "description": "농심 짜파게티", "price": 1400 }, { "id": "m2", "name": "신라면", "description": "농심 신라면", "price": 1500 }, { "id": "m3", "name": "너구리", "description": "농심 너구리", "price": 1600 }, { "id": "m4", "name": "진라면", "description": "오뚜기 진라면", "price": 1800 } ] }