- Install docker
- Have an elasticsearch instance running locally at localhost:9200
- Have an oracle db instance running locally at localhost:1521
-
Clone the repository:
git clone https://github.com/eciuca/logstash-oracle2elasticsearch.git
-
Open
oracle2elasticsearch-pipelines/oracle2elasticsearch-delete.conf
andoracle2elasticsearch-pipelines/oracle2elasticsearch-delete.conf
and change the variables marked with square brackets[ ]
-
Run the following command from the project root
docker run --rm --network=host --add-host elasticsearch:127.0.0.1
-v %cd%\config\pipelines.yml:/usr/share/logstash/config/pipelines.yml
-v %cd%\resources:/usr/share/logstash/resources
-v %cd%\oracle2elasticsearch-pipeline:/usr/share/logstash/oracle2elasticsearch-pipeline
docker.elastic.co/logstash/logstash:6.2.2
TIP: Write the command in a single line