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

learn more… | top users | synonyms

35
votes
6answers
52k 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 ...
23
votes
2answers
29k 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?
22
votes
4answers
21k 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 ...
14
votes
1answer
2k 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 ...
13
votes
1answer
7k 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 sudo touch /forcefsck command and rebooted. After it restarted I checked in /var/log/fsck for the results of the disk ...
12
votes
3answers
12k 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 ...
10
votes
1answer
8k 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 ...
8
votes
5answers
13k 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 ...
8
votes
2answers
8k 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 ...
8
votes
2answers
631 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
2answers
316 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 ...
7
votes
4answers
11k 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 ...
7
votes
6answers
16k 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 ...
7
votes
2answers
4k 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 ...
7
votes
3answers
356 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" ...
6
votes
1answer
8k 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 ...
6
votes
2answers
4k 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 ...
6
votes
1answer
946 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? Regards, aurocha
6
votes
1answer
747 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 ...
6
votes
2answers
3k 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 ...
5
votes
1answer
198 views

How to save live log bash input to a file?

When I am teaching a class, some students have problems following my CLI commands and would like to scroll back to be able to repeat the steps in their own speed. So I'd like to log all my inputs in ...
5
votes
2answers
4k 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 ...
5
votes
1answer
334 views

Problems with login: unreadable flashing error

I'm having problems with loggin in on Ubuntu 11.04. I did an install on my laptop after I had Windows 7 installed (dual boot with grub). All went well, but when I am about to login on Ubuntu it gives ...
4
votes
1answer
230 views

How stop Ubuntu from reading my password out loud every time I log on?

I turned on a certain feature on the login screen and now my password is read out loud when I type it on login. What did I turn on, and how do I turn this back off?
4
votes
2answers
154 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 ...
4
votes
1answer
346 views

Can I limit the amount of logging to “/var/log”, especially for “bootchart”?

I've just noticed that I have 342 MB of log files in /var/log In particular /var/log/bootchart takes 329 MB of this space! As I'm only running a home desktop environment, I can't see how I need ...
4
votes
1answer
329 views

Logging program use

I'm trying to find a way of logging what programs other users have been using on the system. I've checked /var/log but don't seem to find anything to show which programs have been accessed. I'm ...
4
votes
1answer
2k 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 ...
3
votes
3answers
4k 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 ...
3
votes
1answer
2k 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.
3
votes
1answer
10k views

How do I disable messages or logging from printing on the console/virtual terminals?

My wireless driver is noisy. It prints out messages to the console every 10-30 seconds. So, if I'm working on VT1 or something, I get messages scrolling by all the time. Is there a way to shut this ...
3
votes
2answers
4k 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 ...
3
votes
1answer
221 views

Is there a log for copied files?

Suppose someone copies a file to a DVD or pendrive. Is there a log where I can see that?
3
votes
1answer
125 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: ...
3
votes
1answer
681 views

Can't set up public key ssh authentication

I have a fresh install of Ubuntu 12.04. I'm trying to setup ssh public key authentication. Unfortunately, it refuses to work. Running the ssh client in verbose mode I can see that the public keys are ...
3
votes
1answer
301 views

Does the new “privacy” button have a log?

I was just wondering if there was a log that shows exactly what the various applications are taking a history of?
3
votes
1answer
1k views

What version of syslog does Ubuntu 10.04.1 install default?

I am planning a rsyslog deployment for my department using Ubuntu 10.04.1 - I cannot seem to find which version of syslog Ubuntu installs by default in the documentation, syslog-ng, sysklogd, old ...
3
votes
2answers
4k views

nagios3 Error: Could not read object configuration data!

I have a brand new install of nagios3 on ubuntu 12.04. After I log in to the web interface and click any link I get the error: Error: Could not read object configuration data! Here are some things ...
3
votes
1answer
1k views

How to find an ip of connected vnc client from vncserver log?

I run the vncserver using vnc4server. I take a look in ~/.vnc/ubuntu:1.log It only show something like this. Sat Oct 6 20:40:12 2012 Connections: accepted: 0.0.0.0::2043 SConnection: Client ...
3
votes
1answer
586 views

How Do I Log USB Modem AT Command Output?

I want to be able to send the command "AT+CSQ" to /dev/ttyUSB1 every 5 seconds, and log out response to a text file. I can do it manually via screen (screen /dev/ttyUSB1 and type in AT+CSQ and see the ...
3
votes
1answer
160 views

What's changing the owner on my log files?

I have several log files in /var/log/mythtv that need to be owned by mythtv.users. In versions of Ubuntu prior to 12.10 if I did: sudo chown mythtv.users mylogfile that worked fine and my log files ...
2
votes
1answer
119 views

Where are logs stored?

AFAIK applications in Ubuntu track activity and errors beyond what is covered by the "Privacy" setting. (Including, for example, login/logout/shutdown times.) Where are these logs stored?
2
votes
2answers
14k views

Unable to access the server via SSH?

when I am trying to access the server through ssh it says: ssh: connect to host xx.yyy.zzz.x port 22: Connection refused and on the server in auth.log it shows following log entry: Address ...
2
votes
1answer
1k views

how do I clear out log files and such [duplicate]

I have 9.5 GB of log files and would like to clear them from my system and keep that much stuff from being created, how do I do this? Here is the output from sudo du -sh /var/* ~/.xsession-errors: ...
2
votes
1answer
1k 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 ...
2
votes
2answers
458 views

What does “command returned 1” mean?

I am trying to get a command to execute from within my MythTV interface on a Mythbuntu computer. When I try a test command, touch /home/mythbuntu/test, it doesn't work, and I see this entry in ...
2
votes
1answer
156 views

Could rsyslog be purging log files?

Today I found a lot of log files empty, these were: /var/log/auth.log /var/log/syslog /var/log/daemon.log /var/log/kern.log /var/log/mail.log /var/log/user.log /var/log/mail.info /var/log/mail.warn ...
2
votes
1answer
17 views

A tool for monitoring changes in region of the screen

I'd like to monitoring changes in a region of a window, this windows is showing a virtual box machine, and I need to get a log with a timestamp of that changes.
2
votes
1answer
84 views

How do I set up a logging server for Access Points?

I have a linksys AP, nothing fancy, but it does have a logging utility. How do I make that send the logs my Ubuntu 12.04 server.
2
votes
1answer
814 views

ubuntu 11.10 /var/log/auth.log

I use Ubuntu 11.10. And I want it to write logging messages about failed ssh log in attempts to /var/log/auth.log. In my understanding /var/log/auth.log is supposed to hold all failed ssh connection ...