Questions tagged [logs]

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

344 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
130 views

How to get the data between specified Starttime and Endtime in a log file?

This is my LogFile(Test.Log): May 10 01:06:05 A May 10 01:06:06 B May 10 01:06:07 C May 10 01:07:01 D May 10 01:07:02 E May 10 01:07:09 F May 10 01:07:11 G May 10 01:07:11 H May 10 01:07:12 I May 10 ...
0
votes
1answer
4k views

Cron stopped logging to /var/log/cron.log

A month ago I set cron to log to /var/log/cron.log by modifying /etc/rsyslog.d/50-default.conf. Logging worked great until I changed permissions on /var/log (by easing permission restrictions), and ...
0
votes
1answer
3k views

/var/log/secure and other log files are empty even after restarting rsyslog.service

I am running a Centos7 server with rsyslog for logging. The service is on (sudo systemctl is-enabled rsyslog) outputs "enabled". I have also configured the service to start at boot-time. However, ...
0
votes
1answer
885 views

Linux + how to know why Linux machine is hung from the messages on the console

As the picture below , my VM Linux machine was hung and I cant login how to identify the reason for the "hung" according to the messages on the console? I also searched more info from the /var/log/...
0
votes
1answer
1k views

Fetching logs from log file using grep

I am trying to fetch logs from log file using grep command and format of log file is as follows: [1/10/16 23:55:33:018 PST] 00000057 ServerObj E SECJ0373E: Exception message at com.own.ws.wim.util....
0
votes
1answer
90 views

Logging to web service

I like to log to a web service, that I can create so that I can implement filters/search/analytics and alerts more easily. Main thing I want to view logs for is that of my web application (NodeJS). ...
0
votes
0answers
87 views

When last linux turned off (blackout or manually)

Is there a way to check when was the last time Linux shut down, either because of blackout or manually turned of. The case was, my machine turned off and I don't know since when.
0
votes
1answer
21 views

AccessLog does not exists?

I am a new user here and have problems with an Apache server: error which I see first time on line 1016:
0
votes
2answers
878 views

Logging from shells script with log4sh

I am trying to send an SMTP email using log4sh. All other logging like stdout, file appender are working but the smtp thing is not working. log4sh.properties : log4sh.rootLogger=ERROR, stdout, smtp,...
0
votes
1answer
81 views

How to keep all log files?

I just lost important log file. Time Machine etc is not in use in that Mac. I would like to setup in my Mac (El Capitan) some unix thingie, which keeps all log files. Logs rotate, right? So if i ...
0
votes
1answer
104 views

Unwanted and or Abusive Web Requests

We have been contacted by our server host provider about Unwanted and or Abusive Web http Requests going out from our server. The information they gave us are. Block Type: New Ban Time: 2015-10-01 ...
0
votes
1answer
49 views

rsyslogd used with any application or only Linux system logging?

Is the purpose of rsyslogd to handle logging of applications in userspace? For example i have 5 Jboss instances running on a server with custum applications running inside them. They all produce there ...
0
votes
1answer
64 views

Folder research task

I have a folder with 3 subfolders containing 6 files each.There are 2 files in each subfolders with :NOPM in their file names. I need to create a shell script that checks all the folders and their ...
0
votes
0answers
23 views

how to detect who changed mail status in shared IMAP mailbox

Is that possible to know from the imap / dovecot logs which user performed which operation (ie. delete, status change) on mail in shared IMAP mailbox?
0
votes
1answer
285 views

Getting cron to include date in error log

I have the following cron job running: /home/ubuntu/scripts/austria/archive.sh >> /home/ubuntu/logs/austria/archive.log 2>> /home/ubuntu/logs/austria/archive.err Every time the script ...
0
votes
2answers
69 views

Logging service

I have written java application that runs on several hundred Linux computers. Program creates log file using log4j logger. To make development better I need to collect log files from these systems and ...
0
votes
1answer
97 views

Is there a way to log key presses under linux?

I am a heavy Vim user and I also use a ton of tmux and a load of bash in my everyday computer activities. In order to optimize my work flow, even more, I would like a way to get a log of all key ...
0
votes
1answer
2k views

Grep /var/log/maillog for email to a certain user, based only on his linux username

I have a learning environment, based on Linux CentOS, with Postfix and SquirrelMail running, but my assignment is more in general. I need to find in the maillog e-mails received by a certain user ...
0
votes
3answers
2k views

rsyslog seems to have vanished from my system

I'm debugging an issue where I think my server is spamming other servers because it is infected but all my logs stop in august last year, and rsyslog is missing from the system /etc/rsyslog.d still ...
0
votes
2answers
123 views

Why can't I split cron logfile up from syslog in bangwagong host?

There are two vps: one is digitalocean, the other is bangwagong host. All the operating systems on them are Debian7. I want to split cron logfile up from syslog with the following steps. step1: vim /...
0
votes
0answers
354 views

fail2ban stops logging after some time (3-4 days)

I've noticed that whenever I want to see fail2ban logs after 3 or 4 days of being working, it compresses the logs to .gz which Im fine with that: -rw-r--r--. 1 root root 90034 May 1 12:49 ...
0
votes
2answers
56 views

Script to find logs in directory

