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.

learn more… | top users | synonyms

1
vote
2answers
344 views

Unable to get Rsyslog structured data in syslog message

I am new to syslog module. I am trying to log messages with structured data by using this parameter in template. But it is showing null value for structured data. I am working with rsyslogd 5.8.11 ...
1
vote
1answer
102 views

Change the logs directory for CentOS

The default directory in which the OS writes its logs is '/var/log/', I want to change that directory to another one that I create. How can I do that? Note: I tried changing the paths (/var/log/.) ...
0
votes
1answer
43 views

How can I avoid non-existent file -systematically- requests?

This is my apache httpd log: [Wed May 13 18:29:48 2015] [error] [client 108.162.213.59] File does not exist: /www/html/ui/core.min.js [Wed May 13 18:29:48 2015] [error] [client ...
1
vote
2answers
43 views

Apache Server Log File Issue

I'm a programmer for a company and their server specs are off limits to me due to IT restrictions. I know it's an Apache server running off a Linux environment. I have permissions to add/remove files ...
1
vote
1answer
2k views

ForFiles.exe Not Working In Task Scheduler 0x1 Result?

I have no idea why it is not working in Task Scheduler because if I run the same code in a batch file it works fine? I am putting the following into task scheduler on a Win2008 R2 machine and I keep ...
2
votes
2answers
4k views

Logformat for catching asked hostname in a *.domain.com scenario?

I have an Apache 2.2 VirtualHost with a *.example.com ServerName. This is required for my scenario, all subdomains are handled with the same site. Now, in the access log, I am trying to figure out a ...
3
votes
3answers
4k views

nginx access logs ignore certain requests

I'm running nginx behind haproxy (running on the same server). I've configured haproxy to use a simple html file on nginx to verify the service is up, since I don't have/want a valid "/" URL on this ...
1
vote
0answers
555 views

Protocol not available errors in squid3

I set up a transparent cache proxy on my Raspberry Pi with Squid3. Everything seems to be working fine and Squid is caching everything it's supposed to and working perfectly. The cache.log is filled ...
7
votes
4answers
13k views

In unix, what's the best way to reduce the size of a massive log file that is actively being written to?

On a linux server, I want to reduce the size of a log file which is several GB big. Cutting off the top half, or maybe the first million lines would work.
1
vote
2answers
237 views

Modifying LogFormat in Apache

I need to modify the LogFormat in Apache in order to add the X-Forwarded-For header and log clients' real IPs. I attempted to edit that in httpd.conf file but I then found two separate parts for the ...
1
vote
2answers
71 views

nginx log when specific referrer is present

Because someone steals content from our website, I need to create additional log file, that logs only if http_referrer contains specific domain. Currently I have this: if ($http_referer ~* ...
4
votes
4answers
16k views

Linux - martian source in /var/log/messages

I keep getting these messages in /var/log/messages : Mar 8 23:17:25 saas1 kernel: martian source 169.254.1.1 from 169.254.95.118, on dev usb0 Mar 8 23:17:25 saas1 kernel: ll header: ...
1
vote
2answers
3k views

Postfix log showing same error every 5 minutes

I have an error in my mail.log (/var/log). I'm using postfix. I am only using it to send email from my web app (Python/Django) for registration (I haven't configured for inbound, the MX isn't pointing ...
12
votes
2answers
27k views

How to enable error log in lighttpd properly?

I have a Centos 5 system with Lighttpd and fastcgi enabled. It does log access but does not log errors. I have Internal Server Error 500 and no info in log and when I try to open not -existing file ...
1
vote
1answer
164 views

What does READ_CONTROL mean in the Security event log?

I have been asked to create audit record of file accesses. By the log is simply overwhelming. A single double click of a text file opening in notepad creates more than 10 log entries with Event Id ...
0
votes
0answers
116 views

Baidu trying to access .ftpquota in Nginx access.log

When I look at the Nginx access.log there are always several attempts from Baidu to access the file .ftpquota. When I do a ls -a I can see that the file even doesn't exist. I don't use FTP. Here are ...
2
votes
1answer
626 views

Techniques for Filtering Spiders/Bots during Log Files Analysis

I'll begin by telling you what we do. The measures we have implemented catch a lot of spiders, but we have no idea how many we are missing. Currently, we apply a set of measures that are obviously ...
1
vote
1answer
1k views

Merging Large IIS Logs

I am planning on using Webalizer to analyze and graph our IIS logs, but because we have a server farm Webalizer requires me to make sure that all of the logs are in chronological order (or else it ...
3
votes
3answers
168 views

What criteria do you use to determine if someone is hammering your server?

When you go through your logs, what criteria do you use to determine if it's you (ie: you need to beef up your server/s) or them (ie: they're verging on a DoS)? How many connections/second would you ...
-3
votes
1answer
103 views

Why same request for hundreds times in access log

I don't know what comes to this, and how to prevent it. Look at the time, it keep on with the same request for hundreds times. Not just those particular IPs but some others too. How do I prevent this. ...
2
votes
2answers
3k views

How to make apache log files readable by apache

I would like to make apache access log file readable by www-data (the user running the webserver) so I can serve it over HTTPS, to save me the trouble of SSHing to the server every time I want to ...
0
votes
1answer
2k views

How to see the content-type of a response in Nginx log file

Is it possible to see the content-type of a response to a request in Nginx's log file? At the moment, this is what I see for the request in question: 127.0.0.1 - - [23/Nov/2012:10:17:19 -0500] "GET ...
0
votes
1answer
270 views

Do DFS logs contain folder permission changes?

I have a DFS server sharing files and want to see when an admin gave read/write/full control to a user in a DFS share. Is there any way I can view this? I have checked in C:\Windows\Debug but the log ...
2
votes
2answers
5k views

How to get rid of network broadcasting of port 17500

I get the following in my VPS logs Aug 11 11:29:22 sv1254 kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:f6:f3:49:7e:0a:54:08:00 SRC=178.162.203.19 DST=255.255.255.255 LEN=131 ...
0
votes
3answers
2k views

kern.log bandwidth and syslog filling up with bandwidth lines

I'm using Ubuntu 11.04 and my kern.log, bandwidth, and syslog files are filling(And completely consuming my hard drive) with this stuff Apr 18 20:20:23 main kernel: [1886527.503932] BANDWIDTH_OUT:IN= ...
-1
votes
2answers
380 views

Exim log file errors

1- What is the meaning of these lines in /var/log/exim/main.log? I have these lines repeated more than 700 times in main.log 2015-03-16 21:30:57 TLS error on connection from [192.0.2.1] ...
12
votes
2answers
23k views

How to forward specific log file outside of /var/log with rsyslog to remote server?

How can I forward message from a specific log file like /www/myapp/log/test.log with rsyslog client to remote rsyslog server? This log file is outside of the directory /var/log.
1
vote
1answer
4k views

How do you handle log rolling (or truncation) for unix services that don't handle it themselves?

In my particular case it's the mysql general log and slow query log; neither is critical to operations, just there for troubleshooting if need be, and mysql doesn't have a mechanism for rolling or ...
0
votes
1answer
509 views

wireshark extract w3c log file

Does anyone know how I would go about extracting urls in w3c extended log format from a wireshark pcap capture file?
4
votes
3answers
2k views

Centralizing PHP error logging with syslog

I have a PHP application that is running on 20 web servers. It's silly to check every servers' PHP error log. I'm planning to centralize the error logging on one (not a web server, a server just used ...
1
vote
2answers
160 views

Deleting phpMyAdmin setup.php

My website log files show many requests looking for: /phpmyadmin/scripts/setup.php I have phpmyadmin on my website. Am I supposed to delete that setup.php file or just let them keep on requesting ...
0
votes
1answer
86 views

Apache2 client ip and port

Do anyone know if Apache by default is logging the port number of a client and were to find it. I know that it log the ip, but for mobile users there can be several devices with the same ip which uses ...
0
votes
1answer
558 views

Centos - /var/log/secure records nothing

I have accidentally remove /var/log/secure, I try to recreate it but it still stays blank after several connections. On a server where everything works, with ls -l I have: -rw-------. root:root ...
10
votes
4answers
9k views

Fast extraction of a time range from syslog logfile?

I've got a logfile in the standard syslog format. It looks like this, except with hundreds of lines per second: Jan 11 07:48:46 blahblahblah... Jan 11 07:49:00 blahblahblah... Jan 11 07:50:13 ...
0
votes
1answer
41 views

What user must own apache log directory

If I define apache log directory for a vhost, what is the user that I should make the owner? Should be apache user, or can be root?
-1
votes
1answer
258 views

Is rsync more robust than scp for connection reset?

On a big corporate firewall-ridden network, we have traditionally used scp to copy a few brand new files over from one machine to another, as part of the log-file rotation and analysis routine. ...
0
votes
0answers
292 views

Apache error log not showing full path of 404 failures

If I have a working path like /gallery/landscapes and I try to access this inexistent url: /gallery/landscapes/whatever I see the 404 error in my browser but the apache log says that I had an ...
1
vote
2answers
258 views

How to use tshark or tcpdump to calculate bytes transmitted

I am using this command with tshark: tshark -r pcapfile "tcp and ip.src==192.168.1.1" -T text -V -x | grep 'Total Length' This essentially parses the pcap for only connections from the source ip ...
2
votes
1answer
266 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 ...
3
votes
1answer
3k views

How can I make Webalizer work with rolling apache logs?

I am using Webalizer to view my site stats, and it's working ok with one exception; I have log rolling configured so my log directory looks something like this: /var/log/apache2$ ls access.log ...
2
votes
1answer
412 views

unix logrotate specify chunk size

How can I specify output file size which I want after rotation? For example lets say I want to run logrotate when log file reaches 10MB and I want to split this log into chunks which are 1MB max. I ...
2
votes
1answer
847 views

Postfix/Dovecot: SASL LOGIN authentication aborted

I use Postfix together with Dovecot (auth/LMTP) on my mailserver. Everything is working fine, but I notice several warnings in the log-files each day: postfix/smtpd[4169]: warning: ...
3
votes
1answer
475 views

Rotate log files with timestamp in file name

I have a log directory that my app writes into. It creates a log file like this: 2015-01-22-10-full-activity.log 2015-01-22-11-full-activity.log 2015-01-22-12-full-activity.log ...
1
vote
2answers
69 views

File Changelog Generation Windows Server 2012

I am wondering if anyone might know a way I could set up the automatic generation of a file changelog in a directory in windows server 2012. We have a collection of word, excell, and pdf files that I ...
2
votes
4answers
894 views

How can I forward an application log to a remote log server?

I have an application which writes its own log file in /var/log/app/app.log. How can I forward these logs to a remote Rsyslog server?
10
votes
2answers
4k views

Strange Bittorrent Log On My Server

I don't know if the following log has something to do with my site being down sometime. I have lot of websites on my server and they don't have any logs like the following: 117.169.1.85 - - ...
0
votes
4answers
6k views

error in php not logging or displaying

I can not get any errors to display on screen on write to a log file. When check phpinfo() print out I have same value of master a local for display_errors On display_startup_errors On error_log ...
0
votes
1answer
107 views

Previous Log Deleted /var/log/secure

When I checked /var/log/secure, only logs for current date was present. Why logs for previous date is not present? Any reason on this? thanks
0
votes
1answer
5k views

Rotating Mail Logs on Debian server

Mail Logs on Debian systems do not use the regular /etc/logrotate.d scripts to rotate them. I want to force my mail logs to rotate daily (no matter how small), and compress the results, so that the ...
10
votes
1answer
3k views

iis 7 log file directory

under my log directory I have a list of subdirectories: W3SVC1, W3SVC2, W3SVC3, etc, etc. How do I match those folders with each website on IIS?