New answers tagged

0

For Ubuntu 16.04, you can find the global configuration file here: /etc/apache2/apache2.conf Therein it defines some LogFormat directives. LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>...


0

You could have logrotate rotate the log every day and only keep 1 or 2 days of logs. You can accomplish this by editing /etc/logrotate.d/pm-utils to something like this: /var/log/pm-suspend.log { weekly rotate 4 delaycompress compress notifempty missingok } /var/log/pm-powersave.log { daily rotate 2 ...


0

More commands : sudo cat /var/log/dpkg.log | grep "\ installed\ " >> installed.txt ls -tl /var/lib/dpkg/info/ | grep list >> ls-tl-installed.txt


4

These logs are already generated automatically. You can view the files in /var/log/apt. There is a history.log which logs all executed apt commands, like this: Start-Date: 2016-07-06 14:29:04 Commandline: apt upgrade Requested-By: bytecommander (1000) Upgrade: tzdata:amd64 (2016d-0ubuntu0.16.04, 2016f-0ubuntu0.16.04) End-Date: 2016-07-06 14:29:06 The ...


2

Apparent log file time stamp anomalies do occur, albeit rarely. The time stamp portion of the log entry is from when the related operation was initiated, yet the actual line is written to the log, if required, when the operation completes, or times out or whatever. For your example I assume it took several minutes for the thermald sysfs write to timeout, ...


2

If you are precisely after the top statistics you could run top in batch mode specifying the pid of the process that you are after. Taking the example from this page (http://www.dedoimedo.com/computers/linux-cool-hacks.html) if you typed top -b -d 10 -n 3 >> top-file You would "have top running in batch mode (-b). It's going to refresh every 10 ...



Top 50 recent answers are included