Filebeat-nginx

591 단어
filebeat.prospectors
 filebeat.prospectors:
- input_type: log
  paths:
    - /var/log/nginx/access.log
  document_type: nginx-access
#  exclude_files: ['\.gz$']

- input_type: log
  paths:
    - /var/log/nginx/error.log
  document_type: nginx-error

output.logstash
output.logstash:
  # The Logstash hosts
  hosts: ["10.10.51.166:5000"]

  # Optional SSL. By default is off.
  # List of root certificates for HTTPS server verifications
  ssl.certificate_authorities: ["/etc/pki/tls/certs/logstash-forwarder.crt"]

좋은 웹페이지 즐겨찾기