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
0answers
10 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
30 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 ...
-1
votes
0answers
8 views

logrotate for removing entries older than x days in y.log

How do I configure logrotate to look at (for example) /var/log/mail.log and remove any entries in that files older than 14 days? (Or is there a tool better than logrotate for this?)
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
25 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
38 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
25 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
0answers
25 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
28 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
25 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
375 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
31 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
44 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
39 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
0answers
69 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
24 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
59 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
10 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 ...
3
votes
3answers
107 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
38 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
77 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
33 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
58 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
10 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
12 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
86 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
60 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
32 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
50 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
23 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
35 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
51 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 ...
0
votes
1answer
24 views

Connection closed log lines in auth.log on Debian machines

My auth.log on my Debian machines was full of the following messages: CRON[1736]: pam_unix(cron:session): session opened for user root by (uid=0) sshd[1742]: Connection closed by ::1 port 38518 [...
2
votes
0answers
25 views

extract last 5 mins of information from the log file

system date format: Thu Jun 13 12:55:18 EDT 2019 My log format: 193.118.26.141 - - [01/May/2019:00:08:49 -0400] "GET / HTTP/1.1" 200 27 can someone please help me, how to get last 5 minutes of ...
0
votes
0answers
37 views

Comparing Timestamps

My users sometimes get alerts with a timestamp, (from another system, via email) but no hostname. I want to give them a function that can compare timestamps in my system that's designed like this: /...
1
vote
1answer
24 views

how to get packets log which are dropped by rp_filter=1

I do need a log of packets which are dropped by rp_filter ... how to do this logging ? which logs how to enable.
0
votes
1answer
235 views

ACPI error message AE_NOT_FOUND. Why is this happening now? It did not happen previously

I have used Linux on my PC for a long time. Some time recently, there is a new kernel error message on the text console. It also appears as a message in red in journalctl -p err. It did not appear ...
1
vote
2answers
49 views

How can I find the latest log for multiple jobs in AIX and delete the latest one

I am new to unix. I am trying to find the latest log of multiple jobs and delete the latest one. Can I write a shell script for it? I have tried with basic commands, but there it is selecting a ...
0
votes
0answers
30 views

run script continuously and check for error

I have written below script and it reads the file and when ever there is any 400* or 500* word it will give me error message, and now I want to add two more functionality to my script. I added the ...
1
vote
0answers
25 views

Recover accidentally flushed logs file

I have an Apache Tomcat running on CentOS7 server which had a file catalina.out of around 157MB in size. I was trying to download that file on my local system so I ran the tar -czf command but I ...
1
vote
2answers
85 views

Grep Syslog firewall logs

I have a file which contains firewall log like this: Feb 3 0:18:51 17.1.1.1 id=firewall sn=qasasdasd "time=""2018-02-03" 22:47:55 "UTC""" fw=111....
0
votes
0answers
19 views

Can I redirect logs from journald inside container to docker logs?

I have a container using systemd inside it. The command into the container is /usr/sbin/init. This is a requirement so I cannot change that. I also have a custom service running inside that container ...
0
votes
0answers
33 views

USB disconnect and new USB device using xhci_hcd

/var/log/messages kernel: usb 3-7.3:USB disconnect, device number 69 kernel: usb 3-7.3:new low-speed USB device number 70 using xhci_hcd kernel: usb 3-7.3:new USB device found, idVendor=0461, ...
1
vote
1answer
35 views

screen logging - How to ommit interactive shell control characters and prompt?

One of my first questions. Please comment if further explanation or information is required or if the question is not like it's supposed to be here I'm using screen to automatically start servers (...