Hello I have a box that receives files in a target folder .
I have the following config:
input {
file {
path => [ "/usr/local/ogr/target/*/*Group.json"]
codec => json
start_position => "beginning"
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "groups"
}
stdout {}
}
Log-stash does not read the files by this config, However when i edit the file (adding a space), it triggers the file and process it.
How can I configure log-stash to read all the files as they move to my server (as they copied to that directory...)