Questions tagged [log]
A log is a record of events during a particular time range. Questions about interpreting logs on Ubuntu or controlling logging.
115
questions
72
votes
4
answers
198k
views
Very large log files, what should I do?
(This question deals with a similar issue, but it talks about a rotated log file.)
Today I got a system message regarding very low /var space.
As usual I executed the commands in the line of sudo ...
42
votes
1
answer
165k
views
[Firmware Bug]: TSC_DEADLINE disabled due to Errata - what should I do about this?
I saw several bugs and error messages when I was looking by chance into the tool called "logs".
Being a newbie in Ubuntu I have no idea how to deal with these bugs, where to report them or how to fix ...
1178
votes
16
answers
3.0m
views
Where is the cron / crontab log?
I want to verify that my cron job is executing and at what time. I believe there is a log for my sudo crontab -e jobs, but where?
I searched google and found recommendations to look in /var/log (...
63
votes
4
answers
177k
views
How do I log all input and output in a terminal session?
How do I keep logs of all the work done via terminal? For example, I want a record of all the work done on database via terminal.
108
votes
3
answers
274k
views
Where are all the major log files located?
So, if there is some problem with my computer, be it hardware or software, what are the major log files and where are they located?
Also, is there a generic location where log files of the other ...
7
votes
1
answer
21k
views
16.04: How do I make cron create cron.log and monitor it in real time?
I know that cron events are stored in /var/log/syslog and I can use a command like:
sudo cat /var/log/syslog | grep cron
to see them.
I'd much rather have the system keep a separate cron log file ...
140
votes
3
answers
278k
views
How do I keep track of failed SSH log-in attempts?
I'd like to see if somebody has been trying to log-in by brute-force into my Ubuntu 12.04 server over SSH. How can I see if such activities have been taking place?
34
votes
2
answers
50k
views
Where is the shutdown log?
I am trying to debug a hang during shutdown and I don't find where the messages that I see during shutdown are being stored. They aren't in /var/log/syslog
182
votes
5
answers
360k
views
How to see Login history?
Is it possible to see the login history, i mean to see if someone has used the computer in my absence and when he used it .
if it is possible, where can i get the log ?
if not, is there a program that ...
99
votes
5
answers
421k
views
How to see log to find a boot problem
I want to find the cause of a boot problem I have tried
ls -ltr /var/log from antony@antony which gives me login incorrect
can someone tell me what command to use to see what has upset the boot ...
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?
11
votes
4
answers
16k
views
cupsd using 100% CPU, creating large (80GB+) error_log
A few days ago I realized my Ubuntu machine wouldn't load after login. After some digging around on a liveCD I realized my HDD was at 100% capacity, so I deleted some large files and was able to log ...
11
votes
1
answer
3k
views
How do I get information from the logs on my computer when I only have access to the command line?
For various reasons I can no longer access my graphical desktop, and can only login via a tty (Ctrl+Alt+F1 through F6 by default).
To help diagnose and solve my problem I need to look through the ...
172
votes
11
answers
79k
views
How can I tell what date Ubuntu was installed?
is there a command which will output the date that ubuntu (or any distribution) was installed?
29
votes
2
answers
28k
views
Can I look at the upgrade log after a distribution upgrade?
I've upgraded to Ubuntu 12.04 and did it offline using the alternative CD. I didn't look at the "packages to remove" section before clicking next - I've done Ubuntu upgrades many times and assumed it ...
25
votes
7
answers
60k
views
var/log/syslog growing indefinitely in size
The disk that contains Ubuntu on my computer is 115GB in size.
When the disk was 114.7GBfull.
I started deleting some files here and there to free up around 5GB.
But I noticed the disk was 114GB ...
3
votes
1
answer
4k
views
How to change cron log level?
I replaced exec cron with exec cron -L 15 the run sudo service cron reload, sudo service cron restart but nothing changed. Cron doesn't log the end of jobs and doesn't log failed jobs. I hade no ...
81
votes
5
answers
365k
views
Where can I find the iptables log file, and how can I change its location?
I have this rule in my iptables:
iptables -A INPUT -s 192.168.11.0/24 -j LOG
My question is:
Where is the iptables log file, and how can I change that?
51
votes
3
answers
99k
views
Ubuntu freezes. Which logs can I check out?
So my computer has lately started freezing completely when I run some programs that, in the past, would work great.
What I am unsure about however, is what logs that are available to me that could ...
43
votes
7
answers
53k
views
GUI for watching logs (tail and grep)
Could you recommend a GUI application with powerful log watching capabilities?
Generally it would work as tail -f in GUI, but on top of that following features would be very useful:
filtering out ...
6
votes
3
answers
13k
views
How to prevent logs from getting too big?
I have a cronjob that runs some Python scripts and they generate massive log file. How do I prevent them from getting so big? It'd be perfect if the file was deleted once it hit a certain size. ...
5
votes
2
answers
3k
views
Investigating a system "freeze"
Am on
Ubuntu 10.04.2 LTS
Linux skiran 2.6.32-32-generic-pae #62-Ubuntu SMP Wed Apr 20 22:10:33 UTC 2011 i686 GNU/Linux
My machine froze for the 5th time in 2 days.
Had to reboot, and login to a ...
59
votes
5
answers
90k
views
Where is log file from rc.local?
I have some commands to in my rc.local. I know that they are failing. How can I get log file with messages produced by executing rc.local? Where is it located?
I have checked the /var/log/boot.log. I ...
45
votes
5
answers
179k
views
Can I delete /var/log files due to low root space?
Just had the message:
Low disk space.. 2 GB left
Judging by a posted message on ubuntu.org forums, I found that I have a .log file in /var/log at 22 GB in size! My root is an 82 GB partition and ...
33
votes
5
answers
65k
views
How do I check if last shutdown was clean?
How can tell that my last shutdown was properly done in Ubuntu 11.10 or if the machine was powered off before shutting down the OS?
31
votes
5
answers
28k
views
Displaying a "scrolling" log file
Via command line, I have a log file I'd like to keep track of.
What I want is to have, basically, a tail that refreshes when the log is updated making the text scroll upwards as new lines are ...
14
votes
3
answers
3k
views
How can I read NotifyOSD messages after they are displayed?
I'd like to read a list of messages displayed by notify-osd from time to time. I'm using 12.04 still, if it matters. Is this possible?
These two questions from 2010 indicate that a log file should ...
12
votes
4
answers
43k
views
Log SSH activity
All, I have an Ubuntu host that accepts SSH connections. How can I log all commands that are run on a specific account that logs in via SSH?
Thanks
44
votes
8
answers
190k
views
Where is the VLC logfile for errors?
I tried to open a blu ray with VLC, but I got this error message:
VLC is unable to open the MRL 'bluray:///dev/sr0'. Check the log for details.
For further information I have to read a log from ...
41
votes
2
answers
191k
views
Where is Xserver log file located?
My Ubuntu 10.10 sometimes totally freezes. I suppose that it is somehow related to my graphic card and would like to check Xserver log. Where is this file located ?
39
votes
4
answers
143k
views
Where are kernel panic logs?
I've got problem with Handbrake/ffmpeg. After ~5 minutes transcoding, the computer locks up. I'm fairly sure it's a kernel panic because caps-lock starts flashing.
There are a few logical questions ...
23
votes
2
answers
51k
views
Does Ubuntu log when USB devices are connected?
When I connect a USB drive to an Ubuntu OS, would there be a text file which contains details of that connection and if so, where is that file located ? What is the name of that file?
21
votes
2
answers
74k
views
How to view results of last clamscan scan?
I scanned pen drive using clamscan and I closed the terminal after scanning without reading the result.
Now one of my folders on the pen drive is missing. I wanted to know if clamav deleted it.
So ...
19
votes
3
answers
17k
views
How can I know when my screen was locked last time?
Exist a log where I can look for that information? I want to know last days when my PC automatically locked the screen because was idle.
15
votes
3
answers
59k
views
Where can I find the boot log?
When I boot up Ubuntu and I don't have the graphical boot screen (Plymouth) enabled I see a bunch of text saying if an action was [OK] or it [FAILED].
Since this process is a bit quick I can't fully ...
14
votes
1
answer
8k
views
How can I log all notify-send actions?
I keep getting very strange notifications which go away before I can read them, they are long, and appear at random times, the most recently one came up was during a kernel upgrade, it had a strange ...
14
votes
3
answers
19k
views
How do I diagnose Hang on Shutdown?
Since one or two months ago, my laptop with ubuntu 12.10x64 hangs during shutdown. There's just a black screen, no harddisk activity, it justs sits there. I feel it happens near the end of a normal ...
14
votes
3
answers
3k
views
Is there software which time- tracks window & application usage?
Is there a software which keeps time of my activities and gives a report?
Based on focused window and window title.
Report would just show time spent for specific window and its title like:
...
8
votes
3
answers
10k
views
Why is ufw logging 'BLOCK' messages regarding a port for which ufw is configured to 'ALLOW' connections?
Here's an example log message:
May 25 10:36:07 myserver kernel: [7057243.392334] [UFW BLOCK] IN=eth0 OUT= MAC=00:02:55:67:82:eb:00:06:b1:3a:ef:62:08:00 SRC=69.197.128.26 DST=192.168.100.101 LEN=44 ...
1
vote
1
answer
5k
views
When was my kernel updated and installed
This question is related to Avoid missing kernel linux-modules-extra-XX-generic when updating kernel
The process of updating the kernel takes several steps.
My questions are:
Among all possible ways ...
298
votes
5
answers
1.1m
views
Where are the Apache and PHP log files?
I've installed Apache, PHP, and MySQL on Ubuntu 10.10 desktop edition, and it's working fine.
Except I have no clue where to look for Apache or PHP log files.
132
votes
6
answers
734k
views
Where are the OpenVPN connection logs and configuration files?
I have problem connecting to OpenVPN server. Where are OpenVPN log files and how do I find the connection details?
47
votes
2
answers
95k
views
Where are network manager logs? (16.04)
I have new Ubuntu and I want to debug some errors in network settings.
I cannot find log for NetworkManager.
/var/log/syslog and /var/log/daemon.log - what people recommend on this stack exchange in ...
46
votes
4
answers
112k
views
How can I track the cause of random reboots?
A Thinkpad X220 (Core-i5, SandyBridge, Intel GMA) running Precise 64-bit has rebooted hard twice in the last four days. I was doing nothing more than writing an email. No warning. It just went black, ...
37
votes
4
answers
106k
views
Where are the NetworkManager logs?
A previous poster on the regular forums ( http://ubuntuforums.org/showthread.php?t=843991 ) said /var/log/daemon.log, but I don't seem to have such a file. Do I need to enable logging?
37
votes
2
answers
113k
views
Why I'm getting this [UFW BLOCK] in my syslogs?
I wonder why I get this error on my syslogs:
[7732763.396193] [UFW BLOCK] IN=eth0 OUT= MAC=02:8b:1a:75:d5:7b:02:8b:1a:40:00:03:08:00 SRC=x.x.x.x DST=x.x.x.x LEN=40 TOS=0x00 PREC=0x00 TTL=64 ID=53703 ...
30
votes
2
answers
128k
views
Where does Ubuntu 14.04 log SSH access attempts? [duplicate]
Trying to find out why fail2ban is not working.
Where does Ubuntu 14.04 log SSH access attempts?
28
votes
5
answers
23k
views
Redirect UFW logs to own file?
Is there a way I can easily redirect the entries for UFW to their own log file at /var/log/ufw instead of filling up /var/log/syslog as it's becoming tricky to find solutions to problems with all this ...
24
votes
5
answers
64k
views
How to truncate all logfiles?
can anybody give me a solution to truncate all logfile in /var/log/ directory?
and a question just for knowledge, is it a good idea or not?
#!/bin/bash
LOGDIR="/var/log"
for logfile in $(ls $LOGDIR/*...
24
votes
6
answers
61k
views
When an application crash without output an error, is there a log that i can check?
Sometimes it happen that some application crash without give no output error (conky in my case, probably is one of my configuration that is incorrect).
Is there somewhere a error log that I can check ...