@Litrovich
Работа Работа Отпуск Работа!

Message:Permission denied @ rb_sysopen — /var/log/nginx/access.log & почему индекс logstash-ДАТА на все?

Здравствуйте!
Помогите пожалуйста немного подразобраться, пока затык,
настроил или пока настраиваю связку elasticsearch kibana fluentd
1. вопрос, почему нет доступа к файлу /var/log/nginx/access.log (Специально поставил права на файл chmod 777 access.log)
2. вопрос. /etc/td-agent/td-agent.conf (пользователь td-agent уже в группе adm
<source>
  @type tail
  path /var/log/nginx/access.log #...or where you placed your Apache access log
  pos_file /var/log/td-agent/nginx-access.log.pos # This is where you record file position
  tag nginx.access #fluentd tag!
  format nginx
#  keys key1, key2, key3 # e.g., user_id, timestamp, action
#  time_key key2 # Specify the column that you want to use as timestamp
</source>
<match **>
  @type elasticsearch
  logstash_format true
  host 127.0.0.1 #(optional; default="localhost")
  port 9200 #(optional; default=9200)
  index_name nginx #(optional; default=fluentd)
  type_name fluend #(optional; default=fluentd)
  flish_interval 5s
</match>

почему в элестик так?
root@pipka:/# curl 'localhost:9200/_cat/indices?v'
health status index               pri rep docs.count docs.deleted store.size pri.store.size
yellow open   logstash-2016.06.27   5   1       7062            0    863.2kb        863.2kb

почему не nginx?
  • Вопрос задан
  • 614 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы