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
1answer
25 views

Have the sshd host strings that are present in /var/log/auth.log been validated by sshd?

Since the log messages are written by the sshd daemon after an established connection, then my understanding is that the host strings have already been validated by the sshd daemon since the log ...
0
votes
0answers
22 views

How to mute syslog from console, without using actual syslog daemon?

I usually switch between Xorg and (framebuffer) text console a lot. But every time I switch to text console, I got a message like this on the text console: acpid: client 7251[0:0] has disconnected ...
0
votes
0answers
21 views

Incoming and outgoing traffic from kernel service from lan router connecting to internet

I have kali linux. I have outgoing on for ufw for port 53, https, http. All outgoing and incoming (all protocols) blocked by default. I am still getting incoming traffic from my lan which connects ...
-1
votes
0answers
21 views

Cron job running but script not producing output

I have a python script that I need to run continuously even if the system reboots. I have put it in the crontab as: @reboot sleep 60 && python /home/user1/Documents/process.py --save_dir=/...
1
vote
0answers
29 views

How to check for network issues? dmesg? and how to setup logging?

I'm pretty new to Linux but have worked with Windows servers and networks for 30 years so I understand the principles but am learning the 'Linux' way of doing things. I have setup a Centos 7.6 server ...
1
vote
1answer
71 views

Analyze “a stop job is running” for 1 minute 30 seconds during shutdown, on Debian 10

I have installed Debian 10 Desktop. I notice shutdown is frequently delayed, by 1 minute 30 seconds. I do not have this problem on my Debian 9 install. (Or at least, not nearly so often). I can ...
0
votes
1answer
31 views

Log files big size

I have log files for different services, those log files are taking up too much disk space, when I tried to truncate one of them with >run.log the file is truncated, but after some hours it got big ...
-2
votes
1answer
20 views

How can I tell why my logs stopped saving into var/log/messages?

I'm new with Linux. I've only been backing up logs for a few weeks. This week, I went into the messages and found that they'd stopped being saved last week, roughly since the last time they'd been ...
0
votes
0answers
13 views

Log connections of any process to a specific host:port

I would like to know which process connects from the local machine to remote host 1.2.3.4 in HTTP. To get this information about actual processes, the command is lsof -i@1.2.3.4:80 However, I ...
0
votes
1answer
20 views

Limit file size for FFMPEG AV Stats

I'm doing this with ffmpeg... nohup ffplay -reorder_queue_size 0 -nostats -i /tmp/stl-app/stream.sdp -protocol_whitelist "file,http,https,tcp,tls,udp,rtp" -nodisp -af astats=metadata=1:reset=1,...
2
votes
1answer
12 views

How to setup CUPS to keep a log of how many pages I printed?

I have a Debian computer setup with CUPS. I need to record how many pages I'm printing, for work. Is there a way to set up CUPS to store a log each time I print, with the quantity of pages printed?
2
votes
1answer
44 views

How to configure auditd to collect logs from /proc

I've been looking for this for about 2 days and have come up empty-handed. I am looking for a way to build a threat alert for Linux-based credential dumping in Splunk. To do this, I need to be able ...
0
votes
0answers
13 views

Why can't / doesn't U-boot log messages for us to view later

I have a problem whereby a remote BeagleBone device is taking hours to boot up. When it does, I don't see any problems in the kernel boot logs such as journalctl -b or journalctl -b -1 Without ...
0
votes
0answers
30 views

Apache2 ISPConfig - Fatal Error Unable to create lock file: Bad file descriptor (9)

I'm totally out of opinions. ISPConfig at Debian Our webserver works with no problem for a long time. We do not make any updates or upgrades. But today all websites got 500 error even ISPConfig ...
1
vote
2answers
39 views

rsyslog filter severity not working

I have following Rsyslog config to send logs to remote servers. Problem is its sending lots of INFO mesg to remote server and i don't want that noise. I am trying to configure filter so it send all ...
0
votes
0answers
17 views

is there a log/historic of all the file locks?

I recently had a server (Red Hat) that experienced a few minutes long slowness (involving mysql but anyway). After some investigations, I'm wondering if another background process (sa1 maybe?) could ...
1
vote
2answers
30 views

