File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
doc/_admin-guide/060_Sources/021_Wildcard-file Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,29 @@ source s_files {
76
76
};
77
77
```
78
78
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
+
79
102
{% include doc/admin-guide/options/source-flags.md %}
80
103
81
104
{% include doc/admin-guide/options/follow-freq.md %}
You can’t perform that action at this time.
0 commit comments