Adding messages, mostly warnings and/or errors, to a log file.
Questions tagged [logging]
317 questions
362
votes
13 answers
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 monitoring and see how much memory that have been…
Jonas
- 8,667
116
votes
7 answers
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/sizes in /var/log/:
kern.log = 12.6…
blade19899
- 26,994
111
votes
2 answers
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?
54
votes
7 answers
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 check.
Both checkfs and checkroot said:
Nothing has…
Bart Silverstrim
- 725
33
votes
2 answers
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 these details. Could someone help me out?
Selvakumar
- 331
31
votes
6 answers
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 and time stamp?
We can assume that no-one is…
Tin
- 313
31
votes
1 answer
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] IN=eth0 OUT=…
Jonas Grønbek
- 611
30
votes
3 answers
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?
jasmines
- 11,311
30
votes
2 answers
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: Connection from private client
Apr 1 01:56:56 precise64…
B. Szonye
- 403
28
votes
2 answers
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 not at all clear to me how log messages are…
motns
- 383
25
votes
3 answers
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 to a remote system, enter the IP address of
that…
ændrük
- 78,496
23
votes
6 answers
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.
TarabydaVllasıCafcaflıAtArabsı
- 343
- 1
- 2
- 7
21
votes
2 answers
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…
Athan Clark
- 617
- 3
- 6
- 9
21
votes
4 answers
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 just before it was killed.
[update]
Both Stefano…
Framester
- 455
21
votes
7 answers
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 should be upgraded & what is in excess (like perhaps to…
Jiew Meng
- 10,677