learning logstash and elastic search plugins
- create a file sample.conf inside XXXXX\LogStash\logstash-8.2.3\config
input {
stdin {
}
}
output {
elasticsearch {
hosts => ["http://localhost:9200"]
index => "hellodb"
}
}
-
Download Dataset https://download.elastic.co/demos/logstash/gettingstarted/logstash-tutorial.log.gz
-
Download File beat : https://www.elastic.co/downloads/beats/filebeat
-
Inside your file beat directory where you have installed it create a new file lab2.yml
logstash -f .\config\lab2.conf --config.reload.automatic
.\filebeat.exe -e -c lab2.yml -d "log publish"