This is a demo to visualize some Singapore LTA public datasets using the Elastic stack:
- Elasticsearch
- Kibana
- Logstash
Singapore Land Transport Authority provides public APIs to access to real time information like carparks, incidents and advisories among others. This demo covers approximately 40 days of information collected between October and September 2015 and contains 3 indices:
- singapore-lta-carpark: 686K events sampled every 2 minutes
- singapore-lta-advisory: 221K events sampled every 5 minutes
- singapore-lta-incidents: 295K events sampled every 5 minutes
- Elasticsearch 5.1.1 or higher
- Kibana 5.1.1 or higher
- Logstash 5.1.1 or higher
From the folder singapore-lta execute the following commands to import into localhost:9200 the provided datasets.
If you need to import into another host/port change the elasticsearch output configuration in src/logstash/logstash-stdin-< dataset_name >.conf
cd singapore-lta
unzip data/json.zip -d data
./import-advisories.sh
./import-carparks.sh
./import-incidents.sh
NOTE: It is import to execute these commands from the singapore-lta foler due to relative paths in logstash template configuration.
Go to Settings > Indices and define the following index patterns:
singapore-lta-incident-*
singapore-lta-carpark-*
singapore-lta-advisory-*
Go to Settings > Objects > Import and import the following files in the specified order:
- singapore-lta/src/kibana/visualizations.json
- singapore-lta/src/kibana/dashboards.json
Source data provided by Singapore LTA.
More details in their terms and conditions.