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
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
71k 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? ...
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
1answer
24 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
60 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
398 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
25k 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 ...
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 ...
0
votes
0answers
61 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
73 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: ...
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
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,...
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
30k 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
34 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
31 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
105k 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?
0
votes
0answers
20 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 ...
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)...
-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
354 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
90 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
57k 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
35 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
45 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
65 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 @...
2
votes
2answers
1k views

What is ideal directory for kafka messages

The default value of logs.dir=/tmp/kafka-logsin server.properties. Usually /tmp is avoided from keeping any important files and we are storing messages and offsets! Any particular reason why one may ...
2
votes
3answers
10k views

Apache daily logrotate

I want to create daily logs, but there's a small problem. Logs aren't being created for each day, rather they contain the previous log files. Here's my current setup, how can I change it so it only ...
0
votes
0answers
256 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 ...
30
votes
6answers
75k views

How can I display and log PHP errors on IIS7?

We're running PHP 5.2.5 on an IIS 7 Server and we're having problems making PHP errors visible... At the moment whenever we have a PHP error the server sends back a 500 error with the message "The ...
-2
votes
1answer
43 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.
4
votes
3answers
2k views

How do I programmatically convert putty logs to human-readable, searchable files?

Background: I have a Windows 7 workstation and use PuTTY for SSH connectivity to Linux servers with session logging enabled. I previously used the Printable output option but that has the benefit of ...
1
vote
0answers
52 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/...
0
votes
1answer
864 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 ...

1
2 3 4 5
21