Questions tagged [logging]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

rsyslog read log files and send to rsyslog file and rsyslogserver

Hi I need to send logs to rsyslog server in particular I need to send airflow logs and docker logs. I am using rsyslog v8.2204.1 on Ubuntu 20.04.4 LTS. For docker I installed the module: rsyslog-...
user avatar
1 vote
0 answers
39 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 ...
user avatar
0 votes
0 answers
10 views

How to log (audit) events when a USB drive has been written to or modified

Within windows, there is a setting within GPO to Audit Removable Storage. This will provide logging information to the Event Viewer within Windows. I am looking to recreate this same process on the ...
user avatar
1 vote
1 answer
131 views

msmtp logging doesn't work in /var/log/mail/[logfile].log

Good day I'm using msmtp to send mails. I have different accounts that log to different logfiles. Unfortunately whenever it tries to log the following error appears: send-mail: cannot log to /var/log/...
user avatar
  • 33
0 votes
0 answers
19 views

password displayed on loggin screen but not on purpose

I'm under ubuntu 18.04.1 and I face this issue: sometimes, not always, when I loggin back, my password is displayed. I wonder why this happens. I know that this "password revealation feature"...
user avatar
4 votes
3 answers
12k views

Do I have log4j on my Ubuntu 18.04.6?

I'm obviously worried about this vulnerability, but I wonder if I even have this library on my machine? The machine is a webserver running a couple of node expressjs frameworks over nginx, plus a ...
user avatar
3 votes
3 answers
327 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 ...
user avatar
1 vote
0 answers
77 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 ...
user avatar
1 vote
1 answer
253 views

var/system/journal logs flooded with i2c_hid i2c_hid_get_input: incomplete report (14/65535)

So for the last day or two, DiskUsage keeps complaining about no disk space on my root / partition. I can mitigate this issue by editing the /etc/systemd/journald.conf and setting the SystemMaxUse=...
user avatar
0 votes
1 answer
68 views

UFW not logging on fresh 20.04 install

I am not getting any UFW logs in /var/log/ufw.log. I have tried everything on UFW is not logging how do I troubleshoot? https://ubuntuforums.org/archive/index.php/t-2380393.html https://serverfault....
user avatar
  • 1
0 votes
1 answer
262 views

Writing to /var/log/auth.log

We'd like an application to write entries to /var/log/auth.log Is there any kind of interface to allow us to do this? thanks for any pointers.
user avatar
0 votes
0 answers
271 views

How to prevent BIND logging queries matching a regular expression?

I am currently running BIND named on my Internet facing servers to respond to authoritative query requests for my domains. So, I have configured /etc/bind/named.conf.local as follows to log all ...
user avatar
  • 6,358
1 vote
0 answers
111 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 ...
user avatar
0 votes
1 answer
80 views

Ubuntu randomly reboots on new computer without logging any relevant events; how can I find out what's going on?

I'm having an issue with a new computer; it randomly reboots. Not a crash...just, Like someone pulled the plug. No logs are recording any events, they just...stop. Is there a way to force Ubuntu ...
user avatar
  • 321
0 votes
1 answer
577 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 ...
user avatar
  • 91
4 votes
4 answers
7k views

How to Solve Increasing Size of MySQL Binlog Files Problem?

MySQL Binlog files count is increasing day by day and their size is increasing in gigabytes. How can I stop the increasing size of binlog files? They are fulling the disc space.
user avatar
0 votes
1 answer
558 views

How to print in current terminal new logs arriving in a logfile?

I can't find the answer to my question, and I don't know how to proceed... I would like to print in my current terminal (possibly only for a specific user) new logs added to a logfile, without running ...
user avatar
1 vote
1 answer
741 views

Accessing Cronjob Log files on AWS EC2 instance

I would like to start by expressing my appreciation to any help I receive. I am very new to AWS and ubuntu servers. I run a daily python job on my EC2 instance and it fails every Friday for some ...
user avatar
  • 11
1 vote
1 answer
140 views

What should I do if my server is under the attack?

I have a mail server on Ubuntu 20.04. Yesterday I set up UFW firewall which looks like: root@vmi514622:~# ufw status verbose Status: active Logging: on (low) Default: deny (incoming), allow (outgoing),...
user avatar
  • 479
1 vote
0 answers
40 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" ...
user avatar
  • 111
2 votes
0 answers
146 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 ...
user avatar
1 vote
1 answer
138 views

how do i enable boot logging on ubuntu?

perhaps its server envy, but I am looking around on a linux server hard drive and saw a file called "bootlog" which holds entries like: boot Sat May 5 02:50:51 2018 shutdown Thu ...
user avatar
  • 13.9k
2 votes
1 answer
782 views

Internet connection monitor with logging

We are having intermittent issues with our internet connection in a community house of nine people. It seems to cut out for short intervals so I am looking for an app to test connectivity at regular ...
user avatar
0 votes
1 answer
236 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 ...
user avatar
  • 1
0 votes
1 answer
93 views

Lines of Log Files referenced by Logwatch Warnings (Ubuntu Server 18.04)

How do I find specific lines in Log Files that are referenced by Ubuntu Logwatch like the ones marked below... within Amavis and postfix? Going by date I can grep all the instances of "warning&...
user avatar
  • 111
1 vote
0 answers
488 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 ...
user avatar
1 vote
3 answers
607 views

Logging sensors data every second

I'm new to this forum, so if I've made something wrong, please tell me. I made some research, but I can't understand the correct answer to my problem. I need to save CPU Temp, load and fan speed in ...
user avatar
  • 11
2 votes
1 answer
1k views

Newly compiled kernel hangs at boot with no output

I need to develop some stuff in the kernel for my honours project but im stuck at simply getting a stock kernel to compile and boot. I've followed a few recipes but all of them just result in the ...
user avatar
  • 21
1 vote
1 answer
1k 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]: ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
0 votes
0 answers
104 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, ...
user avatar
  • 101
2 votes
0 answers
2k 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 ...
user avatar
0 votes
0 answers
316 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 ...
user avatar
  • 381
2 votes
0 answers
240 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 ...
user avatar
  • 21
1 vote
1 answer
148 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. ...
user avatar
0 votes
1 answer
39 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 ...
user avatar
1 vote
0 answers
167 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/...
user avatar
  • 11
6 votes
1 answer
5k 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 ...
user avatar
  • 612
0 votes
0 answers
548 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 ...
user avatar
0 votes
1 answer
531 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 ...
user avatar
0 votes
0 answers
136 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 ...
user avatar
  • 73
1 vote
0 answers
193 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 ...
user avatar
  • 1,029
0 votes
1 answer
3k 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" ...
user avatar
  • 339
0 votes
1 answer
98 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 ...
user avatar
0 votes
1 answer
240 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..
user avatar
  • 11
0 votes
1 answer
930 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 ...
user avatar
  • 246
6 votes
2 answers
2k 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. ...
user avatar
  • 19.6k
0 votes
0 answers
38 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 ...
user avatar
22 votes
1 answer
21k 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] ...
user avatar
1 vote
2 answers
4k 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!
user avatar
  • 161

1
2 3 4 5 6