PoC to see how ElasticSearch Watcher works.
This project contains everything needed to run the example:
-
Build the Camel Loader:
mvn clean install
-
Download and install ElasticSearch/Kibana with the required plugins
./elasticsearch/1_install.sh ./kibana/1_install.sh
To run the examples, follow the below order:
-
Start ElasticSearch
./elasticsearch/2_run.sh
-
Start Kibana (useful for visualising the logs):
./kibana/2_run.sh
-
Create the example watcher:
./watcher/create.sh ./watcher/example-watcher.json
-
Start up the loader:
cd elastic-loader mvn camel:run
-
Copy the example file into the running loader:
cp elastic-loader/src/main/resources/example.json elastic-loader/target/json/
The file should be processed, loaded into ElasticSearch and you should now start to see the following log message in ElasticSearch:
[2016-10-04 16:16:38,839][INFO ][watcher.actions.logging ] [Fontanelle] Found 1 'elasticsearchLoad started' in the logs