Populate an ELK and visualize information
- https://github.com/elastic/elasticsearch-php
- https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html
- https://www.elastic.co/guide/en/kibana/current/dashboard-api-export.html
- https://github.com/CodelyTV/elastic-stack-example
- https://kb.objectrocket.com/elasticsearch/how-to-index-data-in-elasticsearch-using-the-php-client-library-127
docker-compose up -d
cd app && composer install
php create_index.php
php insert_by_code.php
This insert the data in the index 'is-app'
It took 100 seconds to generate 50000 registers
php insert_by_logs.php
This insert the data in the index 'is-logstash-logs' using logstash and insert the data in the index 'filebeat-%{[agent.version]}-%{+yyyy.MM.dd}-%{index_num}' using filebeat
http://localhost:5601/
Import etc/kibana/dashboard_app.ndjson
to Management -> Saved Object -> Import
docker-compose down
- Create fields geo-point https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html