How to get rid of number suffix in rsyslog's own 'programname' ang 'syslogtag' property

I'm forwarding logs from local rsyslogs to central rsyslog and then to Elasticsearch. Everything works fine, but entries with severity error generated by rsyslog itself have property programname like ...
0
votes
0answers
46 views

Apache log files rotation and webalizer

I have a default installation of Fedora 30 with httpd and webalizer. The webalizer is run in a cron job, but I have the problem that it seems that webalizer is not run regularly. Instead, there are ...
-1
votes
1answer
28 views

xdebug - remote log time is wrong

I noticed that the xdebug log time is always two hours too early. For example it says the log is created at 7:15 am even though it is 9:15 am. If I execute date in my terminal, then I get 9:15 am
0
votes
1answer
62 views

Where does rasdaemon record its logs?

/var/log/syslog contains: Jul 31 13:45:01 ray-desktop CRON[5667]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Jul 31 13:45:50 ray-desktop org.gnome.Shell.desktop[1689]:...
0
votes
0answers
36 views

Connecting the Wifi dongle is freezing the linux system?

I am a bit new to linux environment. My Linux System is freezing when I am connecting to wifi dongle. It works fine when I start the system without dongle, but the complete system hangs when I ...
0
votes
1answer
26 views

Logs for the last n minutes

I am looking for getting the logs for the last n minutes. I tried a few options but most of them didn't work if there are no logs specified for a particular timestamp. For example: The one worked ...
4
votes
3answers
391 views

How to extract only values greater than a threshold

I am new to bash scripting. Could someone help me with the following? I have a log file with output as shown below. I'm trying to grep for lines of an output with logDurationMillis>=950ms logAlias:...
1
vote
0answers
32 views

Continuously display new content of a file that contains a given word

When using less pressing Shift-F takes to the end of the file, and continuously display new contents. Is there any option (with any *nix tool) to continuously display new content which contains a ...
2
votes
3answers
47 views

Regex to match error between 2 lines that contain ##

I have the follwing log file.. that contains some_error_message. If some_error_message occurs between two lines that contain ## (echoed as "##"), we consider it as error occured in remote ftp/sftp ...
0
votes
0answers
12 views

How to setup Simple Event Correlator (SEC) to analyse a multi-line input as a single entry

I have this rule that feeds the result of an external program back to SEC every 5 minutes, but the output is multi-line. My current SEC rules handle each line of the output separately, and I need ...
2
votes
2answers
41 views

Is there a way I can copy logs from one directory to other in continuous fashion

I have a log file in some directory /A. Is it possible to maintain the same in /B directory considering the fact if the file in /A updates will update file in /B also, without re-writing the entire ...
1
vote
1answer
161 views

Airflow log rotation

