rmg51 | Morning | 09:22 |
---|---|---|
JonathanD | Hi | 10:48 |
teddy-dbear | Morning peoples, dogs, turkeys and everything else | 12:09 |
ChinnoDog | mooorning | 14:38 |
ChinnoDog | My /var/log is 9.2gb. What do I do about that? | 16:49 |
jedijf | get rid of all the tar'd up old never gonna look at stuff | 16:55 |
jedijf | that's called a log jam | 16:55 |
jedijf | or start reading? | 16:58 |
ChinnoDog | Is there an easier way to do that than going through every item? | 16:58 |
ChinnoDog | haha | 16:58 |
ChinnoDog | Reading 9.2gb of text files could take the rest of my life. | 16:59 |
square-r00t | cd /var/log;rm -f *.gz *.[0-9];for i in `find /var/log/ -maxdepth 1 -type f`;do cat /dev/null > $i;done | 17:23 |
jedijf | ChinnoDog: one liner practice - use ls -lt first - when it works - use rm | 17:23 |
square-r00t | removes all your old logs and truncates all your current ones | 17:23 |
jedijf | square-r00t: NO | 17:23 |
jedijf | dude | 17:23 |
jedijf | jesus | 17:23 |
jedijf | fish vs give | 17:24 |
square-r00t | i know. i just like showing off my one-liners. :/ | 17:24 |
jedijf | in the future let them try - then everyone can show results - the beauty is many ways to accomplish tasks | 17:25 |
square-r00t | well, i was also flying blind; i mean that pretty much wipes out everything in /var/log to a fresh slate so i have no idea if he wants to keep anything | 17:25 |
jedijf | i would've used [2-9] | 17:26 |
square-r00t | hell, he can strip the -maxdepth 1 even and he'll get a totally pristine /var/log recursively, but meh | 17:26 |
jedijf | lol | 17:26 |
square-r00t | yeah, not everyone likes keeping logs. hehe | 17:26 |
square-r00t | hell, for my personal boxes i just have journald logging to memory | 17:27 |
square-r00t | but i have a syslog backup | 17:27 |
pleia2 | was tempting to use logstash on my personal servers, you know, for fun, in my free time | 17:28 |
pleia2 | because logstash is cool | 17:28 |
square-r00t | i probably wouldn't bother unless i had a dedicated box for it | 17:29 |
pleia2 | well yes, logstash itself would run somewhere churning through it all | 17:30 |
ChinnoDog | Closer examination showed that nearly all of it was my php5-fpm.log which I had set logging level to debug.. oops | 17:40 |
TheLordOfTime | ChinnoDog, yeah, don't use debug log level :P | 17:40 |
TheLordOfTime | unless you're debugging a problem | 17:41 |
TheLordOfTime | php 101 | 17:41 |
ChinnoDog | I /was/ debugging a problem... a long time ago | 17:41 |
TheLordOfTime | and forgot to turn it off :P | 17:42 |
TheLordOfTime | that explains the massive logs though | 17:42 |
steven_ | any graphic designers here--working with commercial printers? | 17:55 |
=== square-r00t is now known as Mr_Wizard | ||
=== Mr_Wizard is now known as square-r00t |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!