Skip to content

Commit

Permalink
Merge pull request #192 from Moody-Tunes/exclude_celery_beat_logs_fro…
Browse files Browse the repository at this point in the history
…m_db_filebeat

Exclude logs for Celery PeriodicTask queries
  • Loading branch information
nickdibari authored Jun 12, 2021
2 parents e76053d + f3937e5 commit 402fd5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions roles/filebeat/templates/filebeat_db.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ filebeat.inputs:
# Only ship logs for queries from the application (exclude postgres system logs)
include_lines: ['{{ postgresql_db_user }}@{{ postgresql_db_name }}']

# Exclude logs for Celery PeriodicTask queries
exclude_lines: ['django_celery_beat_periodictasks', 'django_celery_beat_periodictask', 'django_celery_beat_crontabschedule']

fields:
type: postgres

Expand Down

0 comments on commit 402fd5d

Please sign in to comment.