diff --git a/recipes/newrelic/infrastructure/ohi/nginx/linux.yml b/recipes/newrelic/infrastructure/ohi/nginx/linux.yml index c02b627ac..64789da2a 100644 --- a/recipes/newrelic/infrastructure/ohi/nginx/linux.yml +++ b/recipes/newrelic/infrastructure/ohi/nginx/linux.yml @@ -37,11 +37,11 @@ processMatch: logMatch: - name: nginx - file: /var/log/nginx/access.log* # assumes log rotation like access.log.0, access.log.1, etc. + file: /var/log/nginx/access.log attributes: logtype: nginx - name: nginx - file: /var/log/nginx/error.log* # assumes log rotation like error.log.0, error.log.1, etc. + file: /var/log/nginx/error.log attributes: logtype: nginx-error diff --git a/recipes/newrelic/infrastructure/ohi/nginx/suse.yml b/recipes/newrelic/infrastructure/ohi/nginx/suse.yml index dae0f3755..1d317c5ba 100644 --- a/recipes/newrelic/infrastructure/ohi/nginx/suse.yml +++ b/recipes/newrelic/infrastructure/ohi/nginx/suse.yml @@ -24,11 +24,11 @@ processMatch: logMatch: - name: nginx - file: /var/log/nginx/access.log* # assumes log rotation like access.log.0, access.log.1, etc. + file: /var/log/nginx/access.log attributes: logtype: nginx - name: nginx - file: /var/log/nginx/error.log* # assumes log rotation like error.log.0, error.log.1, etc. + file: /var/log/nginx/error.log attributes: logtype: nginx-error