% bin/elasticsearch \
-Des.cluster.name=drewr1 \
-Des.network.host=127.0.0.1 \
-Des.discovery.zen.ping.unicast.hosts=127.0.0.1 \
// 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 |
# Data is from https://www.sciencedirect.com/science/article/pii/S2352340918315191 | |
filebeat.inputs: | |
- type: stdin | |
setup.template.overwrite: true | |
setup.template.append_fields: | |
- name: arrival_date | |
type: date |
param | |
( | |
[Parameter(Mandatory=$true, HelpMessage="Provide a unique name for Service Principal")] | |
[ValidateScript({if ($_ -match '^[a-zA-Z0-9\-_]{8,}$') { | |
$true | |
} else { | |
throw "name must be a minimum 8 alphanumeric characters with no spaces. Hyphens and underscores also allowed" | |
}})] | |
[string] $name, |
### REINIT | |
DELETE user | |
PUT user | |
{ | |
"mappings": { | |
"properties": { | |
"name": { | |
"type": "text" | |
}, | |
"comments": { |
#!/bin/bash | |
pkill -f 'elasticsearch.*cluster.name=8823' | |
rm -rf data/8823 | |
bin/elasticsearch -Des.node.master=true -Des.cluster.name=8823 -Des.node.name=master 2>&1 >/dev/null & | |
sleep 1 | |
bin/elasticsearch -Des.node.master=false -Des.cluster.name=8823 -Des.node.name=data1 2>&1 >/dev/null & | |
sleep 1 |
#!/usr/bin/env bash | |
# To use this script, copy and paste it in elasticsearch git root dir | |
# launch | |
# git bisect start {bad revision} {good revision} | |
# git bisect run ./test.sh | |
echo " -> starting a new test" | |
echo "$(git show --quiet)" |
#!/bin/bash | |
# | |
# esdiagdump | |
# | |
# Usage: esdiagdump [-h <hostname/IP>:<port>] [-o <output filename>] | |
# hostname defaults to localhost | |
# output file defaults to current directory/esdiagdump.out.<timestamp> | |
# | |
# This version is no longer being maintained. The current version lives in the elasticsearch/dev/shared/tools repository. |
curl -XPUT "http://localhost:9200/index2" -d' | |
{ | |
"mappings": { | |
"child" : { | |
"_parent": { | |
"type": "child" | |
} | |
} | |
} | |
}' |
# Create a local proxy for <http://download.elasticsearch.org> | |
# ============================================================ | |
# | |
# This setup and Nginx configuration provides a local webserver which intercepts requests | |
# to <http://download.elasticsearch.org> and serves a local file instead, | |
# facilitating and speeding up demonstrations at conferences, meetups, etc. | |
# | |
# | |
# 1. Create directories for Nginx: | |
# |