Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wmramadan/docker-compose-elk-stack-using-nginx-gzip-compression-and-caching
Nginx Loggin using ELK Stack with gZip Compression and Caching
https://github.com/wmramadan/docker-compose-elk-stack-using-nginx-gzip-compression-and-caching
caching composer docker docker-compose elasticsearch elk-stack gzip kibana logstash nginx
Last synced: 1 day ago
JSON representation
Nginx Loggin using ELK Stack with gZip Compression and Caching
- Host: GitHub
- URL: https://github.com/wmramadan/docker-compose-elk-stack-using-nginx-gzip-compression-and-caching
- Owner: WMRamadan
- Created: 2018-03-02T03:43:28.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-02T03:43:33.000Z (almost 7 years ago)
- Last Synced: 2024-11-09T09:41:22.980Z (about 2 months ago)
- Topics: caching, composer, docker, docker-compose, elasticsearch, elk-stack, gzip, kibana, logstash, nginx
- Language: HTML
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Compose ELK Stack Using Nginx gZip Compression and Caching
An ELK (Elasticsearch, Logstash, Kibana) stack with Docker Compose using Nginx gZip Compression and Caching.
Nginx log files are parsed using ELK Stack.
## Usage
### Bringing up the stack
Start the ELK stack by building and running with the following command:
```console
$ docker-compose build && docker-compose up
```Give some time for the images to dowload and build, then access the Kibana web UI
[http://localhost:5601](http://localhost:5601) with a web browser.### Checking gZip Compression and Caching
After the ELK stack has started you can use the following command in your terminal:
```console
$ curl -IL -H "accept-encoding: gzip" http://localhost:8080/test.jpg
```This will give you an output similar to the below:
```console
HTTP/1.1 200 OK
Server: nginx/1.13.9
Date Fri, 02 Mar 2018 18:45:66 GMT
Content-Type: image/jpeg
Last-Modified: Fri, 02 Mar 2018 16:40:35 GMT
Connection: keep-alive
Vary: Accept-Encoding
ETag: W/"5a98bae3-6723"
Expires: Thu, 31 Dec 2037 23:55:55 GMT
Cache-Control: max-age=315360000
Content-Encoding: gzip
```From the above you will notice that 'Cache-Control' and 'Content-Encoding' are showing that cache is set with and expiray date and compression is using gzip.