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

6
votes
8answers
10k views

Linux monitor logs and email alerts?

I have a server with a faulty power button that likes to reboot itself. Usually there are warning signs, like the acpid log file in /var/log starts spamming garbage for about 10hrs or so. Is there an ...
0
votes
1answer
46 views

use do,while to make loop for each network adapter

I want to get RX and TX from each network adapter, so to get RX and TX from one network adapter, i used this commands : cat /proc/net/dev | grep 'wlan0' |awk '{if ($2) print $2}' | awk -v ...
4
votes
8answers
2k views

How can I get alerts when my site is down?

My blog is a custom ruby/rack application, and has been crashing randomly every couple of weeks. I sometimes don't notice for days, and I'd like to be notified immediately if it happens. What's the ...
0
votes
4answers
6k views

Timestamp in Tomcat logs is wrong

For some reason, the timestamp in my Tomcat logs is off. The system clock is correct, and set to PST, but the Tomcat logs appear to be using GMT. I haven't been able to find this setting ...
0
votes
1answer
70 views

Security Log eating RAM

I've been troubleshooting some hellacious memory issues on a lot of servers in my domain as of late. I recently found this program called RAMMap from Sysinternals and it showed that my entire ...
0
votes
1answer
55 views

How to log mail client with Dovecot / Postfix

Does anyone know if it's possible to have Dovecot or Postfix output the mail client of a user? In Dovecot's variables list, I cannot find anything in that direction.
0
votes
0answers
161 views

Logparser - Getting average response time from microseconds

I have one month's worth of web server log files in the following format: #Fields: date time cs-uri-stem cs-uri-query c-ip cs(Referer) sc-status sc-bytes time-taken 2014-03-12 17:34:02 ...
0
votes
2answers
137 views

nginx access.log only kept for a day

I'm using goaccess on Ubuntu Server 12.04 to view my analytics on my web server. I just run the following utility: goaccess -f /var/log/nginx/access.log However I'm only seeing one days worth of ...
3
votes
1answer
844 views

Different permissions per log file when using rsyslog

Is it feasible to define different permissions per log file, using rsyslog? $FileCreateMode applies to all, but I want different permissions for a specific file.
0
votes
2answers
266 views

How to collect remote windows logs as a non-admin

I am trying to collect logs from remote windows machines (Windows Server 2008R2 and Windows 7) and I can't figure out a way to do so in such a way that I should still be able to accomplish this ...
1
vote
2answers
157 views

Decode all records from wtmp

The Linux log /var/log/wtmp according to the man page http://linux.die.net/man/5/wtmp stores "utmp" events for many system events, like logging into it (LOGIN_PROCESS ut_type), changing runlevel ...
0
votes
0answers
64 views

Which Log file to check for strange Ubuntu server behaviour (offline for 5minutes at random times)

I am having problems with my Ubuntu 10.04.4 LTS server. My monitor application claims it goes off every morning at about 4 AM for 5 to 10 minutes. I am not sure where to start the troubleshooting ...
1
vote
1answer
122 views

Strange notice in apache error log

Today I found a strange notice in apache error.logs. The log tells me the following: [Mon Mar 24 06:26:34.872366 2014] [mpm_prefork:notice] [pid 32214] AH00163: Apache/2.4.7 (Ubuntu) configured -- ...
2
votes
2answers
999 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 ...
1
vote
1answer
382 views

Can not truncate / clear error.log on apache, but can do it manually with nano

I tried to clear the content of error.log file on my apache server with commands sudo >error.log sudo truncate -s0 error.log But in both cases I got -bash: error.log: Permission denied. I ...
0
votes
0answers
23 views

Exchange 2010 logs

Exchange 2010 sometimes doesn't delete its logs after full backup completion! Usually, we we just delete these logs (and we didn't face any problem because of that) However; is there another way to ...
0
votes
1answer
18 views

Get Used Binding in IIS log

