Advertisement
G0nz0uk

elasticsearchv1

Jan 7th, 2022
1,045
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.74 KB | None | 0 0
  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: aw-cluster
  18. #
  19. # ------------------------------------ Node ------------------------------------
  20. #
  21. # Use a descriptive name for the node:
  22. #
  23. #node.name: node-1
  24. #
  25. # Add custom attributes to the node:
  26. #
  27. #node.attr.rack: r1
  28. #
  29. # ----------------------------------- Paths ------------------------------------
  30. #
  31. # Path to directory where to store the data (separate multiple locations by comma):
  32. #
  33. path.data: /var/lib/elasticsearch
  34. #
  35. # Path to log files:
  36. #
  37. path.logs: /var/log/elasticsearch
  38. #
  39. # ----------------------------------- Memory -----------------------------------
  40. #
  41. # Lock the memory on startup:
  42. #
  43. bootstrap.memory_lock: true
  44. #
  45. # Make sure that the heap size is set to about half the memory available
  46. # on the system and that the owner of the process is allowed to use this
  47. # limit.
  48. #
  49. # Elasticsearch performs poorly when the system is swapping the memory.
  50. #
  51. # ---------------------------------- Network -----------------------------------
  52. #
  53. # By default Elasticsearch is only accessible on localhost. Set a different
  54. # address here to expose this node on the network:
  55. #
  56. network.host: 0.0.0.0
  57. #
  58. # By default Elasticsearch listens for HTTP traffic on the first free port it
  59. # finds starting at 9200. Set a specific HTTP port here:
  60. #
  61. http.port: 9200
  62. #
  63. # For more information, consult the network module documentation.
  64. #
  65. # --------------------------------- Discovery ----------------------------------
  66. #
  67. # Pass an initial list of hosts to perform discovery when this node is started:
  68. # The default list of hosts is ["127.0.0.1", "[::1]"]
  69. #
  70. #discovery.seed_hosts: ["host1", "host2"]
  71. #
  72. # Bootstrap the cluster using an initial set of master-eligible nodes:
  73. #
  74. #cluster.initial_master_nodes: ["node-1", "node-2"]
  75. #
  76. discovery.type: single-node
  77. # For more information, consult the discovery and cluster formation module documentation.
  78. #
  79. # ---------------------------------- Various -----------------------------------
  80. #
  81. # Require explicit names when deleting indices:
  82. #
  83. #action.destructive_requires_name: true
  84. indices.query.bool.max_clause_count: 8192
  85. search.max_buckets: 250000
  86.  
  87. action.destructive_requires_name: 'true'
  88.  
  89. xpack.security.http.ssl.enabled: 'true'
  90. xpack.security.http.ssl.verification_mode: 'none'
  91. #xpack.security.http.ssl.certificate_authorities: /etc/elasticsearch/certs/ca/ca.crt
  92. #xpack.security.http.ssl.key: /etc/elasticsearch/certs/svr-elastiflow/svr-elastiflow.key
  93. #xpack.security.http.ssl.certificate: /etc/elasticsearch/certs/svr-elastiflow/svr-elastiflow.crt
  94. xpack.security.http.ssl.certificate_authorities: /etc/elasticsearch/certs/ca/camydomain.cer
  95. xpack.security.http.ssl.key: /etc/elasticsearch/certs/svr-elastiflow/vmnetflow_mydomain_com.key
  96. xpack.security.http.ssl.certificate: /etc/elasticsearch/certs/svr-elastiflow/vmnetflow_mydomain_com.crt
  97.  
  98. xpack.monitoring.enabled: 'true'
  99. xpack.monitoring.collection.enabled: 'true'
  100. xpack.monitoring.collection.interval: 30s
  101.  
  102. xpack.security.enabled: 'true'
  103. xpack.security.audit.enabled: 'false'
  104.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement