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.
1,108
questions
-2
votes
2
answers
205
views
Where is some os logs in Debian 12
It seems that some of the system log files (/var/log/syslog, /var/log/auth.log, /var/log/kern.log, ...) have been removed in the latest version of Debian, Debian Bookworm. What should be done to ...
-1
votes
2
answers
60
views
How to Return the SQL_DB log files (.ldf) to the default Application
I have tried to open a "log" file of SQL DB with Windows Notepad application. Unfortunately, I forgot to remove the tick from the checkbox of “Always use the selected program to open this ...
0
votes
0
answers
24
views
strange nginx error log file: connection to a private ip from a public ip
On a vps I have configured a vpn (wireguard) where the IP is 10.6.6.100.
I found this strange log on nginx error.log:
2023/11/01 03:52:22 [error] 2821800#2821800: *135455 open() "/usr/share/nginx/...
0
votes
0
answers
17
views
squid reverse proxy log
we have an exchange server behind a squid reverse proxy
there is many failed account events in exchange, the exchange event viewer display the IP address of the reverse proxy as source address in ...
0
votes
1
answer
39
views
How to stream Kubernetes log files to a different location using fluent-bit?
I have a requirement where I want the log files of all the Kubernetes containers stored in the location /var/log/containers/ to be kept persistent even after a cluster restart or node issue. I have ...
0
votes
0
answers
16
views
What format log files is Plesk interpreting?
We are creating our own log files but are unable to fit it into a format that Plesks seems to like. Currently it looks like this for format "%s - - [%s] \"%s\" %s\r\n",
0
votes
1
answer
58
views
CentOS 7: Postfix logs got cleared when running history -c. How can I investigate what happened the day the log was cleared?
By default, running history -c has no way of also deleting /var/mail/maillog, right?
How can I investigate what happened the day the log was cleared, or (by definition) when the new maillog was ...
0
votes
0
answers
96
views
Docker container logs not found after dockerd restart
I am running a Ubuntu 18.04 server with Docker (v20.10.12) containers running on it. I have about 5 containers running at a time and they consume about 1.5GB of memory on the regular, while my server ...
2
votes
1
answer
73
views
Tail log files on multiple servers
Scenario: I have load balanced servers running a web application. To debug I'd like to see the output of the same log file (such as the nginx log) combined into a single stream, e.g. a tail -f on all ...
0
votes
1
answer
26
views
Notifying an administrator when mail-server wasn't able to upload logs to ftp-server - if condition is failing
I am currently working on a solution, that would notify me whenever my mail-server isn't able to transfer files to my ftp-server. (Right now my logs get rotated once per night and immediately uploaded ...
1
vote
1
answer
51
views
how to make logrotate take filesize into consideration when rotating
Lets say I want to logrotate when the filesize is 1kb . Before the run if the filesize of the log is 4kb I expect logrotate to create 4 different log files.
Before:
something.log (4kb)
What I expect ...
3
votes
2
answers
785
views
How to automatically change the name of a file on a daily basis
I am new to Linux/CentOS and right now I am running into a little problem.
My CentOS7 Server logs all Maillogs, via Logrotate, on a daily basis and moves them to the folder /var/log/old_maillogs. ...
0
votes
1
answer
38
views
OPTIONS method gets 200 status instead of 301 in IIS10 logs
I'm trying to learn why OPTIONS method requests (presumably CORS preflight requests) are logged as 200 status while all GET method requests are logged as the expected 301 (moved permanently). The only ...
0
votes
1
answer
76
views
Using fail2ban to scan for SSH Accepted Connections and write the username to auth.log
I have a small server that authenticate users as root using their ssh-keys stored in authorized_keys file. I also run fail2ban.
I made a convention to have a nickname written after the public_key of ...
0
votes
0
answers
50
views
Split logging on rsyslogd
My goal is to send all logs to one source remote and still log local but then send all the AuditD logs to its own source on port 20002. But for some reason, my auditd logs are still ending up with my ...
0
votes
0
answers
51
views
Forwarding log of a specific cPanel user from rsyslog.conf to an IP address using TCP
Server is on CloudLinux, cPanel, LiteSpeed, imunify and CSF as firewall. i have multiple domains hosted on my server. I only want to forward one user (all) logs to an specific IP address.
Using this ...
0
votes
1
answer
49
views
Postfix cleanup logs not showing all mail ids in Cc header
my main.cf file contains
line_length_limit=4000
append_dot_mydomain = no
#delay_warning_time = 4h
readme_directory = no
compatibility_level = 2
transport_maps = hash:/etc/postfix/transport
...
-1
votes
1
answer
116
views
Perl script to restart Apache in Windows
Is this all I need to restart Apache from within my Perl script?
system("C:\\Apache24\\bin\\httpd.exe -k restart");
I tried to verify that this actually restarts Apache, but cant find my ...
1
vote
0
answers
182
views
LogStash and parsing OPNSenser logs
My logs are coming in as follows:
<134>May 24 14:39:32 edge.internal filterlog[2535]: 78,,,ffe6d10d1f27a42fc0edc3abb3a6d333,ovpnc1,match,pass,out,4,0x0,,63,61951,0,DF,6,tcp,60,10.8.0.2,20.44.17....
0
votes
2
answers
197
views
apache remove wget for better security
Im no expert at IT or apache but I have used linux for years.
Ive done my best to harden/secure my server online which I use for a mobile app which
needs to serve up its content etc.
Ive noticed some ...
0
votes
0
answers
142
views
How to restart a windows service when a log file has not been modified for a period of time?
I have a windows service and it's running a bit problematic. Sometimes it crashes or sometimes connection to the server is lost but it does nothing for it. Therefore, I have to check the logs of the ...
0
votes
0
answers
92
views
Trying to understand these apache log lines : 200 response followed by a 404 error for the same file
Looking at some logs from our apache server (2.4 on unbuntu 18.04) for one of our clients, and there are some lines that caught my eye and that I don't understand at all. I've been trying to explain ...
0
votes
0
answers
13
views
pt-query-digest on large slowlog files runs slow - only singlethread
I have large slowlogfiles generated by percona 5.7 packed by zstd. Its for test, logging all queries, query time is set to 0s
I need it process quickly than in 12 hrs :) The pt-query-digest is ...
0
votes
0
answers
119
views
Is it safe to delete folders/files under run/log/journal (not var/log/journal)?
I'm running CentOS in EC2 and I saw this post but my path is run/log/journal and not var/log/journal. And there're two folders under journal - e76430a3b6eb....d3d1dc73 and b30d0f2110ac....3ce88f
So, ...
0
votes
0
answers
69
views
favicon.ico in referer field in access.log
There is this line in my nginx access.log:
54.201.239.190 - - [18/Dec/2022:22:34:56 +0100] "GET / HTTP/1.1" 200 64
"http://example.com/favicon.ico" "Mozilla/5.0 (X11; Linux ...
0
votes
1
answer
255
views
Import past log files into Sentry
We're exploring sentry.io
Is it possible to import historical logs into Sentry?
We're also looking at Prometheus and Grafana, and it looks like general SQL queries work for them, but it seems to me ...
1
vote
1
answer
542
views
How to trace/find "lost" emails with log files and doveadm?
One of my clients is missing some emails and I try to find what is going on, but my knowledge is limited. Have asked the server support guys, but they say all is fine and attach just the logs (which I ...
0
votes
1
answer
53
views
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 ...
0
votes
1
answer
465
views
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)...
0
votes
1
answer
225
views
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:...
-1
votes
2
answers
545
views
ESXi rotate logfiles by hours
ESXI: 70u2
Hi,
I can't found "/etc/logrotate.conf", I understand he don't exist in this version.
In the file "/etc/vmsyslog.conf" I can specify some options, the split by size has ...
1
vote
0
answers
297
views
Why are docker container logs sent from ec2 to cloudwatch in batches using awslogs driver?
I have three docker containers running; server, proxy server and a daemon checking for changes between two databases. I've used docker-compose and an ec2 instance for testing. I would like to stream ...
0
votes
1
answer
41
views
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 ...
0
votes
1
answer
319
views
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:
<virtualHost *:443>
...
0
votes
1
answer
746
views
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 ...
2
votes
2
answers
941
views
mariadb cant turn on error_log
I want to turn on error logging for mariadb to resolve "unable to connect to database" errors
I can turn on General Log and Slow Query Log in mariadb no problem.
However when I restart ...
0
votes
1
answer
359
views
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] [...
0
votes
1
answer
465
views
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(...
0
votes
1
answer
1k
views
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&...
0
votes
1
answer
1k
views
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 ...
0
votes
0
answers
57
views
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. /...
0
votes
0
answers
179
views
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 ...
3
votes
3
answers
10k
views
How to truncate the log file size without losing recent logs?
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 ...
0
votes
1
answer
127
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 ...
3
votes
3
answers
2k
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 ...
1
vote
0
answers
1k
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 ...
0
votes
1
answer
3k
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'.
...
1
vote
2
answers
3k
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 ...
0
votes
1
answer
235
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 ...
1
vote
1
answer
437
views
How to remove Exchange log files?
How to remove Exchange log files?
These files really eat up my storage.