Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [log]

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

1
vote
1answer
25 views

Add current date/time to ps output

I want to log my cpu and memory usage. There are loads of posts out there giving different options using ps, top, python, etc. I really like the ps way of doing it. In my case, I call: ps -o user -...
0
votes
0answers
16 views

How do I check for login attempts made on phpMyAdmin

I was able to set up phpMyAdmin logs but I find myself working around a logic to get failed attempts from an IP. Am I missing something or this is the right way? Is there a way to set up "login failed"...
1
vote
2answers
45 views

Why is /var/log/auth.log.1 smaller than auth.log

I know there's a cronjob that rotates the auth.log files every set amount of time but I have noticed that the auth.log.1 is small compared to the actual auth.log. Doesn't auth.log get renamed to auth....
1
vote
1answer
38 views

Ubuntu 18.10 Tomcat8 catalina.out file path

In previosu version, I saw that the catalina.out file was created at /var/log/tomcat8/catalina.out location. As I was study for my current installation, Ubuntu 18.10 and last package version, I saw ...
1
vote
1answer
17 views

use tee to save log file in a subfolder (defined in a variable)

The input file of a script is passed as an argument from command line. I want the log file from tee to be saved in the same directory than the input file: Lets say that input file is at "data/temp/...
1
vote
1answer
223 views

Random freezes when using Linux Kernel 4.19.2 on Ubuntu 18.10

I'm using Ubuntu 18.10 with Linux 4.18.0 Kernel on Ryzen 1700 with NVidia GTX 1050 graphics card. The graphics driver is Nouveau. I recently used UKUU to update the kernel to 4.19.2. However, after ...
0
votes
0answers
31 views

.log file has 25G size and increasing [duplicate]

The file in /var/log (uvcdynctrl-udev.log) has 25G size and increasing, the problem is every time I delete it, Ubuntu generates it again. How can I get ride of it permanently. While generation of ...
0
votes
0answers
38 views

How to investgate why remote machine goes down every time (linux)?

I'm monitoring remote machines but some ones go down, Usually I'm getting in using SSH, however when machines got inaccessible. ping on the remote machine works by the way. the problem is I can ...
0
votes
0answers
19 views

kubectl proxy too many open files retrying in 1

I am trying to use kubectl proxy but when I run it I got this issue I1109 18:16:42.178548 7569 log.go:172] http: Accept error: accept tcp 127.0.0.1:8001: accept4: too many open files; retrying in ...
2
votes
1answer
67 views

How to set size for system log

My server dumps because of huge system log files. I've heard that we could limit the size of system log by adding such a line size 100m into the file /etc/logrotate.d/rsyslog to do so. Now my /etc/...
0
votes
1answer
25 views

What does ufw logging?

Normally ufw is disabled after a fresh setup. Recently I saw, ufw is activated. If I type sudo ufw status verbose the output is status:activ protocol: on (low) But /var/log/ufw.log is empty. ...
2
votes
1answer
28 views

Custom log files are being overwritten automatically

I have a linux bash script which I use to append text to a file (by using >>). This file runs on bootup and is in a loop that runs every second. If the computer reboots it will continue from ...
1
vote
2answers
144 views

rsyslog template date/time format with seconds

