Advertisement
01n12

ELK Config

Jul 2nd, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.59 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: escluster-wa1prd
  18. #
  19. # ------------------------------------ Node ------------------------------------
  20. #
  21. # Use a descriptive name for the node:
  22. #
  23. node.name: esmaster-node2
  24. #
  25. # Add custom attributes to the node:
  26. #
  27. node.attr.rack: wa1-dc
  28. #
  29. # ----------------------------------- Paths ------------------------------------
  30. #
  31. # Path to directory where to store the data (separate multiple locations by comma):
  32. #
  33. path.data: /opt/elk/v630/elasticsearch-6.3.0/data
  34. #
  35. # Path to log files:
  36. #
  37. path.logs: /opt/elk/v630/elasticsearch-6.3.0/logs
  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. # Set the bind address to a specific IP (IPv4 or IPv6):
  54. #
  55. network.host: 172.03.13.208
  56. transport.host: 172.03.13.208
  57.  
  58. #
  59. # Set a custom port for HTTP:
  60. http.port: 8530
  61. transport.tcp.port: 8535
  62.  
  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. #discovery.zen.ping.multicast.enabled: false
  71. discovery.zen.ping.unicast.hosts: ["emas01:8535","emas02:8535","mas03:8535","edat01:8515", "dat02:8515"]
  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: 2
  76. #discovery.type: single-node
  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: 2
  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. #Enable automatic creation of X-Pack indicesedit
  93. #action.auto_create_index: .security,.monitoring*,.watches,.triggered_watches,.watcher-history*,.ml*
  94. node.master: true
  95. node.data: false
  96. #node.ingest: false
  97. search.remote.connect: false
  98. ##node.ml: false
  99. #xpack
  100. #xpack.license.self_generated.type: trial
  101. #xpack.graph.enabled:false
  102. #xpack.ml.enabled: true
  103. #xpack.monitoring.enabled: true
  104. #xpack.security.enabled: true
  105. #xpack.reporting.enabled:false
  106. #xpack.security.audit.enabled: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement