A log is a record of events during a particular time range. Questions about interpreting logs on Ubuntu or controlling logging.

learn more… | top users | synonyms

3
votes
3answers
4k 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 ...
18
votes
2answers
30k 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.
0
votes
1answer
9 views

Include apt.history.log in systemlog

I am trying to find a way to Include apt.history.log in the systemlog so the logs will automatically be sent to a remote centralized log server I have running. But is this something there is ...
0
votes
0answers
6 views

why do some log directories need x permissions? [duplicate]

I have some log directories that were causing me problems when I did not have x permissions for their owner, why would writing a log file require x permissions?
3
votes
2answers
42 views

Logging script output to a file

I wrote a simple script to monitor my gpu clocks and temps. I wanted it to, aside from being visible on the terminal, log its output on an external file. How could I achieve this? My script below, for ...
3
votes
1answer
8k 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 ...
-1
votes
0answers
15 views

how can i log in to my webbook model no;0n9 [duplicate]

may I please get assistance with regards to accessing the web book.i forgot my username and my password.so now it decline me when i log in. VODAFONE WEBBOOK MODEL NO:0N9 INPUT:19V=1.58A CC0700
0
votes
0answers
19 views

“pci=nomsi,noaer” in “/etc/default/grub” : any downside?

Because my kern.log and syslog files were growing to immense size, I added the subject entry to a line in /etc/default/grub: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash reboot=efi,pci pci=nomsi,noaer" ...
1
vote
0answers
24 views

How to make a key stroke recorder (for non-malicious purposes)?

When you first look at this question and its title you are going to assume that I want this for malicious purposes, however that is not the case, it is because I type a lot of things, and sometimes ...
0
votes
2answers
4k 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 ...
43
votes
3answers
54k 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 ...
5
votes
3answers
13k 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 ...
15
votes
4answers
14k 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 ...
1
vote
1answer
4k views

init.d script doesn't log to /var/log/boot.log

The script below is working fine at system startup. However, its log messages don't show in /var/log/boot.log, when the system boots. I compared it with other init.d scripts and couldn't reach any ...
2
votes
2answers
5k views

How to install and setup graylog-server and graylog-web on Ubuntu from repositroy?

I am trying to setup graylog on Ubuntu 14.04. I tried to find out installation steps on internet I found few links. but their method of installation is manual I mean installation from the source. and ...
0
votes
0answers
30 views

How can I discover why the game Dota 2 causes a reboot?

The background to my question The main problem is that, when I'm playing a game (Dota 2) the computer restarts only (and only) when the game finish (exactly when the scoreboard appears). It doesn't ...
0
votes
0answers
13 views

How do I write IP of the machine in hadoop datanode log file?

I want to write the IP and Hostname or Username of the machine along with all the other information in the hadoop datanode log file. I know I have to do this by modifying the log4j.properties file in ...
0
votes
2answers
54 views

How to make room in /var/log partition

Tracking ubuntu 14.04.3 firewall info I enabled ufw full login for a while (now turned back off). Now I'm warned I run out of space in the /var partition. Looking there in I find 3 huge files: ...
4
votes
0answers
247 views

how to track a crash when changing from X :1 to X :0?

I need to track on 14.04 a crash that often happens here: I open a new X at :1 (that sometimes goes to ctrl+alt+f8 others to f9). But when I try to go back to X :0 with ctrl+alt+f7, it crashes ...
1
vote
1answer
473 views

Strange Apache error log

I got this error log in Apache2 that is puzzling me: [Wed Dec 30 00:22:14.630133 2015] [core:error] [pid 9104] [client 151.217.177.200:56423] AH00126: Invalid URI in request DELETE your logs. Delete ...
0
votes
0answers
11 views

Unable to log in into the Ubuntu [duplicate]

When I try to open my laptop, the screen shows : Waiting for network configuration booting without network configuration... and the dots just go on and on....It has been since last 3 hours. What ...
0
votes
0answers
25 views

Suspicous activity cause huge syslog file(over 200G)

I installed a ubuntu 15.10 a few days ago. Two things are running on the ubuntu machine. The first one is "Desktop Sharing", and I use VNC on mac to control the ubuntu machine through IP address. ...
1
vote
2answers
9k views

Unable to locate tomcat log file

I am not able to locate the tomcat log files on ubuntu. I looked into /var/log/tomcat6 but the output are these file, catalina.2012-11-23.log catalina.out localhost.2012-11-23.log ...
3
votes
1answer
10k views

Rsyslog not forwarding specific log file to remote server

I am going insane trying to get rsyslog to send a specific logfile to a remote server over UDP. This is the rsyslog.conf file for the sending server: # /etc/rsyslog.conf Configuration file for ...
91
votes
3answers
234k 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.
0
votes
2answers
4k views

Log files (CUPS) grow so fast!

the past few days I faced a strange issue with my computer. I discussed it here: Server logs are filling my hard disk, how do I fix this? Shortly, log files (in cups folder) grow so fast! I did solve ...
0
votes
0answers
28 views

Huge kern.log file created in one day

I'm sure this has been answered before but I couldn't seem to find any immediate fixes. Basically, I was setting up a VM in VirtualBox but it kept crashing and I kept changing acceleration options ...
2
votes
1answer
26 views

