Add examples

Fixes #6327
This commit is contained in:
DeDe Morton 2016-11-22 18:02:14 -08:00
parent 97740ab49c
commit 0ca5c2375e
2 changed files with 21 additions and 1 deletions

View file

@ -77,7 +77,7 @@ With this command, Logstash concatenates three config files, `/tmp/one`, `/tmp/t
and `NAME` is the name of the plugin.
*`-l, --path.logs PATH`*::
Directory to Write Logstash internal logs to.
Directory to write Logstash internal logs to.
*`--log.level LEVEL`*::
Set the log level for Logstash. Possible values are:

View file

@ -28,3 +28,23 @@ to using alternation with the vertical bar in regular expressions (`foo|bar`).
*`\`*::
Escape the next metacharacter. This means that you cannot use a backslash in Windows
as part of a glob. The pattern `c:\foo*` will not work, so use `foo*` instead.
[float]
[[example-glob-patterns]]
==== Example Patterns
Here are some common examples of glob patterns:
*`"/path/to/*.conf"`*::
Matches config files ending in `.conf` in the specified path.
*`"/var/log/*.log"`*::
Matches log files ending in `.log` in the specified path.
*`"/var/log/**/*.log`*::
Matches log files ending in `.log` in subdirectories under the specified path.
*`"/path/to/logs/{app1,app2,app3}/data.log"`*::
Matches app log files in the `app1`, `app2`, and `app3` subdirectories under the
specified path.