ef32b08d06bf795b74afeca579dd940699057568
[policy/engine.git] / packages / base / src / files / install / elk / config / elasticsearch.yml
1 # ======================== Elasticsearch Configuration =========================
2 #
3 # NOTE: Elasticsearch comes with reasonable defaults for most settings.
4 #       Before you set out to tweak and tune the configuration, make sure you
5 #       understand what are you trying to accomplish and the consequences.
6 #
7 # The primary way of configuring a node is via this file. This template lists
8 # the most important settings you may want to configure for a production cluster.
9 #
10 # Please consult the documentation for further information on configuration options:
11 # https://www.elastic.co/guide/en/elasticsearch/reference/index.html
12 #
13 # ---------------------------------- Cluster -----------------------------------
14 #
15 # Use a descriptive name for your cluster:
16 #
17 #cluster.name: my-application
18 cluster.name: ${{FQDN}}-policy-sa
19 #
20 # ------------------------------------ Node ------------------------------------
21 #
22 # Use a descriptive name for the node:
23 #
24 #node.name: node-1
25 node.name: "${{FQDN}}"
26 #
27 # Add custom attributes to the node:
28 #
29 #node.attr.rack: r1
30 #
31 # ----------------------------------- Paths ------------------------------------
32 #
33 # Path to directory where to store the data (separate multiple locations by comma):
34 #
35 #path.data: /path/to/data
36 #
37 # Path to log files:
38 #
39 path.logs: ${{POLICY_HOME}}/logs
40 #
41 # ----------------------------------- Memory -----------------------------------
42 #
43 # Lock the memory on startup:
44 #
45 #bootstrap.memory_lock: true
46 #
47 # Make sure that the heap size is set to about half the memory available
48 # on the system and that the owner of the process is allowed to use this
49 # limit.
50 #
51 # Elasticsearch performs poorly when the system is swapping the memory.
52 #
53 # ---------------------------------- Network -----------------------------------
54 #
55 # Set the bind address to a specific IP (IPv4 or IPv6):
56 #
57 # Only allow to run on localhost so it can't be queried from outside
58 network.bind_host: ["_local_"]
59 #
60 # Set a custom port for HTTP:
61 #
62 #http.port: 9200
63 #
64 # For more information, consult the network module documentation.
65 #
66 # --------------------------------- Discovery ----------------------------------
67 #
68 # Pass an initial list of hosts to perform discovery when new node is started:
69 # The default list of hosts is ["127.0.0.1", "[::1]"]
70 #
71 #discovery.zen.ping.unicast.hosts: ["host1", "host2"]
72 #
73 # Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1):
74 #
75 #discovery.zen.minimum_master_nodes: 3
76 #
77 # For more information, consult the zen discovery module documentation.
78 #
79 # ---------------------------------- Gateway -----------------------------------
80 #
81 # Block initial recovery after a full cluster restart until N nodes are started:
82 #
83 #gateway.recover_after_nodes: 3
84 #
85 # For more information, consult the gateway module documentation.
86 #
87 # ---------------------------------- Various -----------------------------------
88 #
89 # Require explicit names when deleting indices:
90 #
91 #action.destructive_requires_name: true
92 #--------------------------------- Scripting -----------------------------------
93 # These will be removed in v6.0
94 script.inline: false
95 script.stored: false
96 script.file: false