Questions tagged [logging]
Adding messages, mostly warnings and/or errors, to a log file.
313
questions
2
votes
1
answer
3k
views
Why does the output of journalctl sometimes include 'skipping...'
For example :
journalctl -r
-- Logs begin at Thu 2020-04-23 18:53:52 PDT, end at Thu 2020-07-02 10:40:23 PDT. --
lines removed by me for this post
Jul 01 16:15:55 asus at-spi-bus-launcher[2801]: ...
1
vote
1
answer
3k
views
-bash: echo: write error: No such file or directory
I am trying to log iptables actions so I can trouble shoot why a FORWARD rule isn't working and I need to run this command:
echo ipt_LOG >/proc/sys/net/netfilter/nf_log/2
this is after loading ...
0
votes
0
answers
161
views
Why won't all getssl output log from cron
I have a LAMP server set up to serve a handful of sites, and I am using the getssl script to create the LetsEncrypt certs for those sites.
I had set up a cron job to renew those certs as recommended, ...
2
votes
0
answers
5k
views
Where is location of a log file of chromium on Ubuntu 19.10?
I can't found a chromium log file in default location, Where is it?
According to following page, default location is ~/.config/chromium .
But there is no log file in this directory.
Chromium User Data ...
0
votes
0
answers
552
views
Exclude entries from being written to syslog
Question:
I want a specific log message (pattern) to be written to syslog. How can I achieve that?
Example:
I imagine a solution like writing something like this in the appropriate logfile:
exclude ...
3
votes
1
answer
372
views
Log disks spin up and spin down
I have a file / media server running on Ubuntu 18.04. It has 1 SSD on which Ubuntu is installed and 4 HDD's for various files.
I found some information on how to log the disks activities and that ...
1
vote
1
answer
299
views
Logging everything to diagnose random shut downs
My laptop started randomly shutting down. For example, I'm skyping and then -boom- all of the sudden the screen goes black and it has shut down. Once I restart it, everything seems to work as normal. ...
0
votes
1
answer
46
views
Logging broke for authentication only
I currently am unable to have authentication attempts logged in /var/log/auth.log . Everything was working properly and log files were rotated as expected until last night issue.
My Ubuntu server ...
1
vote
0
answers
246
views
My system is creating 1GB of syslog file Docker errors per minute
I am using Ubuntu 18.04. Recently whenever I start my PC, I get a error message saying 0 bytes left in your /root directory. I used the du command and found out that /var/log/syslog and /var/log/...
11
votes
1
answer
9k
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 ...
0
votes
0
answers
1k
views
Rsyslog.conf delete, doesn't reinstall
I have Ubuntu 18.04. I am trying to set up rsyslog service as my default logging server. I messed up configuration and didn't save a copy of the default file before modifying it. I know, stupid. I ...
0
votes
1
answer
1k
views
Where should I store server build logs?
When I build an Ubuntu cloud VPS (typically DigitalOcean), I have a manual build guide that I have written and maintain. As part of the build guide, I leave myself notes on the server in text files so ...
0
votes
0
answers
191
views
ubuntu server user session logging
I have an ubuntu server, which acts as a gateway to access my other internal servers over ssh.
So normally, user ssh to this ubuntu server first(to a normal account) and once inside this, they ssh to ...
1
vote
0
answers
250
views
Keep error/crash notifications, but stop Ubuntu from “calling home”? [duplicate]
Is there a way (in Ubuntu 16.x, 18.x) to disable all error reporting?
I want to keep being notified but disable any and all „calling home“.
I do not want to disable being personally notified, just ...
0
votes
1
answer
4k
views
Bind logging not working
I am running Ubuntu 18.04.2 and BIND 9.11.3
I am trying to enable logging by adding the following to /etc/bind/named.conf.local
logging {
channel bind.log {
file "/var/log/bind/bind.log" ...
0
votes
1
answer
118
views
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
I have installed ELK Stack 6.7.1 in a VPS and the agent filebeat in another vps which has running glassfish 4.1 and grafana running but running filebeat to dump the glassfish logs:
sudo update-rc.d ...
0
votes
1
answer
386
views
I want to store multiple logs at /var/logs, into different folders by the name of the log files
For example, create folder syslog and store all syslog*.gz into that folder and so on..
0
votes
1
answer
1k
views
How to disable a particular log message from being saved to var/log?
I'm making a second attempt at resolving this issue
Every time I'd shut the PC off, this error would print what looked like millions of times per second, so I'm almost positive this is the culprit ...
6
votes
2
answers
3k
views
Rewriting logs received via syslog from another machine
I have Machine A, which is a pfsense installation, that sends logs via syslog to a Ubuntu box. The Ubuntu Box will have to rewrite the logs, to replace for instance host names and change format a bit. ...
0
votes
0
answers
39
views
Is there any logging of the basic access to the PC with Ubuntu?
Is there any logging of the basic access to the PC with Ubuntu. Also that PC is not auto-locked in some time, only the screen is dimming. For example, someone comes nearby, touches the mouse, and the ...
27
votes
1
answer
30k
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] ...
1
vote
2
answers
6k
views
Best way to find out why Ubuntu 18.04 crashed. Where to find appropriate logs?
I just found out that my Ubuntu 18.04 machine crashed 20 hrs ago and switched off.
How can I find out why? Is there an event logger?
Thank you for your help!
1
vote
0
answers
672
views
Logstash does not compress the old logs
We are using:
root@server:~# /usr/share/logstash/bin/logstash --version
logstash 6.2.4
on:
root@server:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu ...
0
votes
1
answer
334
views
Synergy keeps logging non-stop
i've been using synergy to use my desaktop's mouse &keyboard on my laptop when home. Now, it's been working really well for me, except that I've realized that the instance on my desktop will eat ...
10
votes
1
answer
10k
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/...
5
votes
4
answers
16k
views
Unbound DNS sever does not log anything when I make a query
I have recently started using unbound dns.
I have configured all the things I need properly. But the server doesn't log when I make a query.
I have no errors in the unbound.conf file
The following is ...
4
votes
3
answers
15k
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% %...
4
votes
0
answers
1k
views
How to move logs out of journalctl, to a file with daily rotation & archiving?
I have a particular custom service registered in systemd, which spews a lot of logs to stdout/stderr. I want to remove the logs from journalctl output (because they generate a lot of noise there, and ...
2
votes
0
answers
254
views
Track all process activity in real or near real time on Linux
I want to track the activity of processes.
For processes, forks, file access, etc. should be tracked.
Also files, data transfers, authentication events, authorization events, and similar.
It should ...
0
votes
1
answer
741
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
1
answer
331
views
can't find logs while copying files in usb
Where can I find logs for copying files from local to USB? I'm using GUI to copy files.
OS:Ubuntu 16.04 LTS
1
vote
1
answer
1k
views
Ubuntu 16.04.4 LTS random freezes after few hours of uptime
Ubuntu has been freezing randomly for some time now. Usually after a freeze, the crash screen would be up and it would show the exec path as update-notifer.
Today after 9 hours of uptime it froze ...
11
votes
1
answer
39k
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, ...
1
vote
1
answer
2k
views
auth.log growing huge due to suspend.target
In a few days the auth.log on my Ubuntu 16.4.4 server has grown to 28 GB writing the following lines over and over again
Apr 14 21:31:29 Cloud systemd-logind[924]: Suspending...
Apr 14 21:31:29 Cloud ...
6
votes
1
answer
1k
views
How can I read and capture error messages that appear on the screen before login?
I am having errors pop up quickly (can't read them) before my login window appears. I can't find them in syslog. Is there some way I can figure out what these errors are?
1
vote
0
answers
1k
views
Daily compress log files not working
This is the log file I am using to compress log files on a daily basis.
/home/ubuntu/logs/server.log {
daily
missingok
rotate 1
compress
create
dateext
dateyesterday
...
0
votes
1
answer
457
views
logrotate weekly archiving empties out daily files
My aim is to maintain 4 days' worth of log files so that on the fifth day, a zip file with all four log files is created. The four log files created so far are deleted.
This is my logrotate.conf:
/...
1
vote
1
answer
2k
views
Kernel log flooded with "read cpu" lines
On my newly setup system 16.04.3 LTS (GNU/Linux 4.13.0-32-generic x86_64), the syslog is flooded with cryptic kernel read cpu messages.
What is the reason for this and how can this be turned off?
...
0
votes
1
answer
153
views
Tailing Apache Logs - What is the number after the IP address
I am tailing the Apache error logs on my VPS so I can watch the traffic go by. I have been under a DOS attack, or a heavy port scan. I have the apache logging level set to LogLevel Warn. What does the ...
0
votes
1
answer
45
views
Monitor log file event it was deleted and created again
I do file monitor with help of command:
tail -f foo.csv
After logging program restart file is deleted and created new one with the same name. But monitor window stops showing records of newly ...
-3
votes
1
answer
127
views
Where and how does Ubuntu log shellcode attacks?
If someone enters shell prompt (by exploiting an external shellcode and taking control of the system before running an exploit ) does Ubuntu log messages to /var/log/lastlog, /var/log/wtmp, /var/log/...
2
votes
0
answers
2k
views
System Freeze After Build Operations
I'm using Ubunut 17.10 on a Dell XPS 13 laptop.
I'm experiencing system freezes after I build software. Typically my computer will freeze for anywhere between 2 - 30 seconds. My mouse and keyboard ...
2
votes
1
answer
104
views
On Ubuntu Artful 17, as a priviledged user, how can I get an email (possible nightly) with information about - what GET requests were sent to port
On Ubuntu Artful 17, as a priviledged user, how can I
get an email (possible nightly) with information about
what GET requests were sent to port 80
who attempted ssh connections to port 22
after a "...
5
votes
2
answers
20k
views
Fail2ban Error on start
Recently, I have tried restarting Fail2ban and I have received an error, making it impossible to start... The full error I received from systemctl status fail2ban is as follows:
Jan 03 18:27:02 ...
0
votes
1
answer
3k
views
How to hide the arguments sent to the executable from ps [duplicate]
I've written a script that uses ps -G <groupid> -o uid,cmd to log the commands that a certain group of the users of a system run in time.
What I want to know is whether it's possible for the ...
1
vote
1
answer
426
views
How to find what's dumping to syslog?
The /var/log/syslog file (Ubuntu 16.04LTS) is currently expanding rapidly, and when I check the log contents, it is entirely filled with:
Dec 5 17:49:40 Desktop1 kernel: [54948.301365] IN=wlo1 OUT= ...
1
vote
0
answers
444
views
Samba not starting after upgrade to 16.04, mostly a systemd question
Yeah, after upgrading to 16.04 smbd did not start because I still had security=share in the config file. That question is answered here Samba does not launch after upgrading to 16.04.
But I have a ...
2
votes
0
answers
249
views
How to stop Steam from cluttering /var/log/syslog?
I just installed Steam on a freshly installed 17.10 with vanilla gnome desktop on Xorg. now I have the following happening, when starting Steam (which works fine btw) I get the following entry in /var/...
0
votes
1
answer
187
views
Package versions in dpkg.log
I'm trying to decipher the contents of /var/log/dpkg.log. For example this line:
2017-09-25 15:19:18 upgrade libpulsedsp:amd64 1:8.0-0ubuntu3.3 1:8.0-0ubuntu3.4
What do the two different versions (1:...
0
votes
0
answers
1k
views
How to redirect systemd started service output to a file?
I have just started playing with prometheus and installed it as a service.
Initially I started it in a screen and let it run but I'd like to run it as a systemd managed service and thus would like ...