I am about to use logrotate for the first time, I went through man page and some web guides. I am trying to achieve rotation every week and deletion of the logs that are older than 7 days (I want to ...
1
vote
0answers
29 views

Headless armbian device stopped responding to ssh

I have a headless device (Orange Pi Zero) running Armbian that I use to experiment with. Today it suddenly stopped responding to SSH (my only means of interacting with the device): mark@mark:~$ ssh ...
0
votes
1answer
63 views

Split large log file based on date criteria, while logging facility is running

the log file is /var/log/dovecot.info, >4GB, with date format: 2019-07-01 01:07:40 My objective is: have the /var/log/dovecot.info which starts with 2019-01-01 00:00:00 and contains up to now log ...
1
vote
1answer
13 views

Capabilities of Sudoers and Sudoreplay Logging and Playback

Is the sudoers file in RHEL limited to configuring logging to only what is typed on the keyboard, output on the screen, or errors thrown, or can it go beyond this? For example, if I want to record a ...
4
votes
3answers
170 views

Is there a reason why /var/log/lastlog is a huge sparse file (1.1TB)?

I have read some question, that ask advice how to rsync sparse files efficiently mentioning the files /var/log/lastlog and /var/log/faillog. Indeed I myself have stumpled over those files being an "...
0
votes
2answers
45 views

AWK Command to Select Date Range

I would like to monitor the /var/log/secure file for user activity. I need to be able to provide a start date and select lines only occurring after that date . I have played around with awk for a ...
0
votes
1answer
78 views

How to detect and examine recent changes in a text file?

How to get last changes in text file on Linux? Example: text1 text2 text3 and then a programme adds another line to the text file: demo1 If the last change was the addition of demo1, print in ...
1
vote
1answer
21 views

Is there a record of which programs are running on my screen?

I would like to automatically collect some statistics on how often I use applications on my computer. Are there records of which applications are displaying content on my screen? If so, where are they?...
0
votes
0answers
60 views

Strange wpa_supplicant logs about SIOCSIWAP and SIOCSIWENCODEEXT

I am interested in strange log entries and I would like to understand their nature. Why there are ioctl errors when using the r8188eu driver? Can I resolve these errors? Logs Jul 09 02:34:00 tower ...
1
vote
0answers
16 views

Collecting Logs in full depth

We have a Linux server, whose logs are collected by EventLog Analyzer on a Windows machine. I need to collect logs of events in full detail format, e.g /home/aa/bb/a.xlsx /home/xxx/sss/b.doc ...
0
votes
0answers
5 views

Window minimizing when ROS checking log directory for disk usage

I would like to have a window maximized 24/7 but it is minimizing every time when the ROS log directory is checked for disk usage. Getting message Checking log directory for disk usage. This may ...
2
votes
0answers
95 views

Why doesn't “systemctl status” show anything (“journal has been rotated”), while journalctl shows entries dating back to March?

There are two failed systemd units: ~: systemctl --failed UNIT LOAD ACTIVE SUB DESCRIPTION ● shadow.service loaded failed ...
0
votes
0answers
13 views

send log to another servers simultaneously

I wanna send my application logs to other servers in other zones simultaneously that when I tail on all server's log file see the same log. Which technique suggest?
1
vote
0answers
17 views

My wlan0 connection drops ~ every 5 minutes. Using USB and rtl8192cu. Where to find log info and how to fix?

I'm finishing setting up a used laptop (ca. 2015?) with a pretty current version of Debian. I have a USB wifi device that worked with a Raspberry Pi a few years ago. It's an rtl8192cu. To get it to ...
1
vote
1answer
14 views

Where is the location of linuxbrew's log files?

In MacOS, homebrew output logs to ~/Library/Logs/Homebrew. What is the equivalent in Linux for linuxbrew?
5
votes
2answers
89 views

Linux: write tail -f output, plus comments, to a separate text file

The command tail -f command is great for tracing, and in terminal it's very helpful to be able to, for example, hit enter, and type a comment like -- after xyz change... -- For record purposes, I ...
1
vote
0answers
123 views

rsyslog configuration without restart

I have a problem with logging. With my configuration below, I have to perform rsyslog restart if I want to have my application log file in /var/log. Also, I have to restart rsyslog it in case of log ...
2
votes
0answers
24 views

Removed debug.log, and it is not generating again

Using RHEL 7.2, due to larger file size I've removed debug.log (from /var/log/debug.log). And after that debug.log file is not generating automatically. I've checked "messages" log it's working fine.
1
vote
0answers
43 views

What causes log output to the active console?

I'm running Manjaro ARM 64bit on a Raspberry Pi (more specific question there), but this question is more general: Which settings might cause log output to be always displayed on the active console? I ...
0
votes
1answer
62 views

How to grep all unique ip address in /var/log/messages and send them to another log file

I am in the prosses of decommissioning an old Redhat public BIND server and would like to find all unique IP address that are sending DNS request to this Nameserver. So far this is what I have been ...
0
votes
0answers
25 views

Redirect output of a long running process to a new log file each day

We have a long running process1 whose output is captured into a log file based on when the process is started: export LOG_FILE=${LOGS_DIR}/$LOGNAME/${LOGNAME}-`date +%Y%m%d-%H%M%S`.txt ... ${...
1
vote
0answers
37 views

logging for proxycommand

I need to logging users that connected throw bastion host using proxycommand, I have used next command: $ ssh -i ~/.ssh/key.pem user@ip -o "proxycommand ssh -W %h:%p user_bastio@bastion" In ...
1
vote
1answer
56 views

stderr stdout to log with date and time also show output to tty but without date and time

I am running some commands in a function. I would like to take logs of it by adding date and time for every command output of that function. However, in the terminal when executed, I want to show only ...