https://github.com/eskrug/elastic-demos
서울 열린 데이터 광장 에서 서울교통공사 연도별 일별 시간대별 역별 승하차 인원 데이터 사용
- 데이터 색인 완료 후 아래 명령으로 확인
GET seoul-metro-logs-2018/_count- 데이터 내용 확인
GET seoul-metro-logs-2018/_search- seoul-metro-logs* 템플릿 생성
PUT _template/seoul-metro
{
"order": 5,
"index_patterns": [
"seoul-metro-logs*"
],
"settings": {
"number_of_shards": 2
},
"mappings": {
"properties": {
"@timestamp": {
"type": "date"
},
"code": {
"type": "keyword"
},
"line_num": {
"type": "keyword"
},
"line_num_en": {
"type": "keyword"
},
"location": {
"type": "geo_point"
},
"people": {
"properties": {
"in": {
"type": "integer"
},
"out": {
"type": "integer"
},
"total": {
"type": "integer"
}
}
},
"station": {
"properties": {
"name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
}
}
}$ docker-compose up$ docker-compose down| Host | Container | Service |
|---|---|---|
| 5601 | 5601 | kibana |
- 오전과 오후 승하차 인원의 뚜렷한 차이를 확인할 수 있다.
- 주말 대비 주중 승하차 인원이 더 많은 것을 확인할 수 있다.




