Comments (6)
There are no access logs at the moment. You can utilize nginx for logging requests.
This feature is planned. As for now we'd like to collect any ideas and requirements, so please feel free to share.
from unit.
@binnnliu Just add a root element access_log
pointing to a file, eg:
{
"listeners": {
"*:8300": {
"application": "default"
}
},
"applications": {
"default": {
"type": "php",
"processes": 10,
"root": "/app/public",
"index": "index.php",
"script": "index.php"
}
},
"access_log": "/proc/self/fd/1"
}
It will generate something like:
192.168.99.1 - - [15/May/2018:14:19:58 +0000] "GET /foo HTTP/1.1" 200 65 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36"
from unit.
In change log, i find basic access logging is supported by now, but can't find any configure example anywhere. I don't know how to use it.
from unit.
Got it. Thanks. @davide-romanini
from unit.
unit is funy
from unit.
Initial support for access logging has been added in 204c394 and released with Unit 1.0.
from unit.
Related Issues (20)
- Running FastAPI app and getting a Starlette error HOT 8
- Python: Feature request: uvloop support for Python ASGI apps HOT 15
- Feature request: Support application-factory pattern for Python apps HOT 2
- Can't write cache permission denied! HOT 2
- NGINX AlmaLinux permission issues HOT 1
- Incorrect parsing of 64-bit integers HOT 29
- Proxy Grafana Live WebSocket connections
- Add support for writting application logs into stderr when Unit running inside of Docker HOT 5
- Segfault when sending data through nxt_unit_response_write() HOT 13
- test_access_log_keepalive - AssertionError: descriptors leak router HOT 5
- Nginx proxy_pass leading to unit, sometimes outputs 504 HOT 2
- Using Nginx Unit with a ReadOnly filesystem. HOT 5
- Getting strange message when trying to get static files HOT 4
- Add PHP 8.3 image HOT 1
- Does nginx-unit want to support WSGI+ ? HOT 1
- Unit fails to build against njs 0.8.2 and libxml2 2.12, or njs 0.8.3 HOT 3
- ./configure: error: no PHP embed SAPI found when there is no libphp.so HOT 10
- Issue with creating files and folders from PHP HOT 3
- WebsocketConnection WebSocket onerror while trying nginx htpasswd protection HOT 1
- Using `vars` multiple times in `access_log.format` does not work correctly with njs HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unit.