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

How to properly configure a custom logrotate configuration file?

For the first time today, I am trying to write a configuration file for logrotate. When I restart the logrotate service, I get the following error: logrotate.service: Failed with result 'exit-code'. If I delete my file and restart logrotate.service,…
theirman
  • 1
  • 2
0
votes
2 answers

nginx reverse proxy 404 with two servers

I have a problem with my NGINX configuration. I have two webservers running on windows servers. Which one is called from outside with 443 and then should be forwarded to the server with 41001. The second server block should be called the FQDN and…
0
votes
1 answer

does remote logging stops local logging

I'm using a Graylog server to centralize logs from network equipment and servers and I'm wondering if the Syslog service on the switches, windows machines, and other equipment, that service still going to save logs locally or just send them remotely…
Retro_0
  • 5
  • 3
0
votes
1 answer

php-fpm & Apache 2 - analysing PHP Message: logs

One of my servers has recently been switched to using php-fpm. The error logs now log 404's in a new format: [Sun Dec 26 00:11:37.827426 2021] [proxy_fcgi:error] [pid 25239:tid 140600822003456] [client 66.249.66.136:37676] AH01071: Got error 'PHP…
steve
  • 153
  • 1
  • 1
  • 9
0
votes
0 answers

Why Would a Log File Get Cut Off When Emailed?

I am setting up some local backups of AWS EC2 instances. The backups are set to run overnight via Windows Server 2012 R2 Task Scheduler. The basic flow of each backup is that an rsync copies the current instance to local storage, the local storage…
0
votes
1 answer

is it possible to use zabbix log[] key with zabbix_agent2

I have zabbix server 5.4.4 on my linux ubuntu 20.04 Also on my client machine i have installed zabbix_agent2 for 5.4.4 ( there is no zabbix_agent 1 running nor installed ) And zabbix_sender 5.4.4 Im trying to make a new item with log[] key Using…
0
votes
0 answers

Delay in NFS Client file Updation in NFS Server

We have an NFS server and our custom board which is our NFS Client. We are generating a log file as part of our custom application. This log file is getting generated in the root file system of the board(NFS client) immediately after the application…
Aparna
  • 1
0
votes
2 answers

How to delete specific files?

I'm running Ubuntu 20.04. I have a directory with million of files named like this master-stdout.log.20210801.024908 master-stdout.log.20210801.025524 master-stdout.log.20210801.064355 How can I delete all of master-stdout.log files?
TravelWhere
  • 117
  • 1
  • 5
0
votes
1 answer

Change the BIND query log file destination

I am trying to change the file that my BIND server stores query logs from the messages file in /var/log/messages to /var/log/named/named.log. When I restart the BIND service, for the changes to take effect, it fails to start because the service…
0
votes
1 answer

Is there a (forensic) way to list past events/actions of a certain *.exe malware program (PUP-Proxygate, possibly a Trojan)?

There is a folder with suspicious *.exe files on a Win 10 PC, and there are (external) protocols of potentially unlawful actions coming from that PC at a certain time in the past. The first suspicious action was network traffic to a sinkhole IP…
David.P
  • 119
  • 6
0
votes
1 answer

What's the number in square brackets, in the maillog for?

Here are some lines of my maillog. What are those numbers in square brackets telling me? Is that a pid for each individual email i get? So [11342] for example, belongs to the same message right? postfix/smtpd[11342]: connect…
zippy-flop
  • 21
  • 4
0
votes
1 answer

Apache log search keywords are not listed in referrer

Search keywords/phrases are not appearing in the referrer link in the Apache log. Is there an additional Logformat or other settings needed, what am I missing? Running Apache 2.4 on Ubuntu Here's the log format in the apache2.conf (default)…
can.do
  • 101
  • 2
0
votes
1 answer

Some questions about httpd log

First question: why there are two error log files? One is /var/www/mywebsite/error.log, which is specified in with the ErrorLog instruction. The other is /var/log/httpd/error_log. I cannot find where it is defined.There is a line…
William
  • 99
  • 1
  • 2
  • 11
0
votes
1 answer

What does ClientCancel mean in the HTTPERR log

In our IIS log files, I noticed on occasion there are pageviews missing. Further investigating this issue I took a look at the %systemroot%\System32\LogFiles\HTTPERR log files. Here I found that the pageviews missing have a 'ClientCancel' message. …
Nebu
  • 147
  • 1
  • 1
  • 7
0
votes
1 answer

How to rotate compressed log file on centos 7?

I have customized kafka server and the app is creating log files and configures log rotation. My problem is that I need to compress the rotation logs that were created. I tried to create new log rotation file on /etc/logrotate.d with the following…
Rasa
  • 1