Questions tagged [logging]
Adding messages, mostly warnings and/or errors, to a log file.
315
questions
351
votes
13
answers
789k
views
How can I monitor the memory usage?
I have used top to see the memory usage at the moment. But I would like to monitor the memory usage over a period of time. E.g start monitoring and then execute a few commands, and final stop the ...
107
votes
7
answers
296k
views
How can I free space from a massive 39.5GB /var/log/ folder?
I just got a message from the default disk analyses software (Baobab)
that I only have 1GB left on the hard drive. After some search, I found that the /var/log/ folder is the cause of this.
Some file/...
105
votes
2
answers
217k
views
Difference between /var/log/messages, /var/log/syslog, and /var/log/kern.log?
For the purposes of kernel logging, why do I have three different, non-inclusive levels of logging amongst /var/log/messages, /var/log/syslog, and /var/log/kern.log?
52
votes
7
answers
59k
views
Where are fsck results logged at boot time, after /forcefsck?
When working remotely, I set a server to force an fsck at boot time with the command:
sudo touch /forcefsck
and rebooted.
After it restarted, I checked in /var/log/fsck for the results of the disk ...
32
votes
2
answers
36k
views
How do I find the last logged system boot and shutdown times?
I'm a Rails developer working on a web application on Ubuntu Server 10.04. Due to internal requirements, I was asked to find the last 10 system boot and shutdown times... I have no clue where to find ...
31
votes
6
answers
105k
views
How to log all Bash commands by all users on a server?
Our small company runs an Ubuntu Server 11.10, to which a couple of people have SSH access. The actual terminals are sometimes used, too. How can we locally log all Bash commands run, along with user ...
30
votes
2
answers
44k
views
Where are Upstart log messages on Ubuntu 13.X?
On Ubuntu 12.04, I can find Upstart log messages in /var/log/syslog.
Commands:
# initctl log-priority info
# initctl emit hello
Log:
Apr 1 01:56:56 precise64 kernel: [ 8365.820425] init: ...
30
votes
3
answers
31k
views
No more boot logging since 16.04?
I noticed that my /var/log/boot.log file has date 2016-04-22, last time I booted in 15.10. Where are Xenial boot.log files located?
29
votes
1
answer
31k
views
Understanding UFW log
What does this UFW log mean? Has already asked a similar question, but I want to know explicitly what each line of the UFW log means
Feb 6 16:27:08 jonasgroenbek kernel: [71910.873115]
[UFW BLOCK] ...
28
votes
2
answers
17k
views
Relationship of rsyslog and journald on Ubuntu 16.04
I am running what is a vanilla Ubuntu 16.04 server, and I'm trying to wrap my head around how logging is set up by default. I can see that both journald and rsyslog are installed and running, but it's ...
24
votes
3
answers
64k
views
How can I receive syslog logs from a networked system?
I'd like to configure Ubuntu to receive logs from a DD-WRT router. The router's configuration screen contains the following section:
and its logging documentation reads:
If you wish to send logs ...
21
votes
7
answers
60k
views
How to monitor & log server hardware temperatures & load
I am looking for a way to log & monitor my server hardware temperatures and load (like for CPU or RAM). How might I do that?
Objective is to:
ensure hardware is not heating up
identify what ...
21
votes
4
answers
46k
views
How to log memory and cpu usage of an application?
Similar to question How to log CPU load?, I would like to log memory of a process.
The process I want to log, is killed on a remote server, and I want to find out the CPU load and the memory usage ...
20
votes
2
answers
11k
views
systemd on 15.04 won't log stdout of unit
I'm currently trying to make a systemd unit as a web server. Currently, my foo.service file looks as follows:
[Unit]
Description=The Foo Web Server
[Service]
Type=simple
ExecStart=/opt/foo/.cabal-...
19
votes
6
answers
38k
views
How to Solve Increasing Size of MySQL Binlog Files Problem?
MySQL Binlog files count is increasing day by day and their size is increasing in gigabytes. How can I stop the increasing size of binlog files? They are fulling the disc space.
18
votes
1
answer
5k
views
How to run a shell script when a new USB storage device is detected?
I want a script that dumps the log and starts logging on it as soon as a usb mass storage is plugged (with the file 'OKdump' on it).And if anything abnormal(Like a error that is visually present) is ...
17
votes
1
answer
26k
views
syslog not showing log levels in messages
Here is sample output of my syslog messages in /var/log/syslog:
Nov 15 20:20:48 ubuntu winbindd[915]: [2011/11/15 20:20:48.940063, 0] winbindd/idmap_tdb.c:287(idmap_tdb_open_db)
Nov 15 20:20:48 ...
16
votes
3
answers
33k
views
What do UFW's audit log entries mean?
I'm sometimes getting a lot of these AUDIT log entries in
...
[UFW AUDIT] IN= OUT=eth0 SRC=176.58.105.134 DST=194.238.48.2 LEN=76 TOS=0x10 PREC=0x00 TTL=64 ID=32137 DF PROTO=UDP SPT=36231 DPT=123 ...
16
votes
6
answers
58k
views
.xsession-errors file is huge. How can I disable? [duplicate]
I have visited over 30 different forum questions about this very same issue but none of them have been able to point me in the right direction.
I don't care what is causing the issue.
I don't care ...
14
votes
3
answers
37k
views
Does pulseaudio have an error log?
In order to help provide better information for my other question about browsers and Pulse audio, I wanted to see if I could get some kind of helpful log information.
However, there doesn't seem to ...
14
votes
2
answers
12k
views
Accidentally deleted /var/log/syslog
I accidentally deleted /var/log/syslog and now I can't get rsyslog working.
I was googling, I tried everything I found. To be precise:
I created syslog with touch.
Then I set chmod and chown ...
14
votes
2
answers
27k
views
AWStats: cannot access /var/log/apache2/access.log
I installed awstats on my new Ubuntu Lucid server, but when cron tries to run it as user www-data, it complains that cannot access /var/log/apache2/access.log: Permission denied.
In /usr/share/doc/...
13
votes
4
answers
40k
views
Where can I find messages related to Apache start up?
Apache didn't start up automatically like it usually does. I'd like to try to find out why. It looks like it never started up today, so nothing in /var/log/apache2/error.log since it never ran. As I ...
12
votes
1
answer
22k
views
Where did the functionality of /var/log/dmesg go in xenial 16.04?
/var/log/dmesg was a useful boot time dmesg dump. I can’t find that any more in Ubuntu 16.04. Is it somewhere else?
(/var/log/kern.log* is limited; it catches kernel messages only after the logging ...
11
votes
1
answer
41k
views
Where do I find stderr logs?
I was sending a message to stderr with echo "Mayday!" 1>&2
Now I'm trying to find it in the logs but couldn't find it anywhere.
It's not in /var/log/syslog and neither in journalctl, ...
11
votes
2
answers
10k
views
Where do log messages go with journald and rsyslog
On Ubuntu 18.04 both journald and rsyslog are installed. Both serve the same purpose of collecting log messages and storing them. So we have two programs doing the same work here.
What I could find ...
10
votes
1
answer
4k
views
Determine when laptop was last plugged in to power
I am looking for log entries of when my device is plugged and unplugged to/from mains power, or when the battery changes from discharging/charging state. Which log entries do I need to look for for ...
10
votes
1
answer
11k
views
How to **really** suppress kernel messages during boot?
I have Ubuntu Server 18.04 LTS. I want to suppress kernel messages shown on console during boot. (The type of [0.1234] kernel message thing that floods the screen ).
THIS DID NOT WORK:
Changing /etc/...
9
votes
9
answers
21k
views
Getting notified of failed cron jobs
I'm concerned that cron jobs can fail silently for an indefinite period of time on vanilla Ubuntu Desktop 12.04.1 (Precise), and no one will notice. I would like to get a notification whenever a ...
9
votes
2
answers
2k
views
asynchronous logging via rsyslogd(8) and write buffer increase
On a pretty high traffic web site running in virtual containers (VMware) and lacking local storage, we've managed to increase throughput (requests per second) significantly by switching from logging ...
8
votes
3
answers
39k
views
How do I set up SFTP file access logging for OpenSSH?
I have an SFTP setup using the built-in sftp-subsystem of OpenSSH with chrooted users.
In the old days when I used to use FTP, I was able to see what files were accessed by users in the logs.
How do ...
8
votes
3
answers
21k
views
How to enable logging for Google Chrome in Ubuntu 12.04?
I'm trying to capture the logs for a certain bug I'm having with Google Chrome. However, I can't find/enable logs for GC.
According to this Chromium project page, I just need to add the flags --...
8
votes
2
answers
23k
views
How can I get the command log of a particular user on Ubuntu Server?
Is there a way to find a log of all the commands that have been run by a user on Ubuntu 11.10 Server?
I need to find out what my friend ran to install a program.
8
votes
3
answers
14k
views
How to change location where logs are stored?
I am running out of space and would like to move my logs to recover some room on my SSD. My question:
I have an SSD (mounted at /) and regular hard-drive (mounted at /mnt/d2). How can I change it so ...
8
votes
1
answer
6k
views
Where can I find the log file of my system temperature?
So, I have the lm-sensors package installed, and I can run sensors and get details of my system temperature, like this:
acpitz-virtual-0
Adapter: Virtual device
temp1: +45.0°C (crit = +120.0°...
8
votes
2
answers
28k
views
How can I find out which user deleted a directory?
My Ubuntu server has about roughly 30 active users on it. I personally know everyone using the server. Recently, a few friends and I were working on project. We made a new directory for the project ...
8
votes
1
answer
17k
views
Kernel Logging stopped
I found the following line at the end of my /var/log/messages.1
Apr 29 13:58:29 MyLaptop kernel: Kernel logging (proc) stopped.
/var/log/messages is indeed empty? This happened when I updated to ...
8
votes
3
answers
2k
views
How do I redirect Google Chrome Logs out of my kern.log
I have hundreds of these log entries:
Feb 13 16:46:56 XXXX kernel: [42982.178922] type=1701 audit(1360799216.852:1514): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=5529 comm="chrome" reason="...
8
votes
2
answers
6k
views
How to log boot messages?
I'm trying to check the boot log messages in the file /var/log/boot on Ubuntu 8.10 & 9.10 and I found it empty with the message (Nothing has been logged yet.). The bootlogd service is running at ...
7
votes
2
answers
11k
views
How to save terminal history to a file from a bash file?
I am trying to create a bash script that will save the terminal history to a file called hist.txt. Using history > hist.txt doesn't seem to work in the bash script, but works fine when executed in ...
7
votes
3
answers
67k
views
Sending UDP packets with `logger` command
I have couple different solutions for running custom syslog server (based on https://gist.github.com/marcelom/4218010).
The problem I am facing is that the following command does not send UDP packets ...
7
votes
3
answers
15k
views
What is the default apache2 log format and where is defined such default?
I review (a fast reading) Apache Module mod_log_config and can't figure out what is the apache2 default log format and where is defined it. Any idea?
Note that what is on
/etc/apache2/conf.d/...
7
votes
1
answer
36k
views
Disable all Logging in Ubuntu Server
I have recently signed up with digitalocean, created a server for a SSH tunnel for browsing security. But this is only as good as logs kept and would like to disable them all.
I am looking to find ...
7
votes
1
answer
4k
views
Why shouldn't I use apt-get install --qq without a no-action modifier?
From man apt-get:
Note that quiet level 2 implies -y; you should never use -qq without a no-action modifier such as -d, --print-uris or -s as APT may decide to do something you did not expect.
...
7
votes
2
answers
39k
views
Ubuntu 14.04 - logrotate does not rotate /var/log/* (rsyslog config)
I have a bunch of Ubuntu 14.04 servers I manage where logrotate is not rotating anything under /var/log/*. I'm going to assume its an issue with the /etc/logrotate.d/rsyslog as I see other entries in /...
7
votes
1
answer
4k
views
Log boot messages on tty1 instead of tty7
I'd like to see my boot messages in a different VT than 7.
Can it be changed? Can I get the old behaviour - to get a login prompt AFTER all boot-up is complete in TTY1?
7
votes
1
answer
2k
views
How can I find out which programs have modified a file over some period of time?
I'd like to better understand which programs are modifying a specific file1 during a reboot. Can I set something up to log this kind of information?
Polling for which processes currently have the ...
7
votes
1
answer
5k
views
Where does compiz log error messages?
I'm having some trouble with compiz and dual monitors (see Why won't visual effects work with a dual monitor setup), and I'd like to check the compiz logfiles to see what, if anything, might be ...
6
votes
3
answers
2k
views
How to check who installed what in the system?
How can I know:
What packages were installed in the system?
The user who installed them?
6
votes
2
answers
4k
views
Rotating a log file in my home directory on Ubuntu Server 14.04 LTS
I have a log file ircd.log in /home/irc.
I want to rotate it daily at 00:00 and keep 7 days.
I want the rotated log files to be saved as ircd.log.YYYYMMDD for example ircd.log.20140505.
Can someone ...