From 6b86c2b1be05714c85929f56c96be15ba7779c1b Mon Sep 17 00:00:00 2001 From: Alfredo Molero Date: Tue, 23 Jan 2024 15:17:04 -0500 Subject: [PATCH] fix(ohi): Ingest current nginx logs only --- 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