Skip to main content

Questions tagged [logs]

Configuring or analysing log files (text files where programs output error and informational messages, useful for debugging and troubleshooting).

Filter by
Sorted by
Tagged with
0 votes
1 answer
23 views

How can I get nftables to log the data transferred per session?

With a standard log rule "ct state new" we get the details about a new session, however, we only get the data size of the first packet looking in LEN i.e. 2024-06-15T10:11:31.829667+00:00 ...
Neil Briscoe's user avatar
0 votes
1 answer
13 views

Persisting Docker container logs in Kubernetes?

We have an application running in a Docker container, within Kubernetes, but because of certain limitations we can't change the application to log to stdout & stderr. This means when the app fails ...
Andre M's user avatar
  • 443
0 votes
1 answer
30 views

adding date and variable name to log file and generate a new one

I am trying to run a bash script on daily basis which generates a log file. #!/bin/bash exec 3>&1 4>&2 trap 'exec 2>&4 1>&3' 0 1 2 3 exec 1>logfile.output 2>&1 ( ...
vikrant rana's user avatar
0 votes
0 answers
33 views

Missing kernel logs for system crash

I'm using Debian 12.2 as a headless server, installed on a laptop (Dell Latitude E5450, i5 CPU) with external SSD (always plugged in). I noticed that I couldn't connect to the server in the evening ...
Pineapple29's user avatar
0 votes
1 answer
41 views

rsyslog variable from mmnormalize as part of omfile filename

I have a log line that looks like this: May 20 10:25:42 192.168.20.100 Timestamp="2024-05-20 10:25:42",LogId="535666280",NodeId="192.168.1.100",Facility="Packet ...
azzid's user avatar
  • 1,000
0 votes
1 answer
31 views

Is there a way to find out which process is writing to a file on a server with restricted permissions?

Let's say I have a file named "app.log" and I want to find out which process is writing the log, but I have restricted permissions, I have tried the following: lsof /path/to/file, which I ...
Ilgar's user avatar
  • 3
0 votes
0 answers
14 views

AuditD - tuning out parent and children

I'm reading over the AuditD readmes and I see how you can use filters but is there a way that you can tune out a parent and any activity they create along with their children processes? For example, I ...
Jason's user avatar
  • 1,744
0 votes
0 answers
24 views

Logging commands are successfully logging the script, but it is preventing the commands from outputting to the user

I'm very new to bash scripting. I have a script that I have been working on, everything is working so far but when I include the following section of logging, it doesn't out put commands to the user, ...
TheBigDog's user avatar
0 votes
0 answers
57 views

mod_deflate Logging on Apache/2.4.52 (Ubuntu) does not work, why?

I am running my Apache/2.4.52 (Ubuntu) on Linux Mint 21.3. I recently enabled mod_deflate: # a2enmod deflate Considering dependency filter for deflate: Module filter already enabled Module deflate ...
Vlastimil Burián's user avatar
1 vote
1 answer
47 views

Does an echo to network command exist in debian?

Does some sort of command like: echotonet "this" or cat file.txt > echonet that could allow one to easily paste text document data to a service like paste.debian.net ? I often use ...
user3450548's user avatar
  • 2,954
0 votes
1 answer
25 views

Duplicate kernel logs during boot on Debian trixie

On Debian testing/amd64 (future version trixie) with Linux kernel 6.6.15-amd64, during the boot, I have duplicate kernel messages on my console: "normal" logs prefixed with timestamp some ...
lcheylus's user avatar
  • 213
0 votes
0 answers
30 views

Change log file for php-fpm

In order to have only one .log file related with php issues, I want to force php-fpm to write errors in /var/log/php-fpm/error.log instead of /var/log/php-fpm/www-error.log. I just updated /etc/php-...
Cris's user avatar
  • 1
2 votes
0 answers
21 views

Add user or process information in nftables logs

Hy, Is it possible to customize nftables log's to add more informations ? For example, it could be interesting to get users ( id, gid, ... ) or processes informations that try to out. Example of ...
Pierre B's user avatar
0 votes
1 answer
24 views

gpg-agent is not logging to file specified in `gpg-agent.conf`

Below is my gpg-agent.conf file, the log-file option specifies where to put log however even though gpg-agent works fine the log has never been created. I'm thinking either the option is ignored or I'...
metablaster's user avatar
-1 votes
1 answer
47 views

What is the scope of /var/log/user.log file?

/var/log/user.log What's the scope of this log file? Is it related only to currently logged in user or to multiple users and which ones? What this log file is about and when should I look into it?
metablaster's user avatar
0 votes
0 answers
38 views

What killed my process? No relevant entries seen via dmesg or journalctl on Rocky Linux 9.2 (Blue Onyx)

A program from a vendor gets killed instantly. I need to know why. Log shows nothing relevant. Any advice? I looked into OOM killer etc. Added tons of swap. Did not specify log in journalctl so I ...
Normand Robert's user avatar
1 vote
1 answer
36 views

How to know when a following tail moves from old file to the new one

So, I am working with tail -F ( or tail --follow=filename). Now it works as advertised and when a rollover occurs it will move to the new file. This is great and helps me keep track of my logs. The ...
user607688's user avatar
0 votes
1 answer
27 views

Detecting the renaming of a directory containing my log-file

We have a C++ program, that logs its messages into a file. Every once in a while the directory containing this log-file is renamed (or even deleted), and a folder with the same name is created anew. ...
Mikhail T.'s user avatar
0 votes
1 answer
104 views

How to get a log from Proton when not running in Steam

The Proton README says that setting the environment variable PROTON_LOG=1 will create files at ~/steam-*.log with debug information. However, when running Proton without the Steam client (for example, ...
Alex Henrie's user avatar
1 vote
0 answers
45 views

Error messages at shutdown of Dell laptop with Mint 21.3 and kernel 5.15.0-101 [closed]

For about a week or two I see some error messages at the shutdown of my Dell Inspiron 7577 laptop with Linux Mint 21.3 and kernel 5.15.0-101-generic. I have no idea where or if they are logged ...
Vlastimil Burián's user avatar
1 vote
1 answer
28 views

system logging other than journalctl

I've been assuming that journalctl is comprehensive aggregator of system logs but I find out this is incorrect. For example dmesg provides logging of system before systemd is fully activated and ...
Stephen Boston's user avatar
1 vote
0 answers
17 views

Systemd logging to journal stops after service outputs very long lines

I have a process that outputs its logs to standard error, and I'm running it as a systemd service with Type=simple. I have left the StandardError and StandardOutput fields at their default values (...
Guss's user avatar
  • 12.8k
0 votes
0 answers
28 views

Ubuntu 24.04 Container generating excessive logs

I am building a workflow that uses containers and Cloud Batch. My current container is created from a Docker file: FROM ubuntu:latest ENV CONTAINER_NAME="python3" RUN apt-get update &&...
jlo-gmail's user avatar
  • 101
1 vote
3 answers
73 views

How to tail continuously a log file that is being deleted and recreated?

I need to extract information from a log file that is deleted and recreated every time a program runs. After detecting that the file exists (again), I would like to tail it for a certain regexp. The ...
user2066480's user avatar
0 votes
0 answers
26 views

TACACS+ accounting using linux client

Is it possible to log all commands executed in the Linux machine to a TACACS server?
Teresa's user avatar
  • 1
1 vote
0 answers
22 views

Determining cause of recurring external SSD data transfer with goal of preventing it

The LED lights for an external SSD connected via USB to a Linux Mint box indicate data transfer every 00:06:15 (6 mins 15 secs), despite no user applications (and possibly no processes) accessing the ...
End Antisemitic Hate's user avatar
0 votes
1 answer
75 views

logrotate create one compressed archive from log files with different file names

I have a log folder under under /var/USER/mylogs and there on a daily basis log files in format "DATE-mylogile.log". DATE is formatted as "%d-%m-%Y". So in my folder i have for ...
Opa114's user avatar
  • 101
0 votes
0 answers
18 views

is there a corresponding /var/log/boot.log for shutdown?

with verbose grub instead of quiet, you observe this screen for example upon boot and shutdown There is /var/log/boot.log that has what was displayed on the screen from boot. Is there a corresponding ...
ron's user avatar
  • 6,904
0 votes
0 answers
48 views

slow down verbose boot screen

When Linux boots, with GRUB_CMDLINE_LINUX having verbose instead of quiet, the display on the console screen flies by so fast that it is near impossible to visually read what has a red [Failed] to it. ...
ron's user avatar
  • 6,904
1 vote
0 answers
209 views

log output (stdout) from within make file

How do I send the output (stdout) to a log file from WITHIN the make file? I am NOT interested in a command line solution such as "make > build.log". Listed below is my generic make file. ...
jwzumwalt's user avatar
  • 269
1 vote
1 answer
79 views

Unbound can't write logs to file

I installed unbound 1.13.1 and I want to use it as a recursive resolver and log everything into a file. Unfortunately, unbound does not write into the file and I get the error: Feb 15 11:46:53 unbound[...
Mnemosyne's user avatar
  • 161
0 votes
2 answers
259 views

How to suppress nginx worker process notices?

Note: Logging is disabled but the notices still occur! I want a clean log that only shows errors for my Docker containers but nginx is just flooding the command line with noise even though I disable ...
Konrad Höffner's user avatar
5 votes
1 answer
684 views

/var/log/auth.log stops recording authentication errors

As the title says, /var/log/auth.log stops recording authentication errors. It all began with I accidentally deleting it. Then I created it using touch command and changed the owner:group to syslog:...
zzzhhh's user avatar
  • 95
2 votes
1 answer
35 views

Transforming nested arrays in Office 365 logs into table

I want to release a simple tool based on jq to transform some common Office 365 Unified Audit Log events into a tabular report format, but having challenges with the way certain key arrays are nested. ...
whitepaws's user avatar
  • 121
0 votes
0 answers
12 views

Log PID and TCP Listen

I'm trying find, how can I log all process activites, for logging all TCP Listen syscalls. System is linux. My main problem, I need do some logging for passive FTP connections, but with time occurence,...
Znik's user avatar
  • 649
1 vote
1 answer
31 views

What is the second time sequence column in journalctl?

I am trying to remove all time-date stamps and sequencing from my journalctl output For example sudo journalctl -eu NetworkManager [ 130.787316] user NetworkManager[713]: <info> [1707206156....
raquel's user avatar
  • 11
0 votes
1 answer
47 views

function log2syslog in kali linux 2023.4

Can you please help me with this ? im trying to logging the bash commands. In Centos or another Linux OS works , but does not wotk in Kali Linux. I have created shell file with name log2syslog.sh in /...
George Filippaios's user avatar
0 votes
0 answers
46 views

Where is AppArmor's Log File?

I'm trying to scan the application Firefox with AppArmor sandbox, however I don't know where the location of the log file is. I use Kali Linux, and there are so many directories with log files. I also ...
Hack3rX's user avatar
  • 11
0 votes
1 answer
48 views

Strange outgoing messages in syslog, mail.log

I am not using the email config in my ubuntu server, can anyone tell me what is going on?
Christian's user avatar
  • 101
0 votes
0 answers
13 views

Logfile-fetcher for some servers

Whats a free and easy tool to fetch a few logfiles from a handfull of linux-servers and centralize store it on the retrieving server? I think of a sort of very lightweight splunk or sort of. But it ...
chris01's user avatar
  • 595
-1 votes
1 answer
474 views

Which logging system does Kali Linux use?

Greetings I have recently switched to Linux due to my passion for software engineering and CyberSecurity, the Linux distribution is Kali version: [This info is confidential.] 6.5.0-kali3-amd64 #1 SMP ...
KhodeNima's user avatar
  • 101
0 votes
0 answers
30 views

How can I force systemd journalctl to output log in sequential order in case of frequent clock changes?

I have a standalone debian-based system that -- for the simplicity -- can be taken as not having RTC. The system clock can be set during operation, both forwards and backwards. I thought that ...
Ferenc's user avatar
  • 101
0 votes
2 answers
84 views

Root partition is running out of disk space due to too large syslog files

This is occurring while backing up whole drive with rsync. I'm trying to sync two large hard drives as a backup and I'm doing so exactly as described here using the Grsync GUI. While doing so I get ...
mYnDstrEAm's user avatar
  • 4,360
0 votes
0 answers
33 views

How to start openvpn without any daemonization and log redirection?

I want effectively a debug modus, i.e. I do not want openvpn to fork I want all output in the stdout/stderr and nothing in various logs. How can I do that? I could stop forking with a --daemon=0, ...
peterh's user avatar
  • 9,808
0 votes
2 answers
255 views

apache2 service broken on debian 12

The apache2 service on debian 12 doesn't seem to work for me. It complains in the logs something about /var/log/apache2. The apache2 subdirectory doesn't seem to exist in the /var/log directory. The ...
TheGuy's user avatar
  • 11
14 votes
1 answer
3k views

Logs in Ubuntu 20.04 to investigate theft

At my work, I have a small server PC running Ubuntu 20.04. A week ago, someone stole the CPU (yes, they took the case apart, removed the fan, removed the CPU and then put the fan and everything else ...
Monardo's user avatar
  • 141
0 votes
1 answer
30 views

Is it possible to skip "<service> started" entries from Samba logs?

I have just installed and configure SAMBA on my Raspberry under Raspbian Bookworm. I have noticed that there are many log entries like: rpcd_mdssvc version 4.17.12-Debian started. smbd version 4.17.12-...
Daniele's user avatar
  • 21
0 votes
1 answer
42 views

Are e-mails to localhost logged with sSMTP?

I don't suppose that sSMTP will work for just sending mail on the localhost? nicholas@mordor:~$ nicholas@mordor:~$ sudo cat /etc/ssmtp/ssmtp.conf # # Config file for sSMTP sendmail # # The person who ...
Nicholas Saunders's user avatar
1 vote
1 answer
169 views

How to tail -f multiple files and grep each file individually in single output?

I have several log files (related to my webserver aka various error_log, access_log, etc.) that I want to monitor in real time, ie to see recent updates AND I need to filter each file individually ...
ino's user avatar
  • 317
0 votes
1 answer
59 views

Where does fetchmail store e-mails?

Having removed procmail, am looking for where fetchmail is storing messages: nicholas@mordor:~$ nicholas@mordor:~$ tail -f /var/log/fetchmail.log fetchmail: IMAP< A0003 OK [READ-WRITE] INBOX ...
Nicholas Saunders's user avatar

1
2 3 4 5
40