Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add exclude config option for excluding host log files #152

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

obs-gh-mattcotter
Copy link
Collaborator

@obs-gh-mattcotter obs-gh-mattcotter commented Jan 2, 2025

Description

OB-40414 Add exclude config option for excluding host log files.

Excerpt from observe-agent config:

# $ cat /usr/local/observe-agent/observe-agent.yaml 
# ...
host_monitoring:
  enabled: true
  logs:
    enabled: true
    exclude: [asdf.txt]

# $ observe-agent config
# ...
# ======== config file /var/folders/y8/v7cyk9611qbg059c0q02vk0w0000gn/T/observe-agent1962015451/2697844591-logs.yaml
receivers:
  filelog/host_monitoring:
    include:
      - /var/log/**/*.log
    exclude:
      - asdf.txt
    include_file_path: true
    storage: file_storage
    retry_on_failure:
      enabled: true
    max_log_size: 4MiB
    operators:
      - type: filter
        expr: 'body matches "otel-contrib"'

Checklist

  • Created tests which fail without the change (if possible)
  • Extended the README / documentation, if necessary

Base automatically changed from mc/mac-install to main January 6, 2025 19:48
@obs-gh-mattcotter obs-gh-mattcotter merged commit 4ef52c2 into main Jan 6, 2025
8 checks passed
@obs-gh-mattcotter obs-gh-mattcotter deleted the CS-1670-exclude-logs branch January 6, 2025 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants