elasticsearch


Default elasticsearch configuration for docker container


What is the best way to configure ES index template with mappings in docker container? I expected to use template file but it seems that from version 2 it is not possible. Executing http request also won't work because on container creation process doesn't start. It could be done on each container launch with script which will start ES and execute HTTP request to it but it looks really ugly.
you can configure template with mappings by execute HTTP PUT request in Linux terminal, as following:
curl -XPUT http://ip:port/_template/logstash -d '
{
"template": "logstash-*",
"settings": {
"number_of_replicas": 1,
"number_of_shards": 8
},
"mappings": {
"_default_": {
"_all": {
"store": false
},
"_source": {
"enabled": true,
"compress": true
},
"properties": {
"_id": {
"index": "not_analyzed",
"type": "string"
},
"_type": {
"index": "not_analyzed",
"type": "string"
},
"field1": {
"index": "not_analyzed",
"type": "string"
},
"field2": {
"type": "double"
},
"field3": {
"type": "integer"
},
"xy": {
"properties": {
"x": {
"type": "double"
},
"y": {
"type": "double"
}
}
}
}
}
}
}
'
The "logstash-*" is your index name, you can have a try.

Related Links

Elasticsearhc- how to do multi search request on Sense or Head plugin
How do I configure/initialize a custom Elasticsearch Tokenizer
Combining log entries with logstash
How to import CSV data using Logstash for field type completion in Elasticsearch suggester
How can I interpret the result of percentiles aggregation type
elastic search select fields to return in aggregation
How to Focus Search On One Part of a Document
How to calculate cooccurrences on a set of texts with Elasticsearch
elasticsearch edge_ngrams analyzer is not found
Double wildcard in query causes weird highlighting for plain/fast vectors elasticsearch highlighters
Get Elasticsearch response in DataTable in C#.Net
Elasticsearch NoNodeAvailableException issue
Why Elasticsearch snapshot stats number_of_files differs from actual indices count?
Specifying data type and analyzer while creating index
elasticsearch regroups aggs by regex
get unique values from elasticsearch

Categories

HOME
protocol-buffers
jms
d3.js
applescript
softlayer
initialization
informatica
jersey-2.0
haxe
sentry
ui-automation
tweepy
stack-overflow
azure-graph-api
freertos
async-await
google-cloud-logging
closures
exec-maven-plugin
maven-plugin
varnish-vcl
nose
http-authentication
amazon-sns
animated-gif
plyr
python-appium
tf-idf
tortoisehg
adapter
bonita
audit
nsmutablearray
gnu-classpath
apptentive
testlink
fastlane
aurelia-cli
mars-simulator
hdiv
oracle-bmcs
code-push
section508
webalizer
test-data
elastic4s
jsonix
openquery
jsf-2.3
seccomp
jtag
mnesia
voronoi
myfaces
gdl
cryptojs
linuxbrew
openshift-cartridge
chicagoboss
blank-line
pythonxy
vdm-sl
modern.ie
domino-designer-eclipse
subfolder
mgwt
sablecc
mathematical-expressions
flurry-analytics
ildasm
zend-mail
xml-signature
producer
windows-rt
storing-data
loginview
angular-ui-select
webautomation
fileshare
sqlbindparameter
wso2bam
xmi
oxygene
insertion
statechart
aero
donut-chart
jquery-dialog
instance-variables
workflow-manager-1.x
prototypal-inheritance
dynamic-c
glassfish-esb
tablet-pc
upshot
servlet-container
pyjamas
uninstaller
external-sorting
gtktextview
jboss-mdb
levels
jvm-bytecode

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile