Skip to content

Commit

Permalink
DOCS add exclude_files examples for subdirectories
Browse files Browse the repository at this point in the history
  • Loading branch information
nicozanf authored Jun 5, 2023
1 parent d22f63e commit 526e6d2
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions auditbeat/module/file_integrity/_meta/config.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,37 @@
{{ end -}}

{{- if .Reference }}
# Detect changes to files included in subdirectories. Disabled by default.
recursive: false

# List of regular expressions to filter out notifications for unwanted files.
# Wrap in single quotes to workaround YAML escaping rules. By default no files
# are ignored.
{{- if eq .GOOS "darwin" }}
exclude_files:
- '\.DS_Store$'
- '\.swp$'

# If recursive is set to true, subdirectories can also be excluded here by
# specifying them.
# - '(?i)/tmp/'
{{- else if eq .GOOS "windows" }}
exclude_files:
- '(?i)\.lnk$'
- '(?i)\.swp$'

# If recursive is set to true, subdirectories can also be excluded here by
# specifying them.
# - '(?i)\\temp\\'
{{- else }}
exclude_files:
- '(?i)\.sw[nop]$'
- '~$'
- '/\.git($|/)'

# If recursive is set to true, subdirectories can also be excluded here by
# specifying them.
# - '(?i)/tmp/'
{{- end }}

# List of regular expressions used to explicitly include files. When configured,
Expand Down Expand Up @@ -72,9 +87,6 @@
# Default is sha1.
hash_types: [sha1]

# Detect changes to files included in subdirectories. Disabled by default.
recursive: false

# Set to true to publish fields with null values in events.
#keep_null: false

Expand Down

0 comments on commit 526e6d2

Please sign in to comment.