From 3af3d3f8576349a52486115c78c8c652111cd59a Mon Sep 17 00:00:00 2001 From: Alfredo <102765645+amolero-nr@users.noreply.github.com> Date: Wed, 24 Jan 2024 16:42:07 -0500 Subject: [PATCH] fix(ohi): Ingest current nginx logs only (#1021) --- recipes/newrelic/infrastructure/ohi/nginx/linux.yml | 4 ++-- recipes/newrelic/infrastructure/ohi/nginx/suse.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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