Skip to content

Commit

Permalink
fix(ohi): Ingest current nginx logs only (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
amolero-nr authored and pjarugula committed Jan 29, 2024
1 parent 6bd99de commit 3af3d3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions recipes/newrelic/infrastructure/ohi/nginx/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions recipes/newrelic/infrastructure/ohi/nginx/suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3af3d3f

Please sign in to comment.