Tag Info

New answers tagged

0

Do you mean you want to see shut down messages? Usually all you need to do is to press Esc when the Ubuntu logo shows up.


0

You (and me) started from the wrong assumption. According to this, [...] the messages are printed the console and written to usplash (if applicable). There's also this post on SO saying that you should rather use #!/bin/sh instead of bash (but failing to provide a reason for that). So even if there's no issue with using bash, you won't find something ...


0

You can use the following perl command to replace all dates in your existing logs: cat my_squid.log | perl -ne '/(^.*? \+.*?)\..*?\s/; $a = $b = $1;$a= "\Q$a"; $b=~s/\// /g; $b=~s/(\d{4}):/$1 /; $b=`date --date=\"$b\" +%s`; chomp($b); s/$a/${b}/; print' Output is now: 1406799892.701 0 172.16.204.59 TCP_DENIED/407 5232 GET ...


0

You can browse the recorded data using the gnome-activity-journal tool. sudo apt-get install gnome-activity-journal From the command line, AFAIK there's no friendly tool to extract such data, but you can use the API, see this post on SO.


0

It is possible to get exit status from syslog. To get all anacron log lines: grep 'anacron' /var/log/syslog To get only anacron log lines from failed jobs: grep -E 'anacron.+exit status' /var/log/syslog


3

It's probably worth trying to establish what is filling the log(s) - either by simply examining them visually using the less or tail command tail -n 100 /var/log/syslog or if the offending lines are too deeply buried to easily see what's occuring, something like for log in /var/log/{dmesg,syslog,kern.log}; do echo "${log} :" sed -e 's/\[[^]]\+\]//' ...


3

Simply delete these files and then reboot? No. Empty them but do not use rm because it could end up crashing something while you are typing the touch command to recreate it. Shortest method: cd /var/log sudo su > lastlog > wtmp > dpkg.log > kern.log > syslog exit If not root it will require sudo. Taken from another answer on AU. ...


1

sudo apt-get install sysstat man pidstat Of possible additional interest, man sar, man mpstat



Top 50 recent answers are included