-
Notifications
You must be signed in to change notification settings - Fork 914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default image could have decent logratate options on #38
Comments
Fair point, and open to suggestions: any recommendations as to what options would be decent? |
Maybe something like this: 5 files with 100MB limit per service totally 500MB per service and totally over kibana, logstash, elasticsearch it would be 1500MB. |
Hmm. How logstash handle log writing? Is there log4j etc. handler to handle logrotating? Few examples just point out normal daily logrorate (which should be then hourly in this case?). |
OK thanks for the input, will look into this and update the image. |
@spujadas How do you manage the logs that is sent from the client servers to ELK servers? How can we retain only 3 days worth of data in ELK servers that gets displayed in Kibana? |
@gvenka008c Sorry, not a Logstash expert so haven't got a definite answer to that one. |
Ended up going with a daily rotation + compression + deletion after a week, using logrotate for all three services. |
Thanks. Sound very good! |
Instead of using logrotate on logstash you may consider removing the following from
See here: https://discuss.elastic.co/t/logstash-stdout-large-size/24939/4 Also, this logrotate setup did not work for me. After some debugging it seems as if the cron daemon is not running within the container (see issue #60) |
@reallistic Yep, sounds like a good idea, but I need to do a few tests first (see #60, will have to wait a couple of weeks for that). |
Wish from a guy with 30GB logfile from logstash for example :)
The text was updated successfully, but these errors were encountered: