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
2
votes
1answer
2k views

Vshub constantly logging

I'm managing a small server with Windows Server 2012 R2 Foundation from HP on board. A few months ago, I've installed MSSQL Server 2016 with the latest Management Studio. Since then, there is an app ...
9
votes
7answers
10k views

Why would anacron not be running?

I have a Ubuntu system that has anacron installed. However I'm pretty sure it's not running. It's not running the commands in /etc/cron.daily to rotate the syslog files (I'm using sysklog, which has ...
0
votes
0answers
18 views

Can you anonymise all IP addresses in AWStats, and delete previous history logs?

In AWStats, is it possible to anonymize all IP addresses, so stats are generic as possible and reduce any links to personal information? Also, is it possible to disable AWStats from saving history ...
0
votes
2answers
2k views

Apache2 PHP Notice errors logged

My /var/log/apache2/error.log is filling up about 1GB per hour with PHP Notice errors. I've tried adding this: /apache2.conf php_value error_log none And in my /cgi/php.ini: error_reporting = ...
1
vote
1answer
36 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 ...
19
votes
5answers
10k views

Preferred format of file names which include a timestamp

As we all know "unix" can have anything in a file except '/' and '\0', sysadmins however tend to have a much smaller preference, mainly due to nothing liking spaces as input ... and a bunch of things ...
1
vote
1answer
1k views

Server Log Format

I'm trying to understand this server log line from cache_access.log. What does each field represent, specifically why are there three IPs listed and what does each represent? [HIT - - - -] 1.1.1.0,...
2
votes
1answer
2k views

kubernetes kubelet logging to files and logrotate