I've around 300 domain name in same iis site, when I'm looking the log I cannot determinate which binding is used for each request. Is there a way to do this?
5
votes
2answers
2k views

Can postgres internal log rotation mechanism delete log files older than a certain time?

I am using posgtres' internal log rotation mechanism. I would like log files older than 30 days to be deleted. How do I get postgres to do this? If postgres does not support it, can I set logrotate to ...
10
votes
1answer
11k 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.
0
votes
2answers
66 views

DNS log on Windows Server 2008

In a Windows Server 2008 R2 machine, with DNS Server Role installed in a local network, can I read in some log which queries the network hosts have made? To obtain some list of the visited sites. If ...
1
vote
1answer
74 views

monitoring error rate with monit

Is there a way to tell monit to alert me if there are more than X errors (e.g. lines matching "ERROR") in a log file in a certain time? My use case would be: errors sometimes appear in my log file ...
1
vote
1answer
22 views

What is “iscraped” in Apache LOG (/var/log/messages)

For example this is all I see in the log. Log is now several GB big :S I've tryed to google for a solution, but I've found none :( Feb 10 09:41:53 vps2 iscraped[12861]: #SCRAPED# INFO: child started ...
2
votes
1answer
74 views

Clearing a log file owned by root

I need to clear a log file with: cat /dev/null > error.log The problem is that the file is owned by root -rw-r--r-- 1 root root 15505 Feb 9 15:08 error.log and this doesn't work $ sudo cat ...
1
vote
1answer
918 views

Ubuntu 11.04 server crash report

I am using Ubuntu 11.04 server addition for my application. During some testing my server has just crashed. After that I am restart the server. My problem is how can i find the reason of crashing? I ...
1
vote
1answer
1k views

Cutting down on Exchange 2013 .log Files in Mailbox Database folders [duplicate]

The logs found in: C:\Program Files\Microsoft\Exchange Server\V15\Mailbox\Mailbox Database Are these used to support the indexing or something important? I only ask because they take up a chunk of ...
4
votes
2answers
241 views

Opening an archived “Application Event Log” (Hidden Directory)

I'm an admin on the box. I've turned off all the folder options "Hide protected operating system files" and turned on "Show hidden files and folders". I can see this folder in Windows Explorer: ...
13
votes
2answers
34k 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 ...
0
votes
3answers
2k views

Why is logrotate not rotating logs Tomcat access logs on aws centos 6.3?

I have the following file in /etc/logrotate.d: /usr/share/apache-tomcat/logs/*.access { nodateext copytruncate daily rotate 7 notifempty postrotate EXT=`date --date='-1 day' +%Y-%m-%d` /bin/gzip $1.1 ...
0
votes
0answers
119 views

Windows Journal files $UsnJrnl too big

I have a server, windows 2008, running Raid 10 on 4 600GB hard drives. Server has been running for over a year and it is used for a database. Database size is around 780GB. We have been noticing that ...
0
votes
2answers
171 views

How can I decipher this HTTP PHP-request?

On my server I have serious HTTP an SSH attacks running. Most of them are brute force password checks or attemps of /etc/passwd retrievals. But some of them are trying to start the bash via plugin ...
1
vote
1answer
159 views

How can I use a remote admin tool (puppet or chef) combined with a sync tool (e.g. rsync) to send log files from several servers to a central server?

Summary How can I use a remote admin tool (puppet or chef) combined with a sync tool (e.g. rsync) and scheduler (cron) to send log files from several servers to a central server? Context Our ...
1
vote
1answer
99 views

How can I list the Source Network Address for failed FTP attempts in the Security Windows Log on Windows Server 2008 R2?

I manage a server running Windows Server 2008 R2 that constantly gets bombarded with brute force attacks via FTP. These failed login attempts show up in the Security section of the Windows Logs as ...
0
votes
1answer
33 views

Parse requests per OS type apache log

I'm trying to return a sorted list of requests per OS type, parsed from an Apache access_log file (not combined format as I need the user-agent info). Here's an example of the output I'm looking for: ...
2
votes
6answers
4k views

Get list of user-agents from nginx log

I have nginx log file, and I want to find out market share for each major version of browsers. I am not interested in minor versions and operating systems. I would like to get something like this: ...
1
vote
0answers
65 views

Directories converted to files

Our development team went to start HTTPD and got this: Starting httpd: (20)Not a directory: httpd: could not open error log file /etc/httpd/logs/error_log. Unable to open logs ...
19
votes
2answers
12k views

Understanding a Postfix log file entry

We have a Postfix hub and I'm trying to better understand the information in the mail.log file. I use tools like qshape, pflogsumm.pl and amavis-logwatch to summarize the log files, but I have still ...
0
votes
0answers
165 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
0answers
59 views

mysql server initialization error if I add 'log = “testfile_log.log” '

Guys I'm just trying to set my general log file set up like here http://stackoverflow.com/questions/5441972/how-to-see-log-files-in-mysql. so I added log = "testfile_log.log" as below to my.ini # ...
3
votes
4answers
2k views

Is this server hacked or just login attempts ? See log

Can someone tell what does this mean? I tried a command like lastb to see last user logins and I see some strange logins from China (server is EU, I am in EU). I was wondering if these could be login ...
2
votes
1answer
253 views

Can I Separate Postfix Mail Logs Into Seperate Virtul Host Logs?

My server is currently hosting 8 separate websites (and growing) of which four are actively sending email throughout the day and some bulk (opt-in) lists at night. I just completed setting up PTR, ...
2
votes
3answers
2k views

Failed Request Tracing XML fails to display in Internet Explorer (IIS 7.5)

I have installed the Tracing feature and enabled failed request tracing for a website, to debug a Classic ASP website. The XML logs are created upon occurring errors, however when I open them in IE, ...
1
vote
0answers
23 views

Is it possible to have multiple log files for one rsnapshot?

the company im working for use rsnapshot for its backup. I know where to put the log path in the conf file, but i was wondering if it was possible to have something like : /var/log/rsnapshot --> ...
1
vote
1answer
49 views

“GET /assets/)!==t&&(e.html(e.data( HTTP/1.1” 200 3538 “-” “Java/1.7.0_25”

I'm seeing GET requests like: "GET /assets/)!==t&&(e.html(e.data( HTTP/1.1" 200 3538 "-" "Java/1.7.0_25" in my logs for a box hosting a Rails app. Looks suspiciously like someone probing ...
2
votes
1answer
243 views

What fields need to be included when configuring IIS web logging according to PCI compliance regulations?

From what little I know about PCI compliance I need to be logging all web site activity and keeping said logs online for at least 3 months. What I have not been able to get a straight answer on, ...
1
vote
0answers
104 views

What are recommended permissions for files in /var/log?

I am working on tightening the security for various servers (mainly Debian Linux), and one of the tasks is to tighten permissions on files in /var/log so that files are not world readable. But there ...
0
votes
1answer
305 views

Log files too large and can not login to plesk

I am on a vps platform at Media Temple. Yesterday when i tried to log in via pleask, the message below appeared .... ERROR: Zend_Db_Statement_Exception: SQLSTATE[HY000]: General error: 1030 Got error ...
0
votes
1answer
31 views

Webserver Log Files and Server Speed

We have a windows 2008 server with Plesk as the Control panel. We have noticed a site has a 83GB log file as the hosting provider never attended to setting up the log file rotations. We have also ...
5
votes
6answers
5k 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
2answers
68 views

How to find out previous start-up time, so one can read `/var/log/dmesg.0` log?

That should be a quick one: I'm running a small server, and one day discovered, that one of the LXC containers inside is down. I started it again, but I want to find out, for how long it was down. I ...
0
votes
1answer
15k views

Get sessions' remote IP from Teamviewer log file

I'd like to know who has logged in to my machine and when. I have two TeamViewer log files: Connections_incoming.txt and TeamViewer7_Logfile.log. The first one is quite plain and lists, as its ...