What if log stash contained is stopped. #277
-
Hi Team, I am new to logstash. Below configuration I added: logstash.conf: Add your filters / logstash plugins configuration herefilter { output { Logstash docker file: https://github.com/elastic/logstash-dockerFROM docker.elastic.co/logstash/logstash:7.9.2 Add your logstash plugins setup hereExample: RUN logstash-plugin install logstash-filter-jsonRUN logstash-plugin install logstash-input-http I was checking if my container goes down: So, my query is how to handle missed logs in Scenario 2. Please help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The log events would only be missing if your process producing the log events crashed. One thing to note about A better alternative is to use Other than that, given that there's enough resources and that processes doesn't crash, the log events will finally end up on the log server. |
Beta Was this translation helpful? Give feedback.
The log events would only be missing if your process producing the log events crashed. One thing to note about
Http
and settingqueueLimitBytes
tonull
is that log events will be stored in memory in if the log server is unavailable. This will only work for as long as your hardware has memory to allocate, and when there is no more memory to allocate your process producing log events will crash and all events will be lost.A better alternative is to use
DurableHttpUsingFileSizeRolledBuffers
orDurableHttpUsingTimeRolledBuffers
because in those situations the log events are be stored on disk instead of in memory when the log server is unreachable.Other than that, given that there's enough r…