Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.64 KB | None | 0 0
  1. ################### Heartbeat Configuration Example #########################
  2.  
  3. # This file is an example configuration file highlighting only some common options.
  4. # The heartbeat.reference.yml file in the same directory contains all the supported options
  5. # with detailed comments. You can use it for reference.
  6. #
  7. # You can find the full configuration reference here:
  8. # https://www.elastic.co/guide/en/beats/heartbeat/index.html
  9.  
  10. ############################# Heartbeat ######################################
  11.  
  12. # Configure monitors
  13. heartbeat.monitors:
  14. - type: http
  15.  
  16. # List or urls to query
  17. urls: ["http://10.3.56.26:9200"]
  18.  
  19. # Configure task schedule
  20. schedule: '@every 10s'
  21.  
  22. # Total test connection and data exchange timeout
  23. #timeout: 16s
  24.  
  25. #==================== Elasticsearch template setting ==========================
  26.  
  27. setup.template.settings:
  28. index.number_of_shards: 1
  29. index.codec: best_compression
  30. #_source.enabled: false
  31.  
  32. #================================ General =====================================
  33.  
  34. # The name of the shipper that publishes the network data. It can be used to group
  35. # all the transactions sent by a single shipper in the web interface.
  36. #name:
  37.  
  38. # The tags of the shipper are included in their own field with each
  39. # transaction published.
  40. #tags: ["service-X", "web-tier"]
  41.  
  42. # Optional fields that you can specify to add additional information to the
  43. # output.
  44. #fields:
  45. # env: staging
  46.  
  47.  
  48. #============================== Dashboards =====================================
  49. # These settings control loading the sample dashboards to the Kibana index. Loading
  50. # the dashboards is disabled by default and can be enabled either by setting the
  51. # options here, or by using the `-setup` CLI flag or the `setup` command.
  52. #setup.dashboards.enabled: false
  53.  
  54. # The URL from where to download the dashboards archive. By default this URL
  55. # has a value which is computed based on the Beat name and version. For released
  56. # versions, this URL points to the dashboard archive on the artifacts.elastic.co
  57. # website.
  58. #setup.dashboards.url:
  59.  
  60. #============================== Kibana =====================================
  61.  
  62. # Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
  63. # This requires a Kibana endpoint configuration.
  64. setup.kibana:
  65.  
  66. # Kibana Host
  67. # Scheme and port can be left out and will be set to the default (http and 5601)
  68. # In case you specify and additional path, the scheme is required: http://localhost:5601/path
  69. # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
  70. host: "10.3.56.26:5601"
  71.  
  72. # Kibana Space ID
  73. # ID of the Kibana Space into which the dashboards should be loaded. By default,
  74. # the Default Space will be used.
  75. #space.id:
  76.  
  77. #============================= Elastic Cloud ==================================
  78.  
  79. # These settings simplify using heartbeat with the Elastic Cloud (https://cloud.elastic.co/).
  80.  
  81. # The cloud.id setting overwrites the `output.elasticsearch.hosts` and
  82. # `setup.kibana.host` options.
  83. # You can find the `cloud.id` in the Elastic Cloud web UI.
  84. #cloud.id:
  85.  
  86. # The cloud.auth setting overwrites the `output.elasticsearch.username` and
  87. # `output.elasticsearch.password` settings. The format is `<user>:<pass>`.
  88. #cloud.auth:
  89.  
  90. #================================ Outputs =====================================
  91.  
  92. # Configure what output to use when sending the data collected by the beat.
  93.  
  94. #-------------------------- Elasticsearch output ------------------------------
  95. output.elasticsearch:
  96. # Array of hosts to connect to.
  97. hosts: ["10.3.56.26:9200"]
  98.  
  99. # Enabled ilm (beta) to use index lifecycle management instead daily indices.
  100. #ilm.enabled: false
  101.  
  102. # Optional protocol and basic auth credentials.
  103. #protocol: "https"
  104. #username: "elastic"
  105. #password: "changeme"
  106.  
  107. #----------------------------- Logstash output --------------------------------
  108. #output.logstash:
  109. # The Logstash hosts
  110. #hosts: ["localhost:5044"]
  111.  
  112. # Optional SSL. By default is off.
  113. # List of root certificates for HTTPS server verifications
  114. #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  115.  
  116. # Certificate for SSL client authentication
  117. #ssl.certificate: "/etc/pki/client/cert.pem"
  118.  
  119. # Client Certificate Key
  120. #ssl.key: "/etc/pki/client/cert.key"
  121.  
  122. #================================ Processors =====================================
  123.  
  124.  
  125. # Configure processors to enhance or manipulate events generated by the beat.
  126.  
  127. processors:
  128. - add_host_metadata: ~
  129. - add_cloud_metadata: ~
  130.  
  131. #================================ Logging =====================================
  132.  
  133. # Sets log level. The default log level is info.
  134. # Available log levels are: error, warning, info, debug
  135. #logging.level: debug
  136.  
  137. # At debug level, you can selectively enable logging only for some components.
  138. # To enable all selectors use ["*"]. Examples of other selectors are "beat",
  139. # "publish", "service".
  140. #logging.selectors: ["*"]
  141.  
  142. #============================== Xpack Monitoring ===============================
  143. # heartbeat can export internal metrics to a central Elasticsearch monitoring
  144. # cluster. This requires xpack monitoring to be enabled in Elasticsearch. The
  145. # reporting is disabled by default.
  146.  
  147. # Set to true to enable the monitoring reporter.
  148. #xpack.monitoring.enabled: false
  149.  
  150. # Uncomment to send the metrics to Elasticsearch. Most settings from the
  151. # Elasticsearch output are accepted here as well. Any setting that is not set is
  152. # automatically inherited from the Elasticsearch output configuration, so if you
  153. # have the Elasticsearch output configured, you can simply uncomment the
  154. # following line.
  155. #xpack.monitoring.elasticsearch:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement