Rich,
Here you go:
======================== Elasticsearch Configuration =========================
NOTE: Elasticsearch comes with reasonable defaults for most settings.
Before you set out to tweak and tune the configuration, make sure you
understand what are you trying to accomplish and the consequences.
The primary way of configuring a node is via this file. This template lists
the most important settings you may want to configure for a production cluster.
Please consult the documentation for further information on configuration options:
https://www.elastic.co/guide/en/elasticsearch/reference/index.html
---------------------------------- Cluster -----------------------------------
Use a descriptive name for your cluster:
cluster.name: xxx
------------------------------------ Node ------------------------------------
Use a descriptive name for the node:
node.name: xxx
Add custom attributes to the node:
#node.attr.rack: xx
----------------------------------- Paths ------------------------------------
Path to directory where to store the data (separate multiple locations by comma):
path.data: /DataDisk/data
Path to log files:
path.logs: /DataDisk/logs
----------------------------------- Memory -----------------------------------
Lock the memory on startup:
bootstrap.memory_lock: false
#---------------------------------------------------------------------Other bootstrap checks
#---------------------------------------------------------------------
#bootstrap.system_call_filters: false
#--------------------------------------------------------------------
Make sure that the heap size is set to about half the memory available
on the system and that the owner of the process is allowed to use this
limit.
Elasticsearch performs poorly when the system is swapping the memory.
---------------------------------- Network -----------------------------------
Set the bind address to a specific IP (IPv4 or IPv6):
network.host: xxxxx
Set a custom port for HTTP:
http.port: xxx
For more information, consult the network module documentation.
--------------------------------- Discovery ----------------------------------
Pass an initial list of hosts to perform discovery when new node is started:
The default list of hosts is ["xxxx", "[::1]"]
discovery.zen.ping.unicast.hosts: xxxxx"]
Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1):
information, consult the zen discovery module documentation.
discovery.zen.minimum_master_nodes: 2
---------------------------------- Gateway -----------------------------------
Block initial recovery after a full cluster restart until N nodes are started:
#gateway.recover_after_nodes: 3
For more information, consult the gateway module documentation.
---------------------------------- Various -----------------------------------
Require explicit names when deleting indices:
#action.destructive_requires_name: true
#Selection of Master Node
node.master: true
node.data: false
node.ingest: false
#No ingest node available for monitoring data
x-pack.monitoring.exporters.my_local:
type: local
use_ingest: false
#---------------------------------------------------------------------------------
#---------------------------------------Audit-------------------------------------
xpack.security.audit.enabled: true
xpack.security.audit.index.settings:
index:
number_of_shards: 1
number_of_replicas: 1
xpack.security.audit.outputs: [index, logfile]
xpack.security.audit.index.rollover: daily
xpack.security.audit.logfile.events.include: [anonymous_access_denied,
authentication_failed, access_granted, access_denied]
----------------------------------------------------------- SSL X-Pack
Configuration---------------------------------------------------------------
xpack.ssl.keystore.path: /etc/elasticsearch/x-
pack/certs/xxxx
xpack.ssl.keystore.password: password
xpack.ssl.keystore.key_password: password
xpack.ssl.truststore.path: /etc/elasticsearch/x-
pack/certs/xxxx
xpack.ssl.truststore.password: password
xpack.ssl.verification_mode: none
xpack..security.transport.ssl.enabled: true
xpack.security.http.ssl.enabled: true
--------------------------------------------------------------- SSL X-Pack
Configuration -----------------------------------------------------------------
Anonymous access for Kibana
#xpack.security.authc:
anonymous:
username: _es_anonymous_user
roles: Anonymous_RO
authz_exception: false
#xpack.security.authc:
anonymous:
username: _es_anonymous_user
username: xxxxxx
roles: kibana_user_For_ES_Anonymous, AllIndexReadOnly
roles: AllIndexReadOnly, MaccessRole
authz_exception: false
authz_exception: true
#xpack.security.authc:
realms:
native1:
type: native
order: 0
enabled: true
active_directory:
type: active_directory
order: 1
enabled: true
domain_name:xxxxxxxx
url: xxxxxxxxx
unmapped_groups_as_roles: true
ssl:
certificate_authorities: [ "/etc/elasticsearch/x-
pack/ca/xxxxxx" ]
When you get a chance, take a look at this:
Rob