我有ELK docker容器,端口打开,Filebeat在单独的容器上。我在Kibana仪表板中获取Logstash索引和Filebeat索引。使用Filebeat中的Logstach将一些日志发送到Elastic Search。我的应用程序的日志文件夹,我试图获取在Filebeat容器外部运行的日志,并将其映射到Filebeat容器中。所有容器都在同一网络上。但是当Filebeat来读取我的应用程序日志时,我得到了预先拒绝错误。我也尝试过读取单独的apache日志,但是在读取日志时遇到同样的错误。我正在使用Oracle Virtual Box在Vagrant主机上完成所有这些工作。
有人可以告诉我如何授予权限或将用户添加到我的应用程序或其他任何方式吗?
我正在使用Ubuntu 16.04与Docker和docker-compose并使用ELK 5.6.3。
以下是日志:
filebeat_1 | 2017/10/18 09:12:42.390679 prospector_log.go:271: ERR Harvester could not be started on existing file: /na
sir/default/logs/kern.log, Err: Error setting up harvester: Harvester setup failed. Unexpected file opening error: Faile
d opening /nasir/default/logs/kern.log: open /nasir/default/logs/kern.log: permission denied
filebeat_1 | 2017/10/18 09:12:42.391278 prospector_log.go:271: ERR Harvester could not be started on existing file: /na
sir/default/logs/auth.log, Err: Error setting up harvester: Harvester setup failed. Unexpected file opening error: Faile
d opening /nasir/default/logs/auth.log: open /nasir/default/logs/auth.log: permission denied
filebeat_1 | 2017/10/18 09:12:52.394579 prospector_log.go:271: ERR Harvester could not be started on existing file: /na
sir/default/logs/auth.log, Err: Error setting up harvester: Harvester setup failed. Unexpected file opening error: Faile
d opening /nasir/default/logs/auth.log: open /nasir/default/logs/auth.log: permission denied
filebeat_1 | 2017/10/18 09:12:52.395299 prospector_log.go:271: ERR Harvester could not be started on existing file: /na
sir/default/logs/kern.log, Err: Error setting up harvester: Harvester setup failed. Unexpected file opening error: Faile
d opening /nasir/default/logs/kern.log: open /nasir/default/logs/kern.log: permission denied