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
9 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
9 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
70 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
27 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
67 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
17 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
14 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 ...
1
vote
0answers
25 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
14 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
10 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
73 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
43 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
22 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
votes
0answers
20 views

Journalctl remote logs

How would I get the logs of a remote desktop with journalctl from the server side if I do journalctl -r it I find them but I would like to get ONLY the desktop logs? Excuse my bad grammar as it is not ...
1
vote
0answers
28 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
44 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
15 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
31 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
42 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
21 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
22 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
33 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
22 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
102 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
27 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
81 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
16 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
19 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
33 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 (...
1
vote
1answer
20 views

Writing logs for openvpn in Ubuntu18

I've installed openvpn on Ubuntu18, and it works. I'd like to have a log containing only the times when users connect and disconnect. Found a hint how to do it at [https://github.com/furlongm/openvpn-...
0
votes
1answer
10 views

SMB Not Able to Use Date Command Substitution

smbclient //10.10.101.29/it -W WORKGROUP -U user --password pass -c 'put ./file_$(date +%Y_%m_%d).file ./folder/file_$(date +%Y_%m_%d).file' The above does not work & gives me an error stating: ....
0
votes
0answers
17 views

/var/log/warn and messages get written full with io/hpmud/musb.c 997: invalid bulk out endpoint [SLES11]

A couple of month ago I installed a HP LaserJet P3015 and some days ago even tho the printer worked it flooded my /var/log/warn and /var/log/messages files with the same message over and over again ...
0
votes
1answer
36 views

Question about /var/log files

I'm looking at the files under /var/log on CentOS 7... And many of the files have dates included in their names (i.e. secure-20190512)... but the date in their names don't correspond to either the ...
0
votes
2answers
59 views

Exit status of last command using PROMPT_COMMAND

I want to save the exit status of the last ran command (in a file, in a variable, it doesn't really matter), but this must be done automatically in an interactive shell, manually running something ...
0
votes
0answers
23 views

Is there a tool that feeds journalctl log updates to the program of your choice?

I have a log processing tool that takes lines in stdin and does some sort of processing that I need. Currently my application does log rotation so that it archives log file according to certain ...
0
votes
1answer
120 views

Advantage of elasticsearch over grep when trying to search keyword in logs files [closed]

I know elasticsearch is good for full text search but when it comes to analyze logs, say nginx logs what is the advantage of using it over grep (with tail, awk, etc.) ? Quite of often I dig through ...
2
votes
2answers
47 views

Automatic rmmod / modprobe based on dmesg parsing

I am using a MacBooPro10,1 Debian stable (default install with rsyslogd) system for which the trackpad eventually fails (pointer stop working) from time to time as can be seen : $ dmesg [...] [...
0
votes
1answer
23 views

How to operate on a directory with different owner from a script?

Few days ago i have installed elasticsearch, For diagnosing some problems on my elasticsearch setup, i have checked the logs files located in /var/log/elasticsearch and tailed them but apparently the ...
0
votes
0answers
83 views

Monitor SSH attempts in Windows Subsystem Linux

I am trying to look at failed SSH attempts, which I could do on a regular ubuntu machine by looking at /var/log/auth.log. I've taken a look at Debian - auth.log missing from /var/log and the WSL has ...
3
votes
1answer
75 views

Logging Shell Activity

Is there a way to produce a custom activity log in my BASH shell? It would save, in each row, the last command, the time when it was run, and the working directory from which it was run. Note: It ...
0
votes
0answers
14 views

What does journal hostname field refer to?

I have a question about hostname field that journalctl displays. From journalctl documentation I know that _hostname= is displaying the name of the originating host. So in that case this log: march ...
1
vote
0answers
105 views

How to monitor system with `snort` and send emails about `alerts`

PROBLEM: I have been configuring snort on my systems and would like to get emails from the systems if there are any alerts. What I have tried is swatch but I can't find much documentation on it, can ...
0
votes
1answer
48 views

`systemctl status atop` shows it has failed, but there is no error message

I installed atop, and then immediately upgraded from Fedora 29 to Fedora 30. Now atop failed to start during boot. But there is no error message. It only shows that atop exited with code 7. Why ...
0
votes
0answers
114 views

How do I forward particular logs under a directory using rsyslog?

Trying to froward following logs from /home/ddlog/ms/logs/execution_logs/_abc-xyz-ms_* to VMware vRealize Log Insight using rsyslog. For some reason that does not seem to be working. I have tried ...
1
vote
0answers
34 views

How to see laptop camera logs on Ubuntu

I would like to know if it is possible to discover when my laptop camera was used over the past 7 days. eg. Is there a log for that? I am running on a Ubuntu 18 machine.