News for hackers. Stuff that matters.
Re:Grepping logs is terrible by babuskov on Wednesday May 06, 2015 @04:45AM (#9497285)
If you need to grep logs on regular basis, you're doing it wrong.

Store important data in the database so that you can query it efficiently.

Keep logs for random searches when something unexpected happens. I log gigabytes per day, but only grep maybe once-twice a year.

Re:Grepping logs is terrible by madhouse on Wednesday May 06, 2015 @06:26AM (#9497624)
Agreed. But if I keep my logs in a database, I may aswell use the database to query my logs, instead of grepping in them.

(And voila, you have binary log storage.)

Re:Grepping logs is terrible by babuskov on Saturday May 09, 2015 @06:02AM (#9515980)
Separate the data you are sure you need often and only store that in the database. Store everything else in the textual logs.