Logstash (v6.8.1) permission denied when importing csv file

I am a new starter to run Elastic Stac 6.8.1 on mac pro.
These errors keeping on pop up, when I try to import csv file to elasticsearch via logstash.
Does anyone know that is the root cause and how to fix that up?
Thanks

[2019-06-24T10:43:26,561][ERROR][logstash.pipeline ] A plugin had an unrecoverable error. Will restart this plugin.
Pipeline_id:main
Plugin: <LogStash::Inputs::File start_position=>"beginning", path=>["/usr/local/Cellar/logstash-6.8.1/files/products.csv"], codec=><LogStash::Codecs::Plain charset=>"ISO-8859-1", id=>"8732a739-9f87-46a2-a4ae-af018ed90f69", enable_metric=>true>, id=>"2b0c85a1cb8ebbe31b31ce2969c93ff851109c870d383abe533e8e7ea7476dee", sincedb_path=>"/dev/null", enable_metric=>true, stat_interval=>1.0, discover_interval=>15, sincedb_write_interval=>15.0, delimiter=>"\n", close_older=>3600.0, mode=>"tail", file_completed_action=>"delete", sincedb_clean_after=>1209600.0, file_chunk_size=>32768, file_chunk_count=>140737488355327, file_sort_by=>"last_modified", file_sort_direction=>"asc">
Error: Permission denied - Permission denied
Exception: Errno::EACCES

Could be a couple of things, either your logstash instance does not have permission to delete the file or read the file, or both.

In tail mode file_completed_action does not apply, so it has to be an issue opening the file.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.