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
5
votes
1 answer

User (%u) is missing from Tomcat Access Logs when using Spring Security

I run a sample Spring Security (hello world) web application in Apache Tomcat 8. What I'm trying to see is the user information in Tomcat Access Logs, but it looks that this information is not there. Example for access log entries: 0:0:0:0:0:0:0:1 -…
5
votes
0 answers

Less verbose access logs using expressjs/morgan

I am using https://github.com/expressjs/morgan to log HTTP requests and get log output like 169.228.10.248 - - [27/Jan/2019:11:10:39 +0000] "POST /api/Users/ HTTP/1.1" 400 92 "http://localhost:3000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64)…
bkimminich
  • 416
  • 3
  • 11
5
votes
2 answers

How to include time format with millisecond precision in Apache access log

How to include time format with millisecond precision in Apache Access Log. I tried to use: pattern="%h %l %u %{%d/%b/%Y %T}t.%{msec_frac}t %{%z}t "%r" %s %b". However it does not work.
Rakshith R Pai
  • 202
  • 1
  • 5
  • 13
5
votes
2 answers

How to filter access logs generated by tomcat under spring boot framework

We are using spring boot framework, generating access logs by embedded tomcat, the format of access logs is following the property below : server.tomcat.access-log-enabled=true server.tomcat.access-log-pattern="%h %l %u %t '%r' %s %b…
Ivan
  • 661
  • 1
  • 8
  • 15
5
votes
0 answers

How to specify response time in logback access logs for jetty?

I see that you can enable viewing response time for a given HTTP request in Jetty using NCSARequestLog by setting "logLatency" to true or setLogLatency(true). How can this be done via logback…
Avinash P
  • 59
  • 2
5
votes
1 answer

Apache (internal dummy connection) crashes server with too many logs

i know that this question is silly and often answered, but no solution worked for me by now. I'm using OpenSuse and Apache2 and added SetEnvIf Remote_Addr "127\.0\.0\.1" loopback SetEnvIf Remote_Addr "::1" loopback CustomLog…
user1574640
5
votes
4 answers

Monitoring Amazon S3 logs with Splunk?

We have a large extended network of users that we track using badges. The total traffic is in the neighborhood of 60 Million impressions a month. We are currently considering switching from a fairly slow, database-based logging solution…
Wandering Digital
  • 1,788
  • 2
  • 21
  • 27
4
votes
0 answers

How to log all headers in nginx server

How do I go about logging all of the headers client browser has sent in Nginx? I understand that I can log a specific header, but I want to log all of the headers. http { log_format upstream_time '$remote_addr - $remote_user [$time_local] ' …
inrob
  • 4,969
  • 11
  • 38
  • 51
4
votes
0 answers

embedded tomcat valve spring boot

I'm trying to configure the LogbackValve for getting access logs in case my Spring Boot based web application is running from embedded Tomcat. Following is the code for configuration: import javax.servlet.Servlet; import…
4
votes
1 answer

Get hostname of Http Referer in Nginx

I'm using Nginx as a web server. Is there any way to extract http_referer_hostname and put it in access log. For example: if $http_referer is "http://example.com/?somedata", how to log only hostname part (example.com) to the access.log line?
Tereska
  • 751
  • 1
  • 7
  • 25
4
votes
1 answer

500 error but no info about the link GET / HTTP/1.1" 500 "-"

I am getting the following 500 in my access logs in rare occasions IP - - [05/Nov/2013:14:44:52 -0600] "-GET / HTTP/1.1" 500 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)" IP - - [05/Nov/2013:14:44:52 -0600] "GET / HTTP/1.1" 500 - "-"…
Athanatos
  • 1,089
  • 6
  • 15
  • 32
3
votes
1 answer

Possible attack attempt on webserver, how to decode the requests to find out?

In my Apache access log I'm getting some requests like the following: [some timestamp] [some ip] [my servers ip] 400…
red-X
  • 5,108
  • 1
  • 25
  • 38
3
votes
1 answer

Why would an Apache Web Server access log not be in the correct format?

in class, we were assigned to parse through an access log and record all the successful attempts. In researching the Apache web server access log I ran into several instances, roughly 3/100,000 logs that the format was incorrect. The log would…
Seth Kania
  • 251
  • 3
  • 15
3
votes
0 answers

Spring boot tomcat access logs for management port not logged in console

Have added the following in my application.yaml server: tomcat: accesslog: enabled: true directory: /dev prefix: stdout buffered: false suffix: file-date-format: if i make management port same as app port…
3
votes
0 answers

It's possible to have multiple access log files, in Apache Tomcat, filtered by connectors?

In my Tomcat 'server.xml' I have a single service with two connectors for the same webapp: the first listening on port 8080 with the "HTTP/1.1" protocol; the second listening on port 8009 with the "AJP/1.3" protocol. Is it possible to configure…
Matteo
  • 31
  • 1
1
2
3
15 16