Skip to main content

Questions tagged [logging]

Adding messages, mostly warnings and/or errors, to a log file.

Filter by
Sorted by
Tagged with
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 ...
Jonas's user avatar
  • 8,347
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/...
blade19899's user avatar
  • 26.8k
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?
A Student at a University's user avatar
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 ...
Bart Silverstrim's user avatar
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 ...
Selvakumar's user avatar
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 ...
Tin's user avatar
  • 313
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: ...
Bradd Szonye's user avatar
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?
jasmines's user avatar
  • 11.1k
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] ...
Jonas Grønbek's user avatar
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 ...
motns's user avatar
  • 383
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 ...
ændrük's user avatar
  • 77.2k
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 ...
Jiew Meng's user avatar
  • 10.4k
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 ...
Framester's user avatar
  • 455
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-...
Athan Clark's user avatar
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.
TarabydaVllasıCafcaflıAtArabsı's user avatar
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 ...
Amith KK's user avatar
  • 13.4k
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 ...
user837208's user avatar
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 ...
Tom's user avatar
  • 447
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 ...
israelj's user avatar
  • 161
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 ...
Questioner's user avatar
  • 6,869
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 ...
balping's user avatar
  • 443
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/...
Joril's user avatar
  • 2,326
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 ...
Roy's user avatar
  • 305
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 ...
Robert Siemer's user avatar
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, ...
Daniel's user avatar
  • 265
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 ...
ygoe's user avatar
  • 998
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 ...
Holy Mackerel's user avatar
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/...
Sergiy Kolodyazhnyy's user avatar
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 ...
Till Ulen's user avatar
  • 215
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 ...
arielf's user avatar
  • 2,833
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 ...
kraxor's user avatar
  • 5,547
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 --...
skytreader's user avatar
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.
Goulash's user avatar
  • 458
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 ...
aaronlevin's user avatar
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°...
jrg's user avatar
  • 60.9k
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 ...
Rob S.'s user avatar
  • 1,641
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 ...
Yashima's user avatar
  • 349
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="...
DarkSheep's user avatar
  • 183
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 ...
user3215's user avatar
  • 5,365
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 ...
Judy's user avatar
  • 71
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 ...
Tadeck's user avatar
  • 252
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/...
user avatar
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 ...
strapt's user avatar
  • 89
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. ...
Steve Bennett's user avatar
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 /...
ServerNinja's user avatar
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?
arocha's user avatar
  • 71
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 ...
ændrük's user avatar
  • 77.2k
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 ...
David Dean's user avatar
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?
ultrajohn's user avatar
  • 163
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 ...
user2656114's user avatar

1
2 3 4 5
7