I'm nooby when it's come to elasticsearch what i'm trying to do is, while indexing the large json file want to give it a document id same with file's name
dummy.json
document_id => "dummy" kinda
<
input {
file {
path => "/home/abahadir/Desktop/Proje/searchflask/elasticsearch/*.json"
start_position => "beginning"
sincedb_path => "/dev/null"
codec => multiline { pattern => "^}" negate => true what => next auto_flush_interval => 1 }
}
}
output {
elasticsearch {
hosts => "http://localhost:9200"
index => "restaurants"
document_type => "docket"
}
stdout{ codec => rubydebug }
}
/>
if anyone can help i will be greatefull