Is there a maximum amount of time that tail -f can reliably run?

I have noticed that when I tail -f various log files (specifically Apache access/error logs), that it ceases to actively scroll output after a certain of number of hours. I am uncertain if this is a ...
0
votes
2answers
298 views

Is there in ubuntu repository monitoring alternative to nagios?

I would like to run some kind of service monitoring for my server and few other servers/services. Basically I want to monitor availability and send mail, when avail. is bad. Is there any simple ...
0
votes
0answers
16 views

Trouble creating/using snort rules in terminal

I have some troubles with getting Snort rules to run. I'm using snort 2.6.9. When I run Snort, the following error is given; Initializing rule chains... ERROR: /etc/snort/rules/(1) Unknown rule type ...
1
vote
3answers
16k views

“Unable to open logs” error when I try to restart Apache

When I try to start apache I get the following error root@server11362:~# sudo /etc/init.d/apache2 restart Restarting web server apache2 (98)Address already in use: make_sock: could not bind to ...
0
votes
1answer
13 views

How to stream my logkeys.log to another server?

I have installed "logkeys" in my server. Now I want the log file (that is "logkeys.log") generated in that server to be streamed to another machine at specific timings. How can I do this?
1
vote
0answers
55 views

Find a file activity

I need to find what are all files opened yesterday in my system.I didn't installed GNOME activity. Is there any way i can see the activity a file when are all a file opened and how many times ...
1
vote
1answer
36 views

Why did my PC shut off last nght and how do I find out if it was a sensor alarm?

I tried following all of the answers to Which log will tell me why my computer shut down? but all I did was find a messages.1 file which had old messages (3 month old). Other than I found the logs of ...
0
votes
0answers
84 views

Log Sifting: Rewrite Logs for Human-Readable Verbage

My goal is simply to build a reworded log containing the lines where an external IP address interacted with an apache2 server. So far, I have come up with the following: #!/bin/bash # apache2 log ...
0
votes
1answer
22 views

Recover overwritten terminal log output

I accidentally overwrote the log output of the terminal. What i did was script logfile commands exit and then i accidentally overwrote the file as: script logfile
-1
votes
1answer
4k views

How to create logfile for a bash script?

I've written a bash script that runs multiple instances of a program and would like to write the entire output of the script to a logfile. I tried #!/bin/bash touch <.../somewhere/logfile.log> ...
0
votes
0answers
19 views

Last shutdown halted, how can I track down the culprit process?

I am on Ubuntu 14.04.03 32 bit platform. Last night when I click on shutdown button (it executes sudo poweroff) screen switched to plymouth shutdown animation but it never shut down even though I ...
0
votes
0answers
30 views

Ubuntu: Screen does not wake up — how to get logs?

Twice today my screen wouldn't wake up, and I would need to pull out electricity from the screen and plug it in again. I have a multi-monitor setup, and it only happened to the HP monitor. This never ...
5
votes
3answers
13k 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 ...
0
votes
1answer
28 views

How to view bootups extending 1 month

I am trying to view a log of previous bootups. The following command does exactly what I want it to do last -x | grep shutdown with the only limitation being that it only displays events within the ...
0
votes
0answers
1k views

How to check service logs

I would like to know when/who start/stop a service in linux? Is there any log to show those information?
0
votes
1answer
75 views

What does wq_busy=1 indicate in a failure to suspend?

After upgrade to 15.10, my laptop no longer suspends. dmesg says […] PM: Syncing filesystems ... done. […] PM: Preparing system for sleep (mem) […] Freezing user space processes ... (elapsed 0.001 ...
0
votes
1answer
61 views

Mysqld don't start, and don't log

mysqld don't start, as there are no process, and no logs. SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Running mysqld start (as root) ...
1
vote
1answer
106 views

R/Shiny WebApp logs, running in shell (Ubuntu crontab)

I'm running, using crontab, an R/Shiny WebApp. The crontab expression looks like this: @reboot R -e 'shiny::runApp(...)' | tee /var/log/shiny-server.log I've also tried @reboot R -e ...
0
votes
1answer
284 views

Fail2ban not banning for my custom filter

I have created a new filter in fail2ban for my owncloud installation. When I tested it with fail2ban-regex it returned matches, so I figured it was working. When I turn it on in the jail however it ...
1
vote
1answer
108 views

Change location of log file for “update-alternatives”

I am currently managing my logging system but while setting all log location a problem occured: I want to change the location of the file /var/log/alternatives.log and I have done some research. This ...
2
votes
2answers
29 views

How to log access to a specific file?

I have already looked at this question and its answers How to log access to a specific folder and changes in its contents?, however I would like something more specific, so that it logs the access to ...
1
vote
2answers
59 views

Problem to log after the last update of Ubuntu 12.04 LTS

I'm using a Ubuntu 12.04 LTS. Yesterday I did an update of the system. Now I cannot open either the graphical part or the console (Alt+Maj+F1). On the console, when I tape the password, the system is ...
0
votes
0answers
74 views

When installed updates, opened 2 sessions for root?

I installed yesterday few updates for Ubuntu, and I always take a look at the logs for anything suspicious. Yesterday, while I was installing the updates, I saw this at auth.log Oct 5 21:49:23 ...