Skip to content

Commit

Permalink
Fix paths in examples based on review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dedemorton committed Feb 2, 2016
1 parent d8d26a4 commit d7a102a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
19 changes: 9 additions & 10 deletions filebeat/docs/getting-started.asciidoc
Expand Up @@ -96,8 +96,7 @@ filebeat:
# Paths that should be crawled and fetched. Glob based paths.
# For each file found under this path, a harvester is started.
paths:
- "/private/var/log/*.log"
- "/Users/Shared/testlogs/*.log"
- "/var/log/*.log"
#- c:\programdata\elasticsearch\logs\*
# Type of the files. Based on this the way the file is read is decided.
Expand All @@ -121,16 +120,16 @@ filebeat:
prospectors:
-
paths:
- "/private/var/log/*.log"
- "/var/log/*.log"
-------------------------------------------------------------------------------------
+
The prospector in this example harvests all files in the path `/private/var/log/*.log`, which means
that Filebeat will harvest all files in the directory `/private/var/log/` that end with `.log`. All patterns supported
The prospector in this example harvests all files in the path `/var/log/*.log`, which means
that Filebeat will harvest all files in the directory `/var/log/` that end with `.log`. All patterns supported
by https://golang.org/pkg/path/filepath/#Glob[Golang Glob] are also supported here.
+
To fetch all files from a predefined level of subdirectories, the following pattern can be used:
`/private/var/log/*/*.log`. This fetches all `.log` files from the subfolders of `/private/var/log`. It does not
fetch log files from the `/private/var/log` folder itself. Currently it is not possible to recursively
`/var/log/*/*.log`. This fetches all `.log` files from the subfolders of `/var/log`. It does not
fetch log files from the `/var/log` folder itself. Currently it is not possible to recursively
fetch all files in all subdirectories of a directory.
+
A config file can contain multiple prospectors and multiple paths per prospector
Expand All @@ -145,11 +144,11 @@ filebeat:
prospectors:
-
paths:
- /private/var/log/system.log
- /private/var/log/wifi.log
- /var/log/system.log
- /var/log/wifi.log
-
paths:
- "/private/var/log/apache2/*"
- "/var/log/apache2/*"
-------------------------------------------------------------------------------------
+
The config file in the example starts two prospectors. The first prospector has two harvesters,
Expand Down
6 changes: 3 additions & 3 deletions filebeat/docs/migration.asciidoc
Expand Up @@ -117,8 +117,8 @@ filebeat:
# Each - is a prospector. Below are the prospector specific configurations
-
paths:
- /system/var/log/messages
- "/system/var/log/*.log"
- /var/log/messages
- "/var/log/*.log"
document_type: syslog <1>
fields:
service: apache
Expand All @@ -128,7 +128,7 @@ filebeat:
document_type: stdin
-
paths:
- "/system/var/log/apache2/httpd-*.log"
- "/var/log/apache2/httpd-*.log"
document_type: apache
-------------------------------------------------------------------------------------

Expand Down

0 comments on commit d7a102a

Please sign in to comment.