Files
api/services/filebeat/filebeat.yml
T
Jeppe Bundgaard 8c8de541be - Update Nginx logging with structured JSON and standard combined format for Elastic integration.
- Add new upstream PHP-FPM servers to Nginx configuration for enhanced load balancing.
- Introduce Elastic APM PHP agent in `php.ini` and update Dockerfile for better dependency management.
- Secure Kibana and Elasticsearch connections in Metricbeat/Filebeat configurations with credentials.
- Remove unused PHP dependencies from `composer.json` and `composer.lock`.
2026-02-16 10:58:50 +01:00

40 lines
842 B
YAML

strict.perms: false
filebeat.inputs:
- type: filestream
id: nginx-access
paths: ["/var/log/nginx/*.ndjson"]
parsers:
- ndjson:
overwrite_keys: true
add_error_key: true
fields:
service: nginx
log_type: access
fields_under_root: true
- type: filestream
id: nginx-error
paths: ["/var/log/nginx/error.log"]
fields:
service: nginx
log_type: error
fields_under_root: true
- type: filestream
id: php-error
paths: ["/var/log/php/*.log"]
fields:
service: php
log_type: error
fields_under_root: true
setup.kibana.host: "http://kibana:5601"
setup.kibana.username: elastic
setup.kibana.password: ${ELASTIC_PASSWORD}
output.elasticsearch:
hosts: ["http://elasticsearch:9200"]
username: elastic
password: ${ELASTIC_PASSWORD}