Questions tagged [log-files]

A log file is a file, often in clear text, which is generated by a software process to record some specific details about the workings of this process.

A log file is a file which is generated by a software process to record some specific details (events) about the workings of this process. Most logfiles are plain, human-readable text files, some however are using a binary format to conserve space and need specific treatment for post-processing. (Example: Unix login history in utmp/wtmp format)

A log file can be categorized into several types:

  1. Access log which records information related to the usage of the service provided by this process.
  2. Error log which records error conditions.
  3. Info/Debug log which records more detailed information as compared with other logs.
  4. Transaction log to document a chain of events, this often is required to be immutable to avoid later tampering.
  5. redo logs, containing the complete information to replay a chain of actions, often used where incomplete data transactions would lead to inconsistent data, for example in file systems or databases.

The main two goals of creating and maintaining log files are:

  1. Finding and debugging problems.
  2. Gathering usage information.

Depending on the frequence of events and the level of detail, logfiles may be growing very quickly, and usually require a strategy for managing their growth.

Depending on special reqirements, log-files may go to specialized devices to meet criteria of speed or immutability.

1103 questions
-1
votes
1 answer

Is this considered as spam email generated by postfix?

I have just checked my email log at /var/log/mail.log Apr 22 22:09:02 server2 postfix/pickup[14310]: D1FCF737C5B0B: uid=0 from= Apr 22 22:09:02 server2 postfix/cleanup[17071]: D1FCF737C5B0B:…
aye
  • 229
  • 3
  • 11
-1
votes
2 answers

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

As in the picture below, my Linux machine was hung and I couldn't login. How do I identify the reason for the "hang", according to the messages on the console? I searched /var/log/messages for more info (but I get lost in there, can't find anything…
yael
  • 43
  • 1
  • 3
  • 9
-1
votes
1 answer

How to restart system-wide logging on a Linux server?

I am running a Centos 7 Linux server. I tried to install rsyslog. Because of a misconfiguration, we had to uninstall it. Since then, I see that all logs are truncated and no new logs are being created. How do I resolve this?
Sriram
  • 201
  • 1
  • 4
  • 8
-1
votes
1 answer

Apache 2.4 custom logs exception

i am trying to clean my apache log, so i try to seprate trafic / bot / stats in 3 differents files i used the doc : http://httpd.apache.org/docs/2.4/en/logs.html # [ Logs Exeptions ] # - Exeption SetEnvIf Request_URI…
Froggiz
  • 3,043
  • 1
  • 19
  • 30
-1
votes
1 answer

Server Blocked by Provider Sending UDP Packages to certain IP - what does that mean?

My webserver got blocked by my provider recently for the reason that it was performing an attack to another server. The email contained the following log: 08:26:39.219940 68:05:ca:07:02:01 > 78:fe:3d:46:e8:a5, ethertype IPv4 (0x0800), length 1057:…
-1
votes
1 answer

How do you restart logging after deleting an NGINX log?

I deleted my NGINX log because it was very large, thinking that NGINX would automatically create a new one in its place. It didn't, and now I don't have logs. The file was previously located at /opt/nginx/logs/error.log. I tried creating a new file…
williamcodes
  • 135
  • 1
  • 5
-1
votes
2 answers

rsyslog (local) and remote logging

I have several linux servers that I want to monitor the log files. I thought it would be great to setup a central log server that can capture incoming rsyslog packets. Each hostname would have its own folder and set of logs. However, is it possible…
mavrex77177
  • 1
  • 1
  • 1
-1
votes
2 answers

Exim log file errors

1- What is the meaning of these lines in /var/log/exim/main.log? I have these lines repeated more than 700 times in main.log 2015-03-16 21:30:57 TLS error on connection from [192.0.2.1] (SSL_accept):…
dac777
  • 3
  • 2
-1
votes
1 answer

linux server still recognizes the old domain after changing it to new one

I have some Linux servers (RHEL 6.3 and 5.4) under one domain (MS Windows server 2008R2) and every thing was working fine, but we decided to change the domain from olddomain.com to newdomain.com, now the new domain under (Windows server 2012), I…
Ahmad Abuhasna
  • 195
  • 1
  • 9
-1
votes
1 answer

Is rsync more robust than scp for connection reset?

On a big corporate firewall-ridden network, we have traditionally used scp to copy a few brand new files over from one machine to another, as part of the log-file rotation and analysis routine. However, it has recently been observed that the scp…
cnst
  • 13,848
  • 9
  • 54
  • 76
-1
votes
1 answer

Bash Script to Compress / Transfer / Remove Log Files

I am currently using chronolog to set log file names for Apache with date. They are in the following format: /WEB/LOGS/APACHE_ACCESS_YYYY-MM-DD.log /WEB/LOGS/APACHE_ERROR_YYYY-MM-DD.log I would like to have a script that runs on the first of every…
Jason
  • 381
  • 1
  • 7
  • 20
-1
votes
2 answers

Parse Apache logs for specific verbiage within the last hour

I'm looking to parse my /var/log/httpd folder which contains a lot of Apache log files. I'm looking for specific events within the last hour. I've tried the below, but I didn't have any luck. grep -R "$(date -d -1hour +'%Y-%m-%d %H')"…
Pat
  • 274
  • 3
  • 14
-1
votes
3 answers

Why a sed command stop my log file to be written to?

I launch on a Gnu/Linux server an application myApp: ./myApp &>myApp.log & Of course, the log file will soon become huge. I would like to use sed to reduce it (I'm aware of logrotate but my application is still a draft). But if I use such a…
Sylva1n
  • 3
  • 2
-1
votes
1 answer

Yesterday-access.log is pointing to a different directory

Under /var/log/ispconfig/httpd/quotednews.com/ folder, the yesterday-access.log is pointing to a wrong directory. yesterday-access.log is just a symlink to: /var/www/clients/client1/web2/log/20130626-access.log. The correct value should…
jaypabs
  • 823
  • 2
  • 10
  • 15
-1
votes
1 answer

What can cause drastic traffic jump on server?

In the last couple of days, between 3AM and 4AM my server traffic jumps tenfold, from 20MB to 200MB. I've checked the access log, and while there is significant googlebot activity, the difference is not so drastic in the mentioned period compared…
srgb
  • 145
  • 1
  • 7