Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

How to truncate the log file size without losing recent log files?

I want to reduce the log file size to the particular minimum size I tried the truncate command as below $ truncate -s 20M log filename But when I check the truncated file it truncates the recent logs ...
user avatar
0 votes
1 answer
16 views

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 ...
user avatar
  • 1,034
0 votes
0 answers
11 views

How to research what dominated my CPU for a few hours

I have a little server (CentoOS 7 running on Linode) that is normally very quiet. But while I was asleep last night it went nuts for about 6.5 hours running something. By the time I got a chance to ...
user avatar
1 vote
1 answer
149 views

How to limit log size on Elastic beanstalk with Corretto 8/Amazon Linux 2 platform?

We recently migrated one of our applications to the "Corretto 8 running on 64bit Amazon Linux 2/3.2.12" platform. Now we're seeing the issue that the log files are filling up our disk volume ...
user avatar
  • 207
1 vote
0 answers
66 views

Nginx Error logs: [error] open() "/etc/nginx/html/status/" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1

I am running an Ubuntu based LEMP server with the Nginx's google pagespeed, fastcgi, and modsecurity modules active. I am going through my Nginx error logs, and cannot figure out what these errors ...
user avatar
  • 103
0 votes
1 answer
43 views

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'. ...
user avatar
0 votes
2 answers
211 views

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 ...
user avatar
0 votes
0 answers
13 views

How can I write all commands from all users to a log file, preferably remote [duplicate]

If you need to give a contractor root access to a system, is it possible to log all issued commands and send them to a remote system? I appreciate that they can tear down anything on the local system ...
user avatar
  • 101
0 votes
1 answer
25 views

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 ...
user avatar
1 vote
1 answer
77 views

How to remove Exchange log files?

How to remove Exchange log files? These files really eat up my storage.
user avatar
0 votes
0 answers
32 views

PASSWORD - Password change log

