Please help...
Trying to change the configuration (filebeat.yml), but not successfully - is it possible - always retry publish events?
2019-06-11T16:31:43+03:00 DBG [publish] Publish event: {
"@timestamp": "2019-06-11T13:31:43.219Z",
"@metadata": {
"beat": "filebeat",
"type": "doc",
"version": "6.1.1"
},
"message": "2019-06-11 15:29:57 status CHECK MSG UNV-14. Elastic",
"source": "/var/log/test/test-log.log",
"offset": 1860973,
"tags": [
"service-X",
"web-tier"
],
"prospector": {
"type": "log"
},
"beat": {
"name": "f2d54ccd2fdd",
"hostname": "f2d54ccd2fdd",
"version": "6.1.1"
}
}
2019-06-11T16:31:43+03:00 DBG [harvester] End of file reached: /var/log/test/test-log.log; Backoff now.
2019-06-11T16:31:44+03:00 DBG [harvester] End of file reached: /var/log/test/test-log.log; Backoff now.
2019-06-11T16:31:44+03:00 DBG [elasticsearch] PublishEvents: 1 events have been published to elasticsearch in 3.965201ms.
2019-06-11T16:31:44+03:00 WARN Can not index event (status=403): {"type":"cluster_block_exception","reason":"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"}
2019-06-11T16:31:44+03:00 DBG [memqueue] ackloop: receive ack [1: 0, 1]
2019-06-11T16:31:44+03:00 DBG [memqueue] broker ACK events: count=1, start-seq=2, end-seq=2
2019-06-11T16:31:44+03:00 DBG [memqueue] ackloop: return ack to broker loop:1
2019-06-11T16:31:44+03:00 DBG [memqueue] ackloop: done send ack
2019-06-11T16:31:44+03:00 DBG [registrar] Processing 1 events
2019-06-11T16:31:44+03:00 DBG [registrar] Registrar states cleaned up. Before: 1, After: 1
2019-06-11T16:31:44+03:00 DBG [registrar] Write registry file: /var/lib/filebeat/registry
2019-06-11T16:31:44+03:00 DBG [registrar] Registry file updated. 1 states written.
2019-06-11T16:31:46+03:00 DBG [harvester] End of file reached: /var/log/test/test-log.log; Backoff now.
that is to say - when Elastic returned to its normal state (i.e. for example: "index.blocks.read_only_allow_delete": null" - How to force Filebeat to re-send data?
If status=403 - retry ... retry... and always try to send data?
What are the configuration options? Is it possible to always try to send data if any negative http-response from elastic?