elastic / logstash

Logstash - transport and process your logs, events, or other data
https://www.elastic.co/products/logstash
Other
14.2k stars 3.5k forks source link

Logstash should set correct `interval` in the bulk monitoring API request #10892

Open ycombinator opened 5 years ago

ycombinator commented 5 years ago

When xpack.monitoring.enabled is set to true, Logstash will periodically collect its own monitoring metrics and ship them to the Elasticsearch cluster specified by xpack.monitoring.elasticsearch.hosts. The frequency of collection is determined by the xpack.monitoring.collection.interval setting, whose default value is 10s.

This setting value should be sent as as the interval query string parameter to the POST _monitoring/bulk Elasticsearch API endpoint that Logstash calls to send the monitoring data to Elasticsearch.

However, it appears that no matter what value is set for the xpack.monitoring.collection.interval setting, a value of 1s is always sent as the interval parameter.

rongxiang1986 commented 5 years ago

I have the same error. logstash7.1 set xpack.monitoring.collection.interval =60s,but get error: [2019-08-22T17:40:33,656][ERROR][logstash.outputs.elasticsearch] Encountered a retryable error. Will Retry with exponential backoff {:code=>400, :url=>"http://localhost:9200/_monitoring/bulk?system_id=logstash&system_api_version=7&interval=1s"}