graylog2-server icon indicating copy to clipboard operation
graylog2-server copied to clipboard

Graylog2 server filling disk with logs

Open r-duran opened this issue 12 years ago • 4 comments

Hi,

Graylog 2 server filled my disk with graylog2-server.log file. The problem is I used "*" char in a stream rule and graylog seems to give warning every line it process. So it will fill you disk silently for sure.

2014-01-10 14:11:35,634 WARN : org.graylog2.streams.StreamRouter - Could not match stream rule <2/.gonderim limitinizi astiniz.>: Dangling meta character '' near index 0 *.gonderim limitinizi astiniz.

r-duran avatar Jan 10 '14 12:01 r-duran

I think the problem is not the name of the stream but the stream rules you defined. Can you please paste the rules that you added to this stream? Is it the complete log message you pasted or is there some more?

dennisoelkers avatar Feb 10 '14 11:02 dennisoelkers

I already find and fixed the issue. I used regex rule " .gonderim limitinizi astiniz. " which lead the exceptions. Then I edit the rule to "^ .gonderim limitinizi astiniz. $" than the problem is solved.

I didn't open the bug report for rule handling. The problem is graylog-server should not throw an execption for every line becouse there should be 100Millions of lines a day or more.

Maybe it should only write exceptions to log file if it is running in debog mode?

r-duran avatar Feb 10 '14 11:02 r-duran

i'm changing the log to debug there and will add exception tracking metrics. not sure if i get this to be exposed right away for rc2, though.

kroepke avatar Feb 10 '14 13:02 kroepke

Good to hear you will fix it. Keep up the good work.

r-duran avatar Feb 10 '14 14:02 r-duran