kubelet has an option to store log files in a log-dir (https://github.com/kubernetes/kubernetes/issues/21248). I start kubelet with the options --logtostderr=false --log-dir=/var/log/kubelet (I have ...
0
votes
0answers
14 views

Tomcat access log - is request-response time logged?

I have log files which look like this: 12.345.6.78 - - [19/Feb/2021:07:58:03 +0000] "GET /server/service HTTP/1.0" 200 993 host = vsrv1234.xyz source = /localhost_access_log.2021-02-19.txt ...
2
votes
1answer
168 views

Archive & analyse network logs from NetBSD on another machine

I want to use the the new NetBSD's NPF firewall on a gateway that also has the legal obligation to log the traffic for 1 year. To offload the gateway, I though to put the logging stuff (and IDS, quota ...
0
votes
1answer
1k views

Configuring Apache to log referrer url

I'm trying to make Apache server log the referrer URL in all requests including 404 and 200 for example someone has embedded an image hosted on my websites on his own website. the image is loaded ...
0
votes
1answer
32 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. ...
0
votes
1answer
1k views

Using auditd and retaining log files for 6 months.

Disclaimer: I'm not an accredited nor very experienced sysadmin but have been tasked with some sysadmin responsibilities Task: Find a way to log all account management activities (e.g., account ...
3
votes
2answers
1k views

Parse different lastlog[s]

I have the lastlog from 100 machines that I need to parse. Since I have them all centrally located, is there a way to parse these? Or do I need to go back to each machine and type the "lastlog" ...
0
votes
3answers
2k views

Apache2 - Can not open error log file

I'm installing Apache2 on Debian Wheezy. After the file's mod /etc/apache2/sites-available/default-ssl, I wrote apache2 for running the service. Sadly, the Linux shell backs this string: (98)...
3
votes
1answer
2k views

Is it possible to control the size lastlog pre allocates?

This question is in relation to the lastlog file size explained in this article http://www.noah.org/wiki/Lastlog_is_gigantic I understand it is being created as a sparse file hence the size. Here's ...
58
votes
13answers
72k views

How to monitor a windows log file in real time? [closed]

There is a already question that asks about opening a large log files. But my intention is different. Is there any application that monitors a log file and updates as it is updated in real time? ...
0
votes
1answer
42 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 ...
0
votes
1answer
1k views

Logrotate not working with “Maxsize” with cron job configured

Thanks in advance. I have a server acting as a syslog-ng server and receiving logs from multiple network devices. These files increase in size quickly so I created logrotate file with the below ...
0
votes
1answer
5k views

MONIT: Monitoring logfile on counting and changes of timestamp

I want to monitor a logfile and I am only interested in the "Received new block" lines. I need two different scripts to monitor The height, which should always be one number higher then the height in ...
0
votes
1answer
63 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 ...
12
votes
3answers
14k views

Fail2ban log filled with entries saying “fail2ban.filter : WARNING Determined IP using DNS Lookup:..”

My fail2ban log at /var/log/fail2ban.log is completely filled with entries saying: fail2ban.filter : WARNING Determined IP using DNS Lookup: [IP address] I think this may have begun after I changed ...
0
votes
3answers
2k views

Mysql server crashes without leaving any log behind

I've a mysql server (v5.6) running on ubuntu server 10 x64. It's always up and running with a medium traffic, but every while it crashes & restarts without lefting any log message behind, after ...
0
votes
1answer
6k views

No space left on device: Error writing to logs/access_log

Getting the following error: [Wed Aug 16 00:31:23 2017] [warn] [client 128.250.0.204] (28)No space left on device: Error writing to logs/access_log, referer: https://... The access log file seems ...
0
votes
1answer
400 views

Will logzilla installation stop the old log file

I have installed logzilla for monitoring the logs and its is storing logs in mysql database. I want to know that will my logs now only get entered in mysql or i can access them as normal as well ...
1
vote
1answer
3k views

Avoid logging in /var/log/syslog only using /etc/syslog-ng/conf.d/

How to tell syslog to send custom app's logs to a separate file and NOT into /var/log/syslog WITHOUT changing /etc/syslog-ng/syslog-ng.conf ? I have a custom application that sends messages to syslog'...
0
votes
1answer
2k views

How to run putty with -m command line *and* get log?

I'd like to launch putty and run my script automatically, it works, but I can't save the logs (I need them to debug)! The way I call putty: "D:\Some-Path\putty\PUTTY.EXE" -t -load "Server - 111.22....
1
vote
1answer
1k views

How to make logrotate keep the last week into the current .log

Is it possible to get logrotate to keep the last week of logs in the current file? for example : errors.log contains 30 days of logs after log rotate executes , I would have : errors.log with ...
0
votes
3answers
3k views

Sonicwall Email Security Audit Logs

I have a Sonicwall Email Security appliance from which I would like to extract the audit logs on a daily basis. Currently, I can only see how to get them manually by going to the web interface. Is ...
0
votes
0answers
64 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 ...
0
votes
3answers
1k views

How do I funnel all my EC2 apache logs to one server

Is the best way to get all my EC2 Web Server Instance Apache Logs in one place, to create a "LogServer" EC2 Micro instance and point all the Apache Configs to it? Not sure how to do this and ...
33
votes
8answers
26k views

Colorize Monitoring of Logs

I sometimes monitor apache and php error logs using tail under FreeBSD. Is there any way to get colorized output, either using tail or some other command line app? Alternatively, what is your ...
1
vote
3answers
7k views

Viewing previous query results from SQL Server Management Studio

I left my computer last night running a batch delete in the Query Editor of Sql Server Management Studio. I was running this to test the speed of the delete on a large database before we used the ...
0
votes
0answers
62 views

forward logfiles of any format using rsyslog

I want to forward the log-files of some applications on my linux-system (periodically) from server A to server B. I could probably use FTP but there are probably other tools which are more "...
3
votes
3answers
7k views

System logs are empty (/var/log/messages; /var/log/secure; etc)

I found that rsyslog stopped writing on logs (messages; secure; cron;etc) System information: NAME="Red Hat Enterprise Linux Server" VERSION="7.4 (Maipo)" ID="rhel" ID_LIKE="fedora" VARIANT="Server" ...
1
vote
2answers
76 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: ...
4
votes
1answer
1k views

Azure, Log4Net log file, FTP transfer, Response: 550

I have an ASP.NET MVC website on Azure using log4net file appender. I cannot download the log files with FileZilla because of the following error: Response: 550 The process cannot access the file ...
11
votes
6answers
31k views

nginx error log was huge, so I deleted and created a new one, now nginx won't start

I deleted the /var/log/nginx/error.log file, and then created a new one using: sudo nano error.log Doing ls -la shows that the error.log and access.log have the same permissions. When I try and ...
0
votes
1answer
37 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: ...
0
votes
1answer
40 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 ...
89
votes
5answers
107k views

My /var/log/btmp file is huge! What should I do?

My /var/log/btmp file is 1.3 GB in size. I've read that the file is "Used to store information about failed login". What does this mean for my server? And can I delete this file?
-1
votes
1answer
55 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 ...
0
votes
1answer
490 views

Haproxy log file with pfsense

I am trying to read the /var/log/haproxy.log file with the command: clog -f haproxy.log but nothing happens. No window opens. How do I see my error log? I’m on pfsense. Thank you so much!
2
votes
1answer
86 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 ...
-1
votes
1answer
91 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 ...
18
votes
6answers
58k views

How can I move /var/log directory

On our production server there is a small drive for the root mount point /, /var/log is taking too much space and I have to manually delete some files. How can I move /var/log/ to let's say /home/log ...
0
votes
3answers
5k views

nginx php-fpm how to disable log warnings?

I've a setup with nginx + php-fpm. I found in my nginx error log a lot of PHP Warning messages like this: 2016/03/17 20:57:23 [error] 23002#0: *114868 FastCGI sent in stderr: "PHP message: PHP ...
0
votes
0answers
46 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 ...
0
votes
1answer
48 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 ...
0
votes
1answer
66 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 @...

1
2 3 4 5
21