Questions tagged [logging]

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

103 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
akavel's user avatar
  • 351
3 votes
3 answers
2k views

How can I view the stdout / stderr from the bash login shell?

I'm trying to debug a strange issue with my ~/.bash_profile, and I'd like to be able to see if there are any errors / etc printed when it's run. Is there some log or such somewhere that contains the ...
Paul Molodowitch's user avatar
3 votes
1 answer
371 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 ...
Floris's user avatar
  • 31
3 votes
0 answers
508 views

Massive log files on Ubuntu 16.04

I recently installed Ubuntu 16.04. For some reason I have massive log files. For example: kern.log is 10.5 GB big and syslog is 152 MB. I already tried rotating them, but I wanna know what's making ...
I B's user avatar
  • 41
3 votes
0 answers
1k views

Why is apache still logging my PHP Notices?

I have edited /etc/php5/acpache2/php.ini and set error_reporting = E_ALL & ~E_NOTICE then restarted apache, yet my /var/log/apache2/error.log is still filling up with PHP Notice: Undefined index: ...
James's user avatar
  • 163
3 votes
2 answers
3k 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 ...
Anthony Agius's user avatar
3 votes
1 answer
663 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 ...
Ian Barton's user avatar
3 votes
0 answers
129 views

How to log processes in daemon-mode?

I would like to save the standard output of the program motion in a text file. If I don't use motion in daemon-mode I would simply do it by: motion > log.txt But what is the equivalent when I run ...
Mahoni's user avatar
  • 31
2 votes
0 answers
424 views

log everything from a byobu session

I am looking for a way how to preserve all console input and output of byobu sessions. I am aware of these questions: How to save scrollback history in byobu? how can I log the session with byobu ...
Markus Frömmel's user avatar
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 ...
KiYugadgeter's user avatar
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 ...
WTP's user avatar
  • 21
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 ...
timothy.godfrey's user avatar
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/...
Videonauth's user avatar
  • 33.3k
2 votes
1 answer
1k views

Lastlog not working properly

currently my lastlog on ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-77-generic x86_64) is not showing all ssh-connects. This seems a bit wired to me. My deploy-user connects via jenkins ssh:notty. This ...
Mrk's user avatar
  • 31
2 votes
0 answers
262 views

how to log the ssh public key's label to auth.log

I was wondering if there was a way to log the label of an ssh public key to auth.log. I've given www-data only sftp access to the web directory, and use ssh keys to authorize a trusted user on my ...
Nicholas Neal's user avatar
2 votes
1 answer
3k views

How to decrease metadata disk usage of journald logs?

myuser@myhost:~$ sudo journalctl > log.txt myuser@myhost:~$ sudo journalctl --disk-usage Archived and active journals take up 3.0G on disk. myuser@myhost:~$ ls -lh log.txt -rw-rw-r-- 1 myuser ...
suside's user avatar
  • 675
2 votes
0 answers
2k views

Where in Ubuntu 16.04 is the shutdown log?

Yes, I am aware of this this this and this answer. Still, I can't find the log information (the log lines I see when pressing ESC during splash screen. For example ‘stopped Target User and Group ...
Frank N's user avatar
  • 1,330
2 votes
0 answers
29 views

Why does Ubuntu send log info into GNU Screen?

I have several Terminal windows open. Inside one of those terminals, I'm running GNU Screen with multiple "tabs". Inside one of those tabs (the one that's active), sometimes logging info appears, e.g. ...
MWB's user avatar
  • 724
2 votes
0 answers
219 views

What logs are kept about activity in a Guest Session in Ubuntu?

Recently, I learned a lot about the Guest Session, especially how to disable it. An intruder accessed my locked Ubuntu 14.04 laptop while I was away from my desk. I can see where the Guest logged in ...
majickmann's user avatar
2 votes
2 answers
258 views

Config --no-log for an init deamon job

I have a proccess configured under /etc/init and it runs by the init deamon, and want this proccess to stop sending logs to the /var/log/upstart dir. I read this document: https://wiki.ubuntu.com/...
Ben Diamant's user avatar
2 votes
1 answer
2k views

How to make honeyd save logs in rsyslog

I have a standard install of honeyd from Ubuntu repositories. Honeyd is saving logs in two files: /var/log/honeyd/honeyd.log /var/log/honeyd/daemon.log I have been trying to setup rsyslog to forward ...
user2284355's user avatar
2 votes
1 answer
912 views

Why can't I access my desktop after installing Lubuntu?

I installed Lubuntu 12.10 in my netbook through USB Drive. Now I cannot get access in my desktop after login. I can see only one thing on my screen. Welcome to ubuntu 12.10(GNU/linux 3.5.0-17- ...
sumit's user avatar
  • 21
1 vote
1 answer
964 views

How to route isc-dhcp-server logs to their own file

The logging in systemd's journal is getting spammed by logging from dhcpd. I am running isc-dhcp-server and would like to prevent the log ending up in the journal, and instead go to its own file. I ...
Bram's user avatar
  • 2,449
1 vote
0 answers
29 views

Detecting what used bandwidth retroactively

I've got 2 unexplained network spikes. They are both short duration but one of them has appeared on my private IP instead of my public IP and this was unexpected. Both are very short duration. Are ...
boatcoder's user avatar
  • 599
1 vote
0 answers
1k views

rsyslogd: action 'action-3-builtin:omfwd' suspended

I want to send MongoDB logs to a Graylog server, and the related rsyslog configuration is as follows: $InputFileName /var/log/mongodb/mongod_27017.log $InputFileTag mongodb $InputFileStateFile mongodb-...
Fatemeh Davoudi's user avatar
1 vote
0 answers
781 views

Change `sshd` log file with `rsyslog`

I want to change the location of sshd logging to an external volume in order to prevent filling up the boot volume. What I thought would work – create /etc/rsyslog.d/sshd.conf with a directive to use ...
Pete Cooper's user avatar
1 vote
0 answers
260 views

Syslog : I am trying to generate separate iptables.log file for IPTABLES,

My Ubuntu 20.4 LTS My efforts are as follows:- 1.) Created IPTABLES rules with LOGGING by mentioning --log-prefix="IPTABLES-BLOCKED: " Logs are successfully generated by iptables, I have ...
Ashok Dewan's user avatar
1 vote
0 answers
307 views

