Skip to content

Instantly share code, notes, and snippets.

Avatar
🇪🇺
From Europe with ❤️

David Pilato dadoonet

🇪🇺
From Europe with ❤️
View GitHub Profile
@dadoonet
dadoonet / commands.sh
Created Feb 11, 2022 — forked from xeraa/commands.sh
Elastic 8.0 security by default: Minimal setup with Docker for a 3 node cluster + Kibana
View commands.sh
// Start the first node and keep the generated security credentials handy
docker run -e ES_JAVA_OPTS="-Xms1g -Xmx1g" -p 9200:9200 -it docker.elastic.co/elasticsearch/elasticsearch:8.0.0
// Check if the node has started correctly
curl --insecure --user elastic https://localhost:9200/
// Add your second node
docker run -e ENROLLMENT_TOKEN="..." -e ES_JAVA_OPTS="-Xms1g -Xmx1g" -it docker.elastic.co/elasticsearch/elasticsearch:8.0.0
// Check if it has joined the cluster
@dadoonet
dadoonet / .env
Last active Sep 1, 2021
Docker Compose Elasticsearch and Kibana
View .env
ELASTIC_VERSION=7.4.0
@dadoonet
dadoonet / ingest.kibana
Created Mar 19, 2019
Ingest Attachment with OCR
View ingest.kibana
PUT _ingest/pipeline/attachment
{
"description" : "Extract attachment information",
"processors" : [
{
"attachment" : {
"field" : "data"
}
},{
"remove": {
@dadoonet
dadoonet / jussieu1.js
Last active Dec 10, 2018
Jussieu workshop
View jussieu1.js
DELETE user
PUT user
{
"settings": {
"number_of_shards": 1
},
"mappings": {
"_doc": {
"properties": {
"name": {
View kibana.json
PUT _template/raffle
{
"index_patterns": [
"raffle"
],
"settings": {
"number_of_shards": 1
},
"mappings": {
"_doc": {
View keybase.md

Keybase proof

I hereby claim:

  • I am dadoonet on github.
  • I am dadoonet (https://keybase.io/dadoonet) on keybase.
  • I have a public key ASAO0iyeEGc4SdS0o_h57mZ4tzHdCcblMVLnQXDkWQYr8wo

To claim this, I am signing this object:

@dadoonet
dadoonet / script.txt
Last active Sep 1, 2020
Advanced Search for your Legacy application script
View script.txt
### Step 0 : INIT
DELETE test
DELETE person
### Step 1
GET /
GET _cat/indices/person*?v&h=index,docs.count,store.size
@dadoonet
dadoonet / search_kibana_console.txt
Last active Jul 29, 2022
Demo script for "A NoSQL search engine to find..." talk
View search_kibana_console.txt
### REINIT
DELETE user
PUT user
{
"mappings": {
"properties": {
"name": {
"type": "text"
},
"comments": {
@dadoonet
dadoonet / 01-script-ingest.txt
Created Jun 22, 2016
Notes for the Ingest Node demo
View 01-script-ingest.txt
# 52.35.38.35 - - [19/Apr/2016:12:00:04 +0200] "GET / HTTP/1.1" 200 24
# Start with empty pipeline
GET _ingest/pipeline/_simulate
{
"pipeline" : {
"processors" : [
]
},
"docs" : [
View npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/5.0.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli 'node-sass' ]
2 info using npm@3.3.9
3 info using node@v5.0.0
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData