{
"_shards" : {
"total" : 2,
"successful" : 2,
"failed" : 0
},
"_all" : {
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check if the allocation aareness settings can be seen through _cluster/settings | |
GET /_cluster/settings | |
# Verify that the specified node attributes are present | |
GET /_cat/nodeattrs | |
# Create 4 test indices with default settings - 1 primary shard and 1 replica shard | |
PUT /testindex1 | |
PUT /testindex2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2.2" | |
services: | |
setup: | |
image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION} | |
volumes: | |
- certs:/usr/share/elasticsearch/config/certs | |
user: "0" | |
command: > | |
bash -c ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
TIMESTAMP=$(date +%s) | |
ES_HOST=$1 | |
REPOSITORY=$2 | |
INDEX_NAME=$3 | |
SNAPSHOT_ID=$4 | |
NEW_INDEX_NAME=$5 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
echo $(date) "Create snapshot repositories" | |
curl -X PUT "localhost:9200/_snapshot/elasticlogs-nofm" -H 'Content-Type: application/json' -d' | |
{ | |
"type": "fs", | |
"settings": { | |
"location": "/data/snapshots/elasticlogs-nofm" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"trigger": { | |
"schedule": { | |
"interval": "10s" | |
} | |
}, | |
"input": { | |
"http" : { | |
"request" : { | |
"host" : "127.0.0.1:9200", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
stdin {} | |
} | |
filter { | |
grok { | |
match => { "message" => [ '%{IP:ip}" %{GREEDYDATA:a}', | |
'%{IP:ip1}, %{IP:ip}" %{GREEDYDATA:a}' ] } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
generator { | |
lines => ['2011-04-19T03:44:01.103Z testlog1', | |
'2011-04-19T03:44:02.035Z testlog2', | |
'2011-04-19T03:44:03.654Z testlog3', | |
'2011-04-19T03:44:03.654Z testlog3'] | |
count => 1 | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set p_bulk_indexing_clients = (bulk_indexing_clients | default(20)) %} | |
{% set p_duration = bulk_indexing_duration | default(900) %} | |
{ | |
"name": "split_indexing", | |
"description": "Index data into indices with and without `number_of_routing_shards` set. IDs are autogenerated by Elasticsearch, meaning there are no conflicts.", | |
"meta": { | |
"client_count": {{ p_bulk_indexing_clients }}, | |
"benchmark_type": "split-indexing" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2018-07-19T08:48:47,631][WARN ][o.e.i.c.IndicesClusterStateService] [iZBcaR9] [[elasticlogs-2-2018.01.02-44][1]] marking and sending shard failed due to [failed recovery] | |
org.elasticsearch.indices.recovery.RecoveryFailedException: [elasticlogs-2-2018.01.02-44][1]: Recovery failed from {Q8apBcz}{Q8apBcz2QeS7wXq3tIrvLA}{gY6uDjozSmWxadECk2VenQ}{192.168.1.32}{192.168.1.32:9300}{ml.machine_memory=128847142912, ml.max_open_jobs=20, xpack.installed=true, ml.enabled=true} into {iZBcaR9}{iZBcaR9JTk6f8OhyT7yL4A}{9v9sDmqZTniJCFvk_MSk6g}{192.168.1.33}{192.168.1.33:9300}{ml.machine_memory=128847142912, xpack.installed=true, ml.max_open_jobs=20, ml.enabled=true} | |
at org.elasticsearch.indices.recovery.PeerRecoveryTargetService.doRecovery(PeerRecoveryTargetService.java:282) [elasticsearch-6.3.0.jar:6.3.0] | |
at org.elasticsearch.indices.recovery.PeerRecoveryTargetService.access$900(PeerRecoveryTargetService.java:80) [elasticsearch-6.3.0.jar:6.3.0] | |
at org.elasticsearch.indices.recovery.PeerRecoveryTargetService$RecoveryRunner |
NewerOlder