Skip to content

Commit 27fb5d1

Browse files
authored
affile: document wildcard-file(exclude-pattern()) option (#222)
Add documentation for syslog-ng/syslog-ng#5416 (merged).
2 parents c250d42 + cbb4642 commit 27fb5d1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

doc/_admin-guide/060_Sources/021_Wildcard-file/000_Wildcard-file_options.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,29 @@ source s_files {
7676
};
7777
```
7878

79+
## exclude-pattern()
80+
81+
|Type:|filename without path|
82+
|Default:||
83+
84+
*Description:* A filename to exclude from the filenames matched by **filename-pattern()**, without the path. You
85+
can use the **\*** and **?** wildcard characters, as with **filename-pattern()**.
86+
87+
For example, if **filename-pattern("*.log")** matches the syslog.log and
88+
syslog.1.log files, **exclude-pattern("*.?.log")** would skip reading syslog.1.log.
89+
90+
```config
91+
source s_files {
92+
wildcard-file(
93+
base-dir("/var/log")
94+
filename-pattern("*.log")
95+
exclude-pattern("*.?.log")
96+
recursive(no)
97+
follow-freq(1)
98+
);
99+
};
100+
```
101+
79102
{% include doc/admin-guide/options/source-flags.md %}
80103

81104
{% include doc/admin-guide/options/follow-freq.md %}

0 commit comments

Comments
 (0)