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.
Questions tagged [access-log]
238 questions
2
votes
1 answer
php-fpm access log should contain custom variables set from php application
Pre
Current setup is made with apache+mod_php. We are able to put in apache access log userId and sessionId set from the code by using apache_setenv and then in access log we got:
"\"%{USER_ID}e\" \"%{SESSION_ID}e\""
This is necessary for us to be…

gsone
- 1,188
- 8
- 25
2
votes
1 answer
Processing AWS ELB access logs (from S3 bucket to InfluxDB)
We would like to process AWS ELB access logs and write them into InfluxDB
to be used for application metrics and monitoring (ex. Grafana).
We configured ELB to store access logs into S3 bucket.
What would be the best way to process those logs and…

Oleksandr
- 435
- 2
- 7
- 16
2
votes
3 answers
Tomcat Access Logs in Spring Boot for different operating systems
Recently I've started to work with Spring Boot and have a following question:
We have different environments (like stage, development, production) and all of them can be run on windows or linux.
So I've created application-stage.properties,…

Mark Bramnik
- 39,963
- 4
- 57
- 97
2
votes
1 answer
Nginx separate Access Log for each domain
I use Nginx in combination with Typo3. My Typo3 installation has about 8 domains. Everything works like a charm. Now I have the problem that I want to use AWStats working for each domain but I don't know how can I separate the Access Log for every…

Philipp Ulrich
- 39
- 1
- 3
2
votes
0 answers
exclude URL from Apache Log
I have the following in my httpd.conf file, in order to exclude the url from being logged as it is a status checker:
SetEnvIf Request_URI "^/status_check.php$" dontlog=1
CustomLog "logs/access_log" combined env=!dontlog
However this is not stopping…

ianv
- 105
- 1
- 8
2
votes
1 answer
apache access log high byte size returned to client
I can see this in my access log
66.102.6.215 - - [27/Oct/2016:05:05:27 +0000] "GET /wp-content/cache/minify/d9389.css HTTP/1.1" 200 80460 "https://example.com/" "Mozilla/5.0 (Linux; Android 6.0.1; SAMSUNG-SM-G935A Build/MMB29M) AppleWebKit/537.36…

Andrei
- 177
- 13
2
votes
1 answer
Openresty custom json access log
I would like to write JSON strings on every request into the access logs, so it would be easier to consume it later.
I am using the print() exposed by Lapis/Openresty, however I would like to over ride the timestamp, log level and other information…

Chandramouli Soorian
- 21
- 3
2
votes
1 answer
How do I log security activities for request and different event in spring?
I have implemented spring security oauth2 to protect different services.
Now I need to log client ip, client id, request service, request URL and Event type like "Authentication Failure", "Authorization failure" and so on.
I came up with…

Lex Xiao
- 31
- 3
2
votes
2 answers
Insert Nginx Access Logs Into MySQL Database
I am interested in storing every nginx access log into a mysql table instead of the text file.
I need this so I can perform actions on the access log.
How would I go about doing this.
Is this even possible?
Thank you!

blue ice
- 173
- 1
- 3
- 9
2
votes
2 answers
Tomcat: Send Access Logs to Syslog Using Logger
I'm trying to use logger to send events to the local syslog server within Tomcat.
In Apache you can do the following:
LogFormat "%h %A %l %u %t \"%r\" %>s %p %b" Events
CustomLog “|/usr/bin/logger -t httpd -p local6.info” Events
However, I am trying…

user3730717
- 21
- 1
- 3
2
votes
1 answer
Access log won't log after replacing with a new log file
I'm trying to phrase access log files on my Nginx server.
For phrasing the file, I simply rename the original access log file and create a new access log file immediately so I won't miss anything.
But after replacing the file, Nginx won't log…

Naveen Gamage
- 1,844
- 12
- 32
- 51
2
votes
1 answer
How do I log the request duration with cloudfront?
How do I log the duration of a request, served with cloudfront?
With a usual apache, I would add %D or %T to the access log configuration - but this seems not to work with cloudfront.
I used this as the reference documentation:…

Jörg Beyer
- 3,631
- 21
- 35
2
votes
3 answers
Logging Tastypie requests (access log)
I'm having problems with creating an access logger for my tastypie restfull app.
I'd like to log several HTTP headers in requests to server and pass them to logger/handler defined in django Settings file. The idea is to log every HTTP request into a…

Lovro Pandžić
- 5,920
- 4
- 43
- 51
2
votes
1 answer
Finding blank User Agents and spoofed UA in access logs
I'm trying to find any blank user agents and traces of spoofed user agents in my apache access logs.
Here's a typical line from my Access Log: (with IP and domain redacted)
x.x.x.x - - [10/Nov/2012:16:48:38 -0500] "GET /YLHicons/reverbnation50.png…

Logan Best
- 501
- 3
- 7
- 21
2
votes
1 answer
How long do apache access log files last?
How long does the server keep access log files?
Today I accessed my server log files and noticed they only go back to August 19th. Are access log files automatically dumped after a month?
If so, is there any way to recover them?

Mark
- 409
- 2
- 6
- 17