Logstash file input: registering json file grew but not taking data in some cases
问题 My config file is shown below: input { file { codec => "json" path => "/home/data/*" sincedb_path => "/dev/null" } } output { elasticsearch{ protocol => "http" host => "localhost" index => "data" } } When I download a .json file to the data directory, logstash will not receive the data or output to elasticsearch unless I first open the file and save it in gedit. Running logstash with the -vvv flag shows no errors all I get when a file is put in that directory is _discover_file: /home/data/*: