38 lines
634 B
Django/Jinja
38 lines
634 B
Django/Jinja
- type: filestream
|
|
id: "nginx-access-glob"
|
|
paths:
|
|
- /var/log/nginx/access_*.log
|
|
- /var/log/nginx/access.log
|
|
|
|
|
|
{% if kibana_url is defined -%}
|
|
prospector.scanner.exclude_files:
|
|
- /var/log/nginx/access_{{ kibana_url }}.log
|
|
{% endif %}
|
|
|
|
scan_frequency: 10s
|
|
enabled: true
|
|
|
|
parsers:
|
|
- ndjson:
|
|
keys_under_root: true
|
|
add_error_key: true
|
|
|
|
fields_under_root: true
|
|
fields:
|
|
service.type: nginx
|
|
|
|
tags:
|
|
- nginx
|
|
|
|
{# - type: filestream
|
|
# id: "nginx-error-glob"
|
|
# paths:
|
|
# - /var/log/nginx/error_*.log
|
|
#
|
|
# enabled: true
|
|
#
|
|
# tags:
|
|
# - nginx
|
|
# - nginx-error #}
|