Log process for outgoing connections

Is there an easy way to set up logging of all outgoing connections to certain ports, for example? Trying to figure out which programs/processes causes certain outbound connections. Server is already ...
Dennis Thrysøe's user avatar
1 vote
1 answer
2k views

Help! Ubuntu 20.04 Server is printing kernel messages to my console

after setting up a fresh install of Ubuntu 20.04 server, exactly every 5 minutes and 11 seconds my console shows the following message, which is printed above everything on the screen: Message from ...
humph's user avatar
  • 111
1 vote
0 answers
244 views

Cron job & logger commands

I have a backup cron job that rsync files between 2 locations. To get some logged output that it has run, the job has this syntax: #!/bin/bash logger "Seafile File System Backup Started" ...
jingo_man's user avatar
  • 111
1 vote
1 answer
902 views

Logging inputs and outputs in terminal without weird characters

I'm looking for a way to log all the input and output on terminal during a session, but I can't properly find an answer to do it. This this post suggested using script screen.log to do so and it seems ...
Jn Coe's user avatar
  • 11
1 vote
0 answers
784 views

How to separate logs from syslog on microstack

I have microstack up an d running. I want to debug a problem, but all logs are in syslog, which is a pain, because its way too much data. Openstack defaults every service to a different logfile, but ...
Andrés Ackerman's user avatar
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 ...
George Udosen's user avatar
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/...
SAM's user avatar
  • 11
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!
ssssstut's user avatar
  • 657
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 ...
dw8547's user avatar
  • 444
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 ...
Matt's user avatar
  • 11
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 ...
cogitoergosum's user avatar
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 ...
Torp's user avatar
  • 111
1 vote
0 answers
3k views

rsyslog: log message from remote host to specific file

I am trying to log messages from a specific remote host to a separate log file (and only to that file). I tried this: # cat /etc/rsyslog.d/avs110door.conf if $fromhost == 'avs110' then /var/log/...
mivk's user avatar
  • 5,262
1 vote
1 answer
57 views

Will core temperature related shutdowns always be logged?

I'm running Ubuntu 16.04 on a tiny device that the techs have placed on the very top of a server rack, it has become unresponsive 3 times in the last 4 days and with nothing logged saying it was ...
Peter Turner's user avatar
1 vote
0 answers
366 views

why is conntrackd-stats.log so huge?

I was poking around in my /var/log directory, and I noticed that the conntrackd-stats.log file is 150Mb, and getting a new entry every second. The logs look like this. Am I unwittingly hosting ...
Chris Curvey's user avatar
  • 1,643
1 vote
0 answers
764 views

Upstart logs don't exist?

I'm on 14.04 and my init system is upstart. I'm trying to grab some logs from an application (Docker daemon). Debugging is switched on, it runs via upstart, but I have no directory /var/log/upstart (...
johnharris85's user avatar
1 vote
0 answers
116 views

How to log when a process exits or is restarted?

I am trying to track down a bug in gnome-shell which causes it to crash, I seem to have two instances running of gnome-shell and apparently this is meant to be so. For the best results in my debugging ...
user avatar
1 vote
1 answer
119 views

Pm-Powersave file in /var/log is 32 GB

I've been getting messages saying that I've been running out of diskspace on my machine, and my /var/log folder is 33 GB large. Looking closer it all seems to come from one file pm-powersave.log. Is ...
user2440419's user avatar
1 vote
1 answer
3k views

Logrotate - keep file for two days

Is there any possibility to configure logrotate so it will keep file for 2 days instead of 1? e.g. this configuration copytruncate daily compress dateext missingok leads to compressing file every ...
synek317's user avatar
  • 111
1 vote
0 answers
888 views

run a process in background and give stdout for it even if terminal is closed

I found some link here(Hide stdout of a process only when it is running in background) about redirecting running process' output but my case(a module logging to stdout) is a bit different. Cause I am ...
Junchao Gu's user avatar
1 vote
0 answers
1k views

How do I send nginx access and error logs to syslog?

I have rsyslog configured to ship logs to another server. I have been trying to setup nginx and rsyslog to use a socket, like /dev/log, to transfer logs into the local rsyslog and then let it handle ...
flickerfly's user avatar
  • 7,269
1 vote
1 answer
2k views

Crontab - don't log? How can I do it right?

I've search for a answer of my problem but I can't find the right one. So I try it my self. I've got an Ubuntu Server and try to create a TeamSpeak3 Server - check file with loggin function. This ...
Chuckl0r's user avatar
1 vote
1 answer
459 views

Is there a ready made logging server compatible with log4cplus?

Looking at the list of packages in Ubuntu, I could not find a package that could be used with log4cplus that would be a logging server. My idea would be to be able to send logs through a server so ...
Alexis Wilke's user avatar
  • 2,707