My current template configuration of rsyslog looks like this: /etc/rsyslog.d/00-samba-audit.conf template(name="sambalog" type="string" string="%$year%-%$month%-%$day% %$hour%:%$minute% %HOSTNAME% %...
0
votes
1answer
57 views

problem in size with /var/log file is 110GB

My file /var/log is 110 GB and system tell me low disk space. What should I do? Should I delete the log file I have tried? $ sudo apt-get clean $ sudo apt-get autoclean $ sudo apt-get autoremove ...
1
vote
0answers
63 views

How to access log file to discover the reason for a weird problem [closed]

It's great to be in this community. I've been here many times, but usually I found the solution without need to ask a question. I will do my best to explain what's happening. I'm still a Linux noob, ...
0
votes
1answer
134 views

Amazon EC2 - xvda1 is 100% full? [duplicate]

My site size is 25GB & Server Space (Ubuntu 16.04) is 25GB, /dev/xda1 shows 19M free, but still it shows xvda1 is 100% full. Any Fix? df -h output
1
vote
1answer
65 views

Is it safe to remove log files? [duplicate]

Sorry if it's a stupid question. I would like to free up some space and /var/log is full of logs. I do not intend to use any of the log files, so I don't care if they get deleted or not. But I afraid ...
1
vote
2answers
80 views

How do I delete var/log files in Ubuntu 16.04 (Xenial Xerus)? [duplicate]

I want to delete var/log files due to low disk space, but I cannot find out how.
1
vote
2answers
146 views

Where should I look for logrotate config file of /var/log/mail.log

I would like to change the suffix of mail.log rotated files to include the date, such as /var/log/mail.log.20180920 I read from this question that /etc/cron.weekly/sysklogd should be changed, but I ...
0
votes
0answers
22 views

GUFW logging unclear

edit: after the first comment, I adapted the question When adding a rule in GUFW/Advanced there are three choices for logging. From the man ufw page/sectin LOGGING i learned do not log - log nothing ...
0
votes
0answers
31 views

how to find what services that started during startup using log? [duplicate]

I am writing bash script to gather information about services started during bootup(service: started/failed/port and status) from logs and store it in different directory before shutting down. How can ...
0
votes
0answers
47 views

Apache not starting in ubuntu

● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled) Drop-In: /lib/systemd/system/apache2.service.d └─apache2-systemd.conf ...
0
votes
1answer
55 views

Ubuntu 16.04 - Using watch command to check file for output and stopping service

Is it possible to use the watch command to see if a file exists, and if it does then stop a service? Or possibly, as a workaround, check the content of the file and then stop a service? I was looking ...
0
votes
1answer
32 views

Time discrepancy between dmesg and journalctl -k

Edit: I couldn't find out why this weird effect happens, but I found the culprit of the actual problem (slow bootup) to be the same as described here: https://bugs.launchpad.net/ubuntu/+source/...
0
votes
0answers
61 views

Help understand last output logs before crashing

There are the logs before my PC crashed(Ubuntu 18.04), they seem to do something with Albert, what do these logs mean? Aug 24 00:50:08 t480s systemd[1]: Started Hostname Service. Aug 24 00:50:31 ...
0
votes
0answers
482 views

What can I do to find the crash reason

I'm running Ubuntu 18.04, it crashes about once a week. Sometimes while watching video sometime or just web-browsing. I check the system log and kernel log they don't have any strange output at the ...
0
votes
0answers
127 views

Website connection timeout

I have 2 websites hosted on a virtual root server (ubuntu) that are not reachable anymore (timeout on both domains). Nothing was changed on the server and no new feature was deployed for both websites....
0
votes
0answers
12 views

Is there a log file equivalent to manifest.txt [duplicate]

I am trying to revert everything installed while compiling dependencies. I looked inside /var/log/dpkg but couldn't find the location of the installed libraries. Which log can I look into to remove/...
0
votes
1answer
30 views

Is there any way to know what happens when a Ubuntu Installation freeze?

Is there any way to know what happens when a Ubuntu Installation from a pendrive is booting well but always get freeze after start GUI? Thanks in advance.
0
votes
0answers
23 views

I get “task NNN:yyyy blocked for more than 120 seconds.” pretty often and my server hangs

I have an Ubuntu server: $ uname -a Linux 4.4.0-36-generic #55-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux where I run a web app and do some stuff using convert: Here's ...
1
vote
1answer
322 views

What do these ATA error messages mean?

