fix: Abstract input log folder to parameters

issue: https://github.com/Telenav/osrm-backend/issues/65
This commit is contained in:
CoderBear801 2019-10-22 14:46:15 -07:00
parent ce5120f8c1
commit fa98d97219
3 changed files with 7 additions and 4 deletions

View File

@ -1 +1,2 @@
ELK_VERSION=7.3.1
DATA_PATH=/Users/xunliu/Desktop/go/src/github.com/Telenav/logs/

View File

@ -1,10 +1,9 @@
# ELK Stack
Specify your log location in docker-compose.yml->logstash->volume mapping
Specify your log location in .env file and change DATA_PATH there
```
// change "/Users/xunliu/Desktop/git/elastic-example/data/" to your data location
// later will abstract this to parameters
/Users/xunliu/Desktop/git/elastic-example/data/:/data
DATA_PATH=/Users/xunliu/Desktop/go/src/github.com/Telenav/logs/
```
Start
@ -20,6 +19,8 @@ docker-compose -f docker-compose.yml down -v
You could go to following link for Kibana
```
http://localhost:5601
// username: elastic
// password: changeme
```
If you need one component specific logs, you could use

View File

@ -28,8 +28,9 @@ services:
context: logstash/
args:
ELK_VERSION: $ELK_VERSION
DATA_PATH: $DATA_PATH
volumes:
- /Users/xunliu/Desktop/git/elastic-example/data/:/data/
- ${DATA_PATH}:/data/
- type: bind
source: ./logstash/config/logstash.yml
target: /usr/share/logstash/config/logstash.yml