Questions tagged [access-log]

A list of all the requests for individual files that people have requested from a Web site. The server access log records all requests processed by the server.

238 questions
137
votes
3 answers

Understanding Apache's access log

What do each of the things in this line from my access log mean? 127.0.0.1 - - [05/Feb/2012:17:11:55 +0000] "GET / HTTP/1.1" 200 140 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.5 Safari/535.19"
Boardy
  • 35,417
  • 104
  • 256
  • 447
21
votes
4 answers

Built in access logs in node.js (express framework)

I was wondering if node.js (or express framework) has any kind of built in access logging like grails has for example? I have grails application that runs on tomcat and it automatically generates…
Ivan Longin
  • 3,207
  • 4
  • 33
  • 42
15
votes
8 answers

access_log is huge, not being archived. how to reset it?

I have discovered that my access_log is occupying most of my HDD. It's over 200 GB in size. How can I reset it ? I am using Apache 2.2.3 on a CentOS server with Plesk. Thank you guys !
user290367
  • 161
  • 1
  • 1
  • 5
14
votes
3 answers

%D field in Apache access logs - first or last byte?

The Apache Httpd manual has a section on custom access log formats. One of these options is the %D field, which is documented as The time taken to serve the request, in microseconds. Can anyone tell me what exactly this is measuring? Is it…
skaffman
  • 398,947
  • 96
  • 818
  • 769
14
votes
9 answers

Spring Boot jetty/tomcat embedded access log configuration

I config logback.xml it work perfectly but logback-access.xml not work. in maven pom.xml ch.qos.logback logback-access in…
Ego Slayer
  • 1,987
  • 2
  • 22
  • 17
12
votes
2 answers

How to not log a get request parameter in the nginx access logs?

I require access logs enabled, but for compliance reasons, cannot log a sensitive GET request parameter's data in the access logs. While I know, I could parse the logs (after-the-fact) and sanitize them, this is not an acceptable solution --…
Domino
  • 361
  • 1
  • 2
  • 7
11
votes
3 answers

How do I configure the location and rotation of the Dropwizard access log?

My logging config looks like this: logging: level: INFO loggers: "com.example.broker": DEBUG "org.apache.http.wire": DEBUG console: threshold: ERROR file: enabled: true currentLogFilename: /opt/broker/log/broker.log …
mss
  • 1,804
  • 1
  • 17
  • 18
9
votes
2 answers

How to uninstall awslogs-agent-setup.py?

Only after using sudo python ./awslogs-agent-setup.py --region us-east-1 on my Amazon Linux AMI, I found this tidbyte of Caution from AWS docs: Do not update the CloudWatch Logs agent using the RPM installation method if you previously used the…
9
votes
1 answer

Nginx: can I use $server_name when specifying access log location?

I want to write a config file for an nginx virtual host that looks like this: server { listen 80; server_name www.my-domain-name.com; access_log /home/me/sites/$server_name/logs/access.log; error_log …
hwjp
  • 15,359
  • 7
  • 71
  • 70
8
votes
2 answers

How to disable logging images in nginx but still allow the get request?

I'm trying to log only java-script files request in the nginx access_log. I tried using the following code i found on this site: location ~* ^.+.(jpg|jpeg|gif|css|png|html|htm|ico|xml|svg)$ { access_log off; } the problem is it doesn't…
michael
  • 81
  • 1
  • 3
7
votes
1 answer

Tomcat 7 AccessLogValve maxDays not deleting access log files

I added the maxDays attribute to the AccessLogValve node of a Tomcat 7 server.xml, but access log files have not been deleted after restarting tomcat or restarting the Linux server. Am I missing something? The AccessLogValve config is:
webber55
  • 329
  • 4
  • 13
7
votes
0 answers

Spring-Boot: How to compress Tomcat Access.Log?

My access.log files are HUGE!!! -rw-r--r-- 1 app dev 745M Sep 24 00:00 access_log.2015-09-23.log -rw-r--r-- 1 app dev 772M Sep 25 00:00 access_log.2015-09-24.log -rw-r--r-- 1 app dev 527M Sep 25 17:54 access_log.2015-09-25.log They already rotate…
6
votes
3 answers

Server processing time in tomcat access logs

In order to debug a performance issue I enabled access logs in tomcat. We are not using any apache server. Its the embedded tomcat that we are using. I'm using following pattern for access logs. access-patten = %h %l %u %t "%r" %s %b %D %D = time…
user3626166
  • 311
  • 2
  • 4
  • 5
6
votes
2 answers

How to connect Apache log to graylog2 server

I'm using Graylog2 server as my application log server. But couldn't connect apache log to graylog2. Is there any guide to send apache log to graylog2 server or can someone help me to solve this ?
Batmunkh Moltov
  • 121
  • 2
  • 8
5
votes
2 answers

Count IP on URLs begins with "domain/product" in Apache access_logs

I try to count the access on a specific URL which begins every time with "shop/product?traffic=ads" with AWK, but I failed. The following code gives me a counter how often an IP address has accessed these URL: awk -F'[ "]+' '$7 ==…
nils50122
  • 63
  • 5
1
2 3
15 16