[ 108.138078] ata1.00: exception Emask 0x10 SAct 0x40000 SErr 0x400100 action 0x6 frozen [ 108.138085] ata1.00: irq_stat 0x08000000, interface fatal error [ 108.138090] ata1: SError: { UnrecovData ...
0
votes
0answers
70 views

ubuntu 16.04 system logs is being written all the time

My system writing logs all the time and as result, I have high CPU usage and the leak of hard disk space Do you have any ideas how to solve this issue? In the system log I see the following:
1
vote
0answers
20 views

How to troubleshoot a crash message when details window will not display?

I receive the below error message fairly regularly after loading into the OS. Whenever I click "Show Details" the secondary window opens for a brief moment, but then immediately the entire dialogue ...
0
votes
1answer
60 views

How to log all the output displayed at screen?

running Ubuntu 18.04 on a non headles server dedicated only to cryptocurrency mining. The server, after some moments of mining, beeps and reboots. While it does that, there is some kind of error ...
0
votes
0answers
35 views

Random unrecoverable hard crashes on Ubuntu 16.04, kern.log corrupted

I have ubuntu 16.04 installed on a hard drive which ive used on multiple machines, all of which have this crash occur. The previous machine was a intel i5-4670k and the new machine is running an amd ...
0
votes
0answers
188 views

Completely crashed and logs

I'm running Ubuntu 18.04. My PC just completely crashed(neither ctrl+alt+f3 or REISUB work). I can only find this in the system logs. Other logs are output 15mins before crashing. I'd like to know ...
0
votes
0answers
44 views

ufw blocks some incoming https packet although it is not supposed to?

I setup ufw on a box which should expose only a web server and SSH to the outside world: # ufw default deny incoming # ufw default allow outgoing # ufw allow ssh # ufw allow http # ufw allow https # ...
1
vote
0answers
24 views

Slow shutdown occasionally

What is wrong? If I disable splash screen I see shutdown stuck at some stage. How can I see the output log afterwards to inspect the problem? How to make shutdown fast?
1
vote
2answers
481 views

bash history log all commands to syslog

I am trying to log all commands ran by all users. I got a solution from Github function log2syslog { declare COMMAND COMMAND=$(fc -ln -0) logger -p local1.notice -t bash -i -- "${...
0
votes
1answer
72 views

User creation remote logging

I am trying to centralize logs from different server to one server. I can centralize logging information via adding auth.* @server_ip:port in /etc/rsyslog.conf from the clients, but now I don't ...
0
votes
1answer
27 views

Does a USB HDD contain info on previous mounts? [duplicate]

I have an external hard drive (usb) , I suspect that it might have been mounted into another computer on a precise date and time. Is there any way to see the log (from the hdd) and verify if it was ...
0
votes
0answers
32 views

Creating log file

Similar to this, I want to create a log-type file that adds the current date and time each time the file is opened using any text editor. In windows, using notepad, it can be done by just adding .LOG ...
3
votes
1answer
123 views

MITMPROXY make output human readable to file

My system: Ubuntu 16.04 Mitmproxy version 3.0.4 Python version 3.5.2 I've successfully installed mitmproxy from: docs.mitmproxy.org on my server. But now I got confused how to save log mitmproxy to ...
0
votes
0answers
23 views

Where should I put kernel cmd parameter 'audit=1'? [duplicate]

I'm trying to gather audit logs using auditd. Some says it needs to put parameter audit=1 to kernel cmdline, but I don't know where should I put the parameter. Could anyone guide me on how to do ...
1
vote
0answers
92 views

How can I remove audit logs of auid = -1

I'm trying to configure auditd for audit log. What I want to do is remove logs of auid=-1(auid=4294967295). I tried few things but the result was same. (Set rules in audit.rules file, etc..) ...
3
votes
0answers
49 views

How to find out my IP address from previous days

I would like to have a list of all the IP addresses my network card has had in the last days (hopefully at least a week). Is there a place where it might be logged those records, saying, for instance,...
3
votes
1answer
55 views

How can I log the activity of a directory? [duplicate]

I need to know which files have been copied to or removed from a directory or folder such /dev or /mnt or any other directory. How can I do that?
0
votes
1answer
176 views

Continuous terminal output to a file [duplicate]

I am running a software which keeps on printing the steps followed and progress of it on the terminal. I would like to redirect the output from terminal to log file as and when the software prints ...
2
votes
1answer
70 views

Connection attempts on port 80 in router logs but not server logs

I have a static Apache2 website on port 80 on an Ubuntu server connected to my LAN behind a router. The website functions normally. My router logs are showing bursts of connection attempts to port ...
0
votes
1answer
101 views

Purge ufw log file

Is there a way I can purge (empty) the ufw log file (located in /var/log/ufw.log) ? I tried "rm" it didn't work. I tried to stop ufw, delete the file, I couldn't do it. Everybody talks about log ...