etsy / logster

Parse log files, generate metrics for Graphite and Ganglia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove old lines logs than X days

hieuiph opened this issue · comments

Hi everyone,

I'm using logster and graphite in order to visualize the code response of HTTP. But there is a problem : size of file log grows very fast, so I want remove old lines . I tried by a script shell, it keep only 5000 lines and remove all old lines . But it didn't work. Is there a solution for this one ?

Thanks and sorry my poor english ^^

Hey, usually logtail keeps track of the last position in a logfile that was read and only reads from there on. Is your logfile growing so fast that logster can't keep up or what exactly is the problem?

Hi, I have a log file, it grow up fast and I want to remove its old lines every minutes. I use command:
*/1 * * * * echo "" > /var/log/port80.access.log
But It doesn't work, the visualization of metrics are down to 0. Do we have a solution in order to resolve this problem ?
Thanks !

If you're still having issues the best way to get them resolved is by asking someone in the #codeascraft IRC channel on Freenode

I'm closing this as I don't believe we'd be able to efficiently resolve your issue here. Please feel free to re-open if you disagree!