Comments (6)
FYI, I test your Dockerfile and it's basically working.
It works until I add capture options in haproxy to log referer/host/content-length/... the log line grows and syslog is not able to handle it. At the beginning I thought I had to tune haproxy but when I used rsyslog it worked just fine. I was getting logs like this:
2018-09-05T16:11:26+00:00 localhost haproxy[13]: 172.18.0.1:40586 [05/Sep/2018:16:11:26.599] www-nginx be_nginx/www1 0/0/0/0/0 304 180 - - ---- 1/1/0/1/0 0/0 {localhost:8888||en-US,en;q=0.5||Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 |} {nginx/1.15
You can see it is truncated and http verb and uri are not present because of that.
To get it working, I made a mix between your project and the proposal in this article:
https://ops.tips/gists/haproxy-docker-container-logs/
Basically I add rsyslog launch in your entrypoint and configure rsyslog so that it logs to "/proc/1/fd/1" for facility local0.
Regards
from haproxy-docker-logging.
I think this is a leftover of an early attempt. I remember there was a problem with tini and HAProxy. Official Docker image doesn't use tini, too. But I'd like to encourage you to figure that issue out and come back here or create a PR! 👍
from haproxy-docker-logging.
I am not sure to understand what you are asking.
Do you want me to make a PR to correct the documentation and remove "tini" reference ?
I look into the commit and "tini" was in the first commit and then you removed it in your third (and last for now) commit.
from haproxy-docker-logging.
Great! If you want you can merge these new insights back into this repository so others may profit on your research.
from haproxy-docker-logging.
Merged research of @tohtor back into this repository.
from haproxy-docker-logging.
Nice commit ! I should have done it instead of you, sorry I was very busy.
Regards
from haproxy-docker-logging.
Related Issues (7)
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 haproxy-docker-logging.