I have my loop for: for i in 1.34* do if [ -f $i/rela/*log ] ; then echo $i >> /tmp/allog else echo $i >> /tmp/alnolog fi done Is working well. We have different version of releases in ...
0
votes
1answer
1k views

is iptables broken on my raspberry-pi? how to fix?

I am getting some person(s) trying to brute force my ssh, from multiple ip addresses (small sample) : May 22 19:50:02 rpi sshd[1272]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=...
0
votes
1answer
1k views

/var/lib/puppet/state/agent_catalog_run.lock exists

I'm seeing the following error on CentOS 6.4: # puppet agent --test Run of Puppet configuration client already in progress; skipping (/var/lib/puppet/state/agent_catalog_run.lock exists) What should ...
0
votes
0answers
62 views

Nicely formatted logs in GNOME's Empathy IM client

I am using empathy, and every time I want to browse my logs I have to do this for instance (ag is a sort of grep, if you are wondering): cd ~/.local/share/TpLogger/logs/ ag "myterm" cat myuser/...
0
votes
1answer
85 views

Create and report system acivity

I have a set-up a server running several applications. There will be multiple people using these applications in a community situation. I am looking for a way to track and report changes made to ...
0
votes
2answers
233 views

Save syslog from honeypot to a host virtual machine

So im making a research honeypot. The host is ubuntu 14.04. I want to store all of the logs from the honeypot ssh to the ubuntu host so the data is not lost. Does anyone know anything about this? I ...
0
votes
1answer
656 views

Kernel ATA Exception after resume from suspend to RAM

After resuming from suspend to RAM, my Arch Linux system freezes and becomes permanently unresponsive. However, I managed to pull the following kernel log: kernel: sas: Enter sas_scsi_recover_host ...
0
votes
0answers
95 views

kernel panic - get log

My system keeps hanging every several hours. I think the problem is somehow connected with network, because plugging ethernet cable eliminates the problem (even if ethernet is used locally only). If I ...
0
votes
0answers
102 views

Seems that my router accessed one of my Linux systems, what does it mean?

I just ran the last command on two of my systems and there are weird entries: user pts/2 dsldevice.lan Sun Dec 28 22:59:35 2014 - Tue Dec 30 00:40:41 2014 (1+01:41) Notice: dsldevice.lan ...
0
votes
2answers
290 views

Supervise File Operations

I want to find out what file operations (failed and successful) where performed in the last hour on my system. Is there a way to do that?
0
votes
0answers
1k views

Seeing SSH debug messages in Terminal/console

I am seeing "debug3: Received SSH2_MSG_IGNORE" appear in the terminal on a RHEL 6 Linux server. I thought maybe rsyslog had a console entry, but it doesn't. sshd_config has logging at AUTHPRIV, and ...
0
votes
0answers
30 views

A log which holds all actions

I was wondering if Centos 6.4 has some kind of log which stores most actions that happen. The issue is as following. I have two VirtualMachines, both running CentOS and on both independant machines (...
0
votes
1answer
40 views

Is it possible to save in a log everything the system outputs when I turn it on?

I am using a BeagleBone Black without any screen. It works fine, but sometimes when I turn it on it hangs and have to reset. I do not know why this is happening and since I cannot see whatever it is ...
0
votes
1answer
57 views

Should apache still be making error_log files?

I have a VirtualHost set up like this <VirtualHost my.ip.address.here:80> DocumentRoot /home/todieama/public_html/dev/hop/public_html/ ServerName dev.example.com ServerAlias dev....
0
votes
1answer
1k views

Separate SSHD Authpriv logs into /var/log/sshd, all other authpriv logging goes to messages

Right now, sshd is using the authpriv facility. The level of logging is fine, but I don't want it in the syslog, I want it to go to /var/log/sshd (which doesn't yet exist) on Red Hat Linux/Enterprise ...
0
votes
1answer
233 views

Need to grep for specific lines from ongoing log and save it in some file

There is just one log, which will have info on certain devices, that i am upgrading. I use "tailf log" to monitor the log. Now, say, I am upgrading 10 devices, the log will go on populating lines ...
0
votes
2answers
286 views

Syslog-ng failover: logserver to local file

We want to use a central Logserver for our Webservers so we can manage everyhing on one machhine. I'm a bit scared of what happens if the network breaks or the Logserver is down. Is it possible that ...
0
votes
1answer
47 views

How to write log before instalation

My computer crashes while trying to load the kernel from a LiveCD with the message "unable to handle kernel paging request". I'd like to reproduce the error output on a forum to get some ideas on ...
0
votes
0answers
172 views

Troubleshooting span traffic shutdown interface?

I'm using guardium appilance, which has one of its port used to analyze span traffic. The base os is linux. The span traffic stopped coming during some time of operations. I asked the network team, ...
-1
votes
1answer
58 views

Slugger utility

Implement a shell script program that provides the following functionality. It takes a log file as input. The log file contains the log statements with message stamp as shown on the side. The ...
-1
votes
1answer
100 views

How can I track long-term system performance in Linux (Debian)?

I love the RRD graphs that pfSense provides. Is there a package for Debian or a generic tool that can do the same for my Debian box?
-1
votes
1answer
1k views

How to show 404 error referer in apache logs

I need show the referrer for 404 error in the Apache log file. I found only script in php, it's possible to make through Apache conf?
-2
votes
1answer
70 views

how to change log file creation user in linux

Log files are being created with the root user: -rw-r--r--. 1 root root xxxx Mar 14 16:53 access_log.1489489200 What is the process to change it to another user? like: -rw-r--r--. 1 user user xxxx ...