I have the following file.json
{"event":"send_message","id":"9ee9295e-1c11-41be-8e8c-219688f0c770","type":"link","channel_number":"5735565091","steps":[{"step1":"verify_queue","timestamp1":1664829652,"step2":"send_to_route","timestamp2":1664829680,"step3":"wait_for_confirmation","timestamp3":1664829690,"step4":"remove_from_queue","timestamp4":1664829718}],"number_of_tries":1,"status":true}
{"event":"send_message","id":"daa0acda-3924-42ca-b8d1-0aa384eb9a27","type":"text","channel_number":"5591594463","steps":[{"step1":"verify_queue","timestamp1":1664829653,"step2":"send_to_route","timestamp2":1664829713,"step3":"wait_for_confirmation","timestamp3":1664829741,"step4":"remove_from_queue","timestamp4":1664829769}],"number_of_tries":6,"status":true}
I'm trying to upload to elastic via logstash but my index (already created) won't update
here's my logstash config
input {
file {
type => "json"
path => "/home/user/logs/file.json"
start_position => "beginning"
sincedb_path => "/dev/null"
codec => "json"
}
}
filter {
json {
source => "message"
}
}
output {
elasticsearch{
hosts => ["elasticsearch:9200"]
user => elastic
password => changeme
index => "testando"
document_type => "json"
}
}
What am I doing wrong? I'm using elk-docker