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
0
votes
1 answer

Is PHP's error_log dependent on the OS, config file or something else?

I have two HTTP servers: Live LAMP server. Local WAMP server. When an error occurs on the live server PHP will generate an error_log file in the directory of where the script error occurred. The local server does not do that. Is the error_log…
John
  • 134
  • 10
0
votes
1 answer

which entries in the auth.log could be dangerouse and which not

which kind of entries in the auth.log are not good or from which one should i been scared? Oct 3 05:00:01 webv2 CRON[25757]: pam_unix(cron:session): session opened for user www-data(uid=33) by (uid=0) Oct 3 05:00:01 webv2 CRON[25757]:…
wtf_1x
  • 3
  • 1
0
votes
0 answers

Nginx+Passenger error log, Checking whether to disconnect long-running connections for process

I found these errors in my Nginx error logs. I use a dedicated server (Ubuntu) with 2 websites/apps (running also a sync engine with APIs) [ N 2022-10-21 11:40:55.2857 5800/T3 age/Cor/CoreMain.cpp:1147 ]: Checking whether to disconnect long-running…
alex.bour
  • 111
  • 1
  • 5
0
votes
0 answers

how to umount or remount /var/log on running system?

I experience filesystem problems on the filesystem where my /var/log is bound. I wanted to umount it or remount to another location in order to check and repair it. Unfortunately, there are many open files here, opened by system processes:…
ardabro
  • 187
  • 1
  • 7
0
votes
1 answer

What do the numbers after the HTTP/1.1 or HTTP/2.0 status codes signify?

What are the numbers after the 200, 300, ... status codes and how can I find information about those numbers? For example the numbers 2176, 30125 and 6566 below: 62.240.134.168 - - [04/Oct/2022:09:27:45 +0200] "GET /CSSSamples.css HTTP/2.0" 200 2176…
trash2
  • 33
  • 1
  • 1
  • 6
0
votes
1 answer

Way to save apache losgs with IP Info

i use this command to live see apache logs: sudo tail -f /var/log/apache2/access.log I use a Ubuntu 18 VPS wich i have root access. this logs are also saved to the access.log file true? (because when i search some string in the live mode i find some…
Diego
  • 1
  • 2
0
votes
1 answer

Can't get dumpio on Apache 2.4 Oracle Linux 8.6 php 8

I can't get dumpio to log POST request data. httpd.conf: ... Include /etc/httpd/conf/httpd-le-ssl.conf ... No LogLevel or dumpio related stuff in there. httpd-le-ssl.conf: ... ErrorLog…
jamacoe
  • 193
  • 2
  • 7
0
votes
1 answer

Can I see a printer's log about who connected to a network printer?

There's been a problem at work about a given printer that you have to connect to using a printers' server. I don't control the server itself, but if there's a log that I can require to the server administrator, then maybe I could find out who added…
newbie
  • 101
  • 5
0
votes
1 answer

How to log PHP file name in Apache log?

I'm using Apache 2 + PHP 8, and have PHP warnings and errors written in Apache error log files. Here is an example of logs being written: [Wed Aug 10 08:15:54.502158 2022] [php:warn] [pid 15437] [client 64.124.8.31:24644] PHP Warning: Constant…
0
votes
1 answer

Samba Server Doesn't logging

I'm trying to logging with Windows in a Samba Server, but it does not connect. When I look in the logs it gives me the message [2022/07/20 08:35:19.749737, 0] ../lib/param/loadparm.c:1844(lpcfg_do_service_parameter) Ignoring unknown parameter…
0
votes
1 answer

Centos 7.8 /var/log/messages fills the disk

I have a VM that works on the Azure cloud. It is Centos 7.8. The problem which I have is related to the /var/log/messages file. It works for several days without an issue. Then, the "messages" file gets bigger and bigger. It gets only one message…
0
votes
1 answer

Two separate access.log files with different format

Is it possible to have two separate log files, each saving logs with different format? For example, will something like this work? events{} # See blow link for Creating NGINX Plus and NGINX Configuration Files #…
Kosmylo
  • 125
  • 7
0
votes
0 answers

Email admin scripts

I have been working on scripts to help me administer email servers. This works pretty well on Postix/Debian server to search logs for sent emails. You can even use grep to search the reasults ie. /root/bin/search-sent-emails.sh |grep…
SamTzu
  • 33
  • 6
0
votes
0 answers

Apache logs AWS EC2

I'm new to AWS and just created an AWS EC2 instance using Ubuntu to host a website. The website is up and running but whenever I got in /var/log/apache2 to view the access.log file, it shows the public ip address when I access the site on my phone…
0
votes
1 answer

Is it possible to pad columns in nginx access/error logs?

I've recently enabled ipv6 on my site, and while I don't often have a need to manually look at an access_log file, on the occasion that I do it's now very jarring that my first (IP) column is sometimes 7 characters long and sometimes 39…
Codemonkey
  • 1,086
  • 4
  • 19
  • 41