Is there any way to check all password change logs for one specific user? I'm using macOS and since its based on Unix, I thought that this could be the place to post this question. Someone changed my ...
user avatar
0 votes
1 answer
75 views

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] [...
user avatar
  • 143
2 votes
1 answer
33 views

How to view and interact with terminal logs generated by AWS ECS

How do people view and interact with terminal logs generated by AWS ECS? I've been using the ECS task view so far, but I feel the UX is bad and the Cloudwatch UI has similar problems. How do others ...
user avatar
  • 125
0 votes
0 answers
61 views

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 ...
user avatar
0 votes
0 answers
20 views

HAPoxy log ip to another file

I would like to implement the following and unfortunately I can't get any further. When a certain url is called via HAProxy, I want to write the IP address in a separate file. This should be able to ...
user avatar
1 vote
0 answers
54 views

lastb/btmp does not work and is empty

I tried to clean the lastb/btmp and last/wtmp with cat /dev/null > /var/log/wtmp cat /dev/null > /var/log/btmp and then, I found the last/wtmp works as normal, but the lastb/btmp does not work, ...
user avatar
  • 11
0 votes
1 answer
237 views

WordPress MYSQL DB BINARY LOG - Droplet/SERVER Volume Increasing rapidly

My WordPress website uses Nginx. Recently I have noticed that server volume has increased from 8GB to 40GB. I have found that the WordPress MYSQL Binary Log is taking more space. Each second, database ...
user avatar
0 votes
1 answer
319 views

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 ...
user avatar
1 vote
1 answer
138 views

Splunk splitting multi-line log events by date

I have a mostly default Splunk config that is properly splitting most of my log messages from a standard Java application. We don't override any of the defaults concerning line breaks, line merging, ...
user avatar
0 votes
0 answers
98 views

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 ...
user avatar
  • 1
7 votes
1 answer
1k views

Apache2 access.log has multiple lines that say "combine"

I'm running an Apache2 webserver on Ubuntu 20.04.2 LTS. I noticed that my access.log has several lines that simply say combine on them, with no information about the request or anything else. There ...
user avatar
0 votes
2 answers
41 views

How to delete specific files? [duplicate]

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 ...
user avatar
0 votes
1 answer
85 views

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 ...
user avatar
0 votes
1 answer
582 views

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 ...
user avatar
  • 19
0 votes
1 answer
61 views

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? ...
user avatar
1 vote
1 answer
296 views

Log file for outgoing PHP requests (like access.log)

Is there a way to log all outgoing requests of PHP to a log file? I'm not looking for a way to debug a single script with tcpdump but to continuously log all PHP requests, so I can review them later - ...
user avatar
  • 128
0 votes
1 answer
82 views

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 ...
user avatar
  • 101
1 vote
0 answers
147 views

PHP error log is packed with multiple \x{00} at beginning of log, using NGINX & PHP-FPM in Docker Container

This is really just sort of an annoying behavior. I have a Docker Container that includes: NGINX, PHP-FPM and some other tools that I am using as a WebServer for a PHP web App, including a Laravel ...
user avatar
  • 139
0 votes
1 answer
40 views

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 <VirtualHost> with the ErrorLog instruction. The other is /var/log/httpd/error_log. ...
user avatar
  • 69
0 votes
1 answer
254 views

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 ...
user avatar
  • 147
0 votes
1 answer
206 views

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 ...
user avatar
  • 1
0 votes
0 answers
152 views

Apache access log not logging content-length for data served via PHP

I have a php script that handles files downloads, it sends content-length header properly and the browsers receive it. But in the Apache access log they show up as "-". In the past this used ...
user avatar
1 vote
2 answers
533 views

passing real IP address from one nginx instance to another and writing it in the logs

Moving a request to my internal nginx server I add to the call: proxy_set_header X-Real-IP $remote_addr; when I try to print this value in the log the internal nginx the container crashes: ...
user avatar
  • 501
0 votes
1 answer
46 views

Meaning of Log File (DDOS) [duplicate]

We are currently facing attacks (probably DDOS) on our server. The incoming network traffic goes from an average of 20Mbps to 1Gbps in just 2-3 minutes. The lines in our log files usually look like: ...
user avatar
  • 103
0 votes
1 answer
115 views

Are firewall logs filled with incoming SSDP requests typical for networks with a Windows 7 box?

While reviewing firewall logs that were sent to me from a Windows 7 box (the box is not a server) on a tiny network, I saw thousands of incoming SSDP UDP entries. The SSDP entries were nearly ...
user avatar
1 vote
1 answer
291 views

Null after logrotate copytruncate

I am using logrotate to manage my logs. As I have to manage a bunch of log files. My logrotate config looks like /log/typeA*.log /log/typeB*.log /log/typeC*.log{ daily rotate 7 ...
user avatar
2 votes
1 answer
100 views

Linux audit files(data=)

type=TTY msg=audit(08/12/2020 02:33:30.163:107) : tty pid=2709 uid=e4ws5 auid=root ses=1 major=4 minor=1 comm=sh data="/bin/bash -i",<nl> Can anyone tell me how in this audit.log there ...
user avatar
  • 23
-1 votes
1 answer
107 views

Which tool ISPs use for browsing logs?

It is known that ISP has to log various network data for various purposes, such as law enforcement needs. However, what are some examples of software tools used by ISPs to browse this huge amount of ...
user avatar
  • 101
-1 votes
1 answer
123 views

Can somebody help me on how to zip these individual log files within while loop

I am able to break o/p of a big logfile (filename.log) into individual log files of 1 min each (filename.log.140108) using while loop, but I want these files to be saved as zip files due to capacity ...
user avatar
  • 1
0 votes
0 answers
141 views

How to restore the error.log functionality in Apache, bitnami Wappstack?

I am using the Bitnami Wappstack 7.4.10 in windows, with PHP 7.4 and Apache 2.4.46 . By accident I made a script that had an infinite loop that also produced an error in every iteration, so the log ...
user avatar
  • 1
0 votes
1 answer
226 views

Copying Content from a file to another when a new line is added using poweshell script

I have a file named server1.txt and one more file named server1_copy.txt. In server1.txt, all logs will be added from the application. So whenever a new line is added in the server1.txt, we need to ...
user avatar
  • 123
0 votes
1 answer
80 views

How do I know who pings my server and keep a log of it?

I believe it is a very newbie question and I am one indeed. On AWS instance, how do I know who pings my server and if is possible to keep a log of it? I added the example output from the answer by @...
user avatar
0 votes
0 answers
1k views

Apache Error log format: how to find current format?

I am building a log parser in PHP and have trouble with apache error log format. With access log, it's easy to see the default LogFormat in apache config file then check in my virtual hosts for any ...
user avatar
  • 202
-2 votes
1 answer
99 views

How to know which file(file name) is transfered through FTP/SFTP

Think of a situation I transferred a file through FTP, in which log I can find the name of the file transferred. Kindly mention the location of the log file. Thanks In Advance.
user avatar
1 vote
0 answers
87 views

AWS Windows 10 Error 0x80070780: The file cannot be accessed by the system

We have log files stored on one of our AWS machines, however, a significant amount of the log files have been corrupted without any clearly apparent reason. When trying to open/read/write/rename/...
user avatar
0 votes
1 answer
927 views

How to detect PHP's fsockopen on your server logs?

As stated in the Title. How can I detect an incoming connection from PHP's fsockopen method in my web server logs? Which log file records this activity if it gets recorded at all. Server: Ubuntu 16.04 ...
user avatar
  • 113
0 votes
1 answer
24 views

"Snatching & preserving" versions of a file which gets overwritten repeatedly

On a system I'm working on, there are several processes which occasionally write a certain file (we can think about it as a sort of a log, although it's not quite that). Unfortunately, they all write ...
user avatar
  • 1,623
0 votes
1 answer
201 views

Exiting Virt-top shows error message in server logs

I see message in /var/log/messages after quitting virt-top command : libvirtd: 2020-07-11 12:36:22.206+0000: 3462: error :virNetSocketReadWire:1806 : End of file while reading data: Input/output ...
user avatar
3 votes
0 answers
2k views

Windows 10 KVM guests cause Ubuntu 20.04 host to crash (revised)

I got extremely confused and decided to re-write the question from scratch, so if some of the comments do not make sense, that is why. Apoplogies to anyone whose time I wasted. I am having a problem ...
user avatar
0 votes
1 answer
40 views

MariaDB 10.4.13 on Fedora 31

Learning MariaDB on Fedora 31. Installed successfully, able to connect; however, cannot seem to get the error log global variables to register. Steps taken: Created maria.log file in /var/log/ Added [...
user avatar
  • 1

1
2 3 4 5
22