logs

Does an echo to network command exist in debian?

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 paste.debian.net in order to retrieve on some machines pieces of scripts too long to …

Total answers: 1

Duplicate kernel logs during boot on Debian trixie

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 duplicate logs without timestamp displayed in light blue color ! The seconds ones are not present in the past and …

Total answers: 1

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

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? Asked By: metablaster || Source The syslog module provides system logging …

Total answers: 1

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

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 …

Total answers: 1

system logging other than journalctl

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 presents a more precise view of hardware states and process. Are there other standard or useful system logging facilities …

Total answers: 1

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

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 example these log files: 12-01-2024-mylogfile.log 13-01-2024-mylogfile.log 14.01-2024-mylogfile.log … Now i want to …

Total answers: 1

How to suppress nginx worker process notices?

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 everything, is there any elegant way (e.g. not using grep as an …

Total answers: 2

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

/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:adm. I have had rsyslog installed. But it just does not record anything. Any idea to fix it? The OS is …

Total answers: 1

Which logging system does Kali Linux use?

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 PREEMPT_DYNAMIC Debian 6.5.6-1kali1 (2023-10-09) x86_64 GNU/Linux I’m trying to learn the fundamentals at the moment, that is why I …

Total answers: 1

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

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 with different string or without any …

Total answers: 1

On Bind I see a strange error logging

On Bind I see a strange error logging Today I see on my bind9 log directory a lot of log (empty!) files. querylog.1.1.1.2.2.1.1.1.2.1.1.1.1 querylog.2.1.1.1.2.1.1.1.1.1.2.1.1.1.2 update-debug.log.3.1.1.1.1.2 querylog.1.1.1.2.2.1.1.1.2.1.1.1.1.1 querylog.2.1.1.1.2.1.1.1.1.1.2.1.1.1.2.1 update-debug.log.3.1.1.1.1.2.1 querylog.1.1.1.2.2.1.1.1.2.1.1.1.1.1.1 querylog.2.1.1.1.2.1.1.1.1.1.2.1.1.2 update-debug.log.3.1.1.1.2 querylog.1.1.1.2.2.1.1.1.2.1.1.1.1.1.1.1 querylog.2.1.1.1.2.1.1.1.1.1.2.1.1.2.1 update-debug.log.3.1.1.1.2.1 querylog.1.1.1.2.2.1.1.1.2.1.1.1.1.1.1.1.1 querylog.2.1.1.1.2.1.1.1.1.1.2.1.2 update-debug.log.3.1.1.2 querylog.1.1.1.2.2.1.1.1.2.1.1.1.1.1.2 querylog.2.1.1.1.2.1.1.1.1.1.2.1.2.1 update-debug.log.3.1.1.2.1 querylog.1.1.1.2.2.1.1.1.2.1.1.1.1.1.2.1 querylog.2.1.1.1.2.1.1.1.1.1.2.2 update-debug.log.3.1.2 querylog.1.1.1.2.2.1.1.1.2.1.1.1.1.2 querylog.2.1.1.1.2.1.1.1.1.1.2.2.1 update-debug.log.3.1.2.1 querylog.1.1.1.2.2.1.1.1.2.1.1.1.1.2.1 querylog.2.1.1.1.2.1.1.1.1.1.3 update-debug.log.3.2 querylog.1.1.1.2.2.1.1.1.2.1.1.1.2 querylog.2.1.1.1.2.1.1.1.1.1.3.1 update-debug.log.3.2.1 the list is …

Total answers: 1

Shell script output/logging question

Shell script output/logging question I have a shell script that does a lot of work and pretty close to the top I have this: if [[ -r "${SCRIPT_BASE_DIR}/etc/logging.properties" ]] && [[ -s "${SCRIPT_BASE_DIR}/etc/logging.properties" ]]; then source "${SCRIPT_BASE_DIR}/etc/logging.properties" fi if [[ -r "/usr/local/lib/logger.sh" ]] && [[ -s "/usr/local/lib/logger.sh" ]] && [[ -n "${LOGGING_LOADED}" ]] && [[ …

Total answers: 1

How to find which clients are using a sendmail SMTP relay?

How to find which clients are using a sendmail SMTP relay? We have sendmail set up as a SMTP relay on a RHEL 6 machine. How can we find the hostname or IP address of remote clients using this relay to send mail? Is this information logged somewhere? The relay= field in /var/log/maillog specifies the …

Total answers: 1

Where Does Aptitude Log Its Warnings?

Where Does Aptitude Log Its Warnings? Aptitude version 0.8.7 Debian 9 (Stretch) During a recent package upgrade, the Aptitude GUI displayed the following warning, boxed and in bright red: W: APT had planned for dpkg to do more than it reported back… Said displayed warning also contained information concerning the number of planned actions vs. …

Total answers: 2

how to execute command and log only the command to a file

how to execute command and log only the command to a file I’m trying to run a command and log only the command to a file. I’ve tried using exec 4>test|command >&4|exec 4>&- but doesnt’ work. If I run the commands separately it works but only records the output of the command, the same with …

Total answers: 1

Tracking the source of PostgreSQL authentication failures in Linux Localhost

Tracking the source of PostgreSQL authentication failures in Linux Localhost I have these logs in my PostgreSQL database log file that appeared after I changed the database password. 2023-09-14 11:57:15.937 UTC [3401773] username@db-name FATAL: password authentication failed for user "username" 2023-09-14 11:57:15.937 UTC [3401773] username@db-name DETAIL: Password does not match for user "username" Connection matched …

Total answers: 3

Save the output of earlier tailed logs to a file?

Save the output of earlier tailed logs to a file? Is it possible to save the output of earlier tailed logs to a file? Steps to Reproduce this issue: tail -f application.log Ctrl+C to end the logs Save that output to a file now. I am assuming an algorithm like this exists. tail -f application.log …

Total answers: 1

How to automatically change the name of a file on a daily basis

How to automatically change the name of a file on a daily basis I am new to Linux/CentOS and right now I am running into a little problem. My CentOS7 Server logs all Maillogs on a daily basis and moves them to the folder /var/log/old_maillogs. Right now the logs are saved with a name similar …

Total answers: 1

How do I view contents of log files that is too large?

How do I view contents of log files that is too large? I’ve a huge log file. Worth 403MB. df -h command shows that only 8% free space in /home free -mh command shows that only 474MB is free and 658MB is available. How do i view the logs? I tried. grep -A500 ‘string_to_search’ application.log_2023-07-13>/tmp/testError.txt …

Total answers: 1