Skip to content

Commit f87d700

Browse files
committed
Merge pull request #903 from dedemorton/gs_fixes_1.1_windows
Add changes for 891, 893, and some misc consistency issues
2 parents 0b3c156 + d7a102a commit f87d700

11 files changed

+174
-108
lines changed

filebeat/docs/command-line.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
Filebeat does not have any Filebeat-specific command line options. Instead, you
55
configure the behaviour of Filebeat by specifying options in the configuration file.
66

7-
The following command line options from libbeat are also available for Filebeat.
7+
The following command line options from libbeat are also available for Filebeat. To
8+
use these options, you need to start Filebeat in the foreground.
89

910
To start Filebeat, you must use the `-c config/path` option to specify the path to the
1011
configuration file.

filebeat/docs/getting-started.asciidoc

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,12 @@ see <<filebeat-configuration-details>>.
7979
[[filebeat-configuration]]
8080
=== Configuring Filebeat
8181

82-
To configure Filebeat, you edit the _filebeat.yml_ file. Here is a sample of
83-
`filebeat` section of the _filebeat.yml_ file:
82+
To configure Filebeat, you edit the configuration file. For rpm and deb, you'll
83+
find the configuration file at `/etc/filebeat/filebeat.yml`. For mac and win, look in
84+
the archive that you just extracted.
85+
86+
Here is a sample of the `filebeat` section of the `filebeat.yml` file. Filebeat uses predefined
87+
default values for most configuration options.
8488

8589
[source,yaml]
8690
-------------------------------------------------------------------------------------
@@ -93,7 +97,7 @@ filebeat:
9397
# For each file found under this path, a harvester is started.
9498
paths:
9599
- "/var/log/*.log"
96-
# - c:\programdata\elasticsearch\logs\*
100+
#- c:\programdata\elasticsearch\logs\*
97101
98102
# Type of the files. Based on this the way the file is read is decided.
99103
# The different types cannot be mixed in one prospector
@@ -104,9 +108,12 @@ filebeat:
104108
input_type: log
105109
-------------------------------------------------------------------------------------
106110

107-
Filebeat uses predefined default values for most configuration options. For the most basic
108-
Filebeat configuration, you can define a single prospector with a single path. For example:
111+
To configure Filebeat:
109112

113+
. Define the path (or paths) to your log files.
114+
+
115+
For the most basic Filebeat configuration, you can define a single prospector with a single path. For example:
116+
+
110117
[source,yaml]
111118
-------------------------------------------------------------------------------------
112119
filebeat:
@@ -115,22 +122,22 @@ filebeat:
115122
paths:
116123
- "/var/log/*.log"
117124
-------------------------------------------------------------------------------------
118-
125+
+
119126
The prospector in this example harvests all files in the path `/var/log/*.log`, which means
120127
that Filebeat will harvest all files in the directory `/var/log/` that end with `.log`. All patterns supported
121128
by https://golang.org/pkg/path/filepath/#Glob[Golang Glob] are also supported here.
122-
129+
+
123130
To fetch all files from a predefined level of subdirectories, the following pattern can be used:
124131
`/var/log/*/*.log`. This fetches all `.log` files from the subfolders of `/var/log`. It does not
125132
fetch log files from the `/var/log` folder itself. Currently it is not possible to recursively
126133
fetch all files in all subdirectories of a directory.
127-
134+
+
128135
A config file can contain multiple prospectors and multiple paths per prospector
129136
as shown in the following example.
130-
137+
+
131138
NOTE: Make sure a file is not defined more than once across all prospectors because this can lead
132139
to unexpected behaviour.
133-
140+
+
134141
[source,yaml]
135142
-------------------------------------------------------------------------------------
136143
filebeat:
@@ -141,15 +148,31 @@ filebeat:
141148
- /var/log/wifi.log
142149
-
143150
paths:
144-
- "/var/log/apache/*"
151+
- "/var/log/apache2/*"
145152
-------------------------------------------------------------------------------------
146-
153+
+
147154
The config file in the example starts two prospectors. The first prospector has two harvesters,
148155
one harvesting the `system.log` file, and the other harvesting `wifi.log`. The second prospector
149156
starts a harvester for each file in the apache directory.
150157

158+
. If you are sending output to Elasticsearch, set the IP address and port where Filebeat can find the Elasticsearch installation:
159+
+
160+
[source,yaml]
161+
----------------------------------------------------------------------
162+
# Configure what outputs to use when sending the data collected by the beat.
163+
# Multiple outputs may be used.
164+
output:
165+
### Elasticsearch as output
166+
elasticsearch:
167+
# Array of hosts to connect to.
168+
hosts: ["192.168.1.42:9200"]
169+
----------------------------------------------------------------------
170+
+
171+
If you are sending output to Logstash, see <<config-filebeat-logstash>> instead.
172+
151173
See <<filebeat-configuration-details>> for more details about each configuration option.
152174

175+
[[config-filebeat-logstash]]
153176
=== Configuring Filebeat to Use Logstash
154177

155178
include::../../libbeat/docs/shared-logstash-config.asciidoc[]

filebeat/docs/migration.asciidoc

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ filebeat:
128128
document_type: stdin
129129
-
130130
paths:
131-
- "/var/log/apache/httpd-*.log"
131+
- "/var/log/apache2/httpd-*.log"
132132
document_type: apache
133133
-------------------------------------------------------------------------------------
134134

@@ -190,26 +190,23 @@ The equivalent in Filebeat would look like this:
190190
-------------------------------------------------------------------------------------
191191
output:
192192
logstash:
193-
enabled: true
194-
195-
# The list of downstream Logstash servers. <1>
193+
# The Logstash hosts. <1>
196194
hosts:
197195
- localhost:5043
196+
197+
# Network timeout in seconds.
198+
timeout: 15
198199
199200
tls: <2>
200-
# The path to your SSL client certificate.
201-
certificate: ./logstash-forwarder.crt
202-
203-
# The path to your SSL client certificate key.
204-
certificate_key: ./logstash-forwarder.key
205-
206-
# The path to your trusted SSL CA file. This is used
207-
# to authenticate your downstream server.
208-
certificate_authorities:
201+
# List of root certificates for HTTPS server verifications
202+
certificate_authorities:
209203
- ./logstash-forwarder.crt
204+
205+
# Certificate for TLS client authentication
206+
certificate: ./logstash-forwarder.crt
210207
211-
# Network timeout in seconds.
212-
timeout: 15
208+
# Client Certificate Key
209+
certificate_key: ./logstash-forwarder.key
213210
-------------------------------------------------------------------------------------
214211

215212
<1> When multiple hosts are defined, the default behavior in Filebeat is to
@@ -285,7 +282,6 @@ filebeat:
285282
service: test01
286283
output:
287284
elasticsearch:
288-
enabled: true
289285
hosts: ["http://localhost:5043"]
290286
-------------------------------------------------------------------------------------
291287

libbeat/docs/command-line.asciidoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[[command-line-options]]
22
== Command Line Options
33

4-
The following command line options are available for all Beats. For additional
5-
command line options, see the documentation for your Beat.
4+
The following command line options are available for all Beats. To use these
5+
options, you need to start the Beat in the foreground. For additional command
6+
line options, see the documentation for your Beat.
67

78
include::./shared-command-line.asciidoc[]

libbeat/docs/gettingstarted.asciidoc

Lines changed: 33 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,17 @@ You should see a response similar to this:
110110
[source,shell]
111111
----------------------------------------------------------------------
112112
{
113-
"name" : "Banshee",
113+
"name" : "Angela Del Toro",
114114
"cluster_name" : "elasticsearch",
115115
"version" : {
116116
"number" : "2.2.0",
117-
"build_hash" : "72cd1f1a3eee09505e036106146dc1949dc5dc87",
118-
"build_timestamp" : "2015-11-18T22:40:03Z",
117+
"build_hash" : "8ff36d139e16f8720f2947ef62c8167a888992fe",
118+
"build_timestamp" : "2016-01-27T13:32:39Z",
119119
"build_snapshot" : false,
120-
"lucene_version" : "5.3.1"
120+
"lucene_version" : "5.4.1"
121121
},
122122
"tagline" : "You Know, for Search"
123123
}
124-
125124
----------------------------------------------------------------------
126125

127126
[[logstash-installation]]
@@ -403,12 +402,11 @@ Use the following commands to run the script:
403402
curl -L -O http://download.elastic.co/beats/dashboards/beats-dashboards-{Dashboards-version}.zip
404403
unzip beats-dashboards-{Dashboards-version}.zip
405404
cd beats-dashboards-{Dashboards-version}/
406-
./load.sh -url http://localhost:9200
405+
./load.sh
407406
----------------------------------------------------------------------
408407

409-
Replace `localhost:9200` with the location where Elasticsearch is running.
410-
For example, `./load.sh -url http://192.168.33.60:9200`. For more command-line options,
411-
see <<dashboard-load-options>>.
408+
By default, the script assumes that you are running Elasticsearch on `127.0.0.1:9200`. Use the `-url` option
409+
to specify a different location. For example: `./load.sh -url http://192.168.33.60:9200`. To specify a Kibana index pattern or pass in user credentials, see <<dashboard-load-options>>.
412410

413411
*win:*
414412

@@ -426,47 +424,41 @@ to download and install PowerShell.
426424
["source","sh",subs="attributes,callouts"]
427425
----------------------------------------------------------------------
428426
PS > cd beats-dashboards-{Dashboards-version}
429-
PS > .\load.ps1 -url http://localhost:9200
427+
PS > .\load.ps1
430428
----------------------------------------------------------------------
431429
+
432-
Replace `localhost:9200` with the location where Elasticsearch is running. For example,
433-
`.\load.ps1 -url http://192.168.33.60:9200`. For more command-line options,
434-
see <<dashboard-load-options>>.
430+
By default, the script assumes that you are running Elasticsearch on `127.0.0.1:9200`. Use the `-url` option
431+
to specify a different location. For example: `.\load.ps1 -url http://192.168.33.60:9200`. To specify a Kibana index pattern or pass in user credentials, see <<dashboard-load-options>>.
435432
+
436-
NOTE: If script execution is disabled on your system, you need to set the execution policy for the current session to allow the script to run. For example: `PowerShell.exe -ExecutionPolicy UnRestricted -File .\load.ps1 -url http://localhost:9200`.
433+
NOTE: If script execution is disabled on your system, you need to set the execution policy for the current session to allow the script to run. For example: `PowerShell.exe -ExecutionPolicy UnRestricted -File .\load.ps1 -url http://192.168.33.60:9200`.
437434

438435
[[dashboard-load-options]]
439-
===== Dashboard Load Options
440-
441-
You can specify the following options when you run the load script (`load.sh` or
442-
`load.ps1`) to load Kibana dashboards. If you specify no options, the script
443-
assumes that Elasticsearch is running at `http://localhost:9200`.
444-
445-
[[horizontal]]
446-
*`-h | -help`*::
447-
Print the help menu.
448-
449-
*`-l | -url <Elasticsearch_url>`*::
450-
The URL of the server where Elasticsearch is running. For example,
451-
`-url http://192.168.33.60:9200`.
452-
453-
*`-u | -user <username>:<password>`*::
454-
The username and password for authenticating to Elasticsearch using Basic
455-
Authentication. Specify the username and password separated by a colon
456-
(for example, `-user admin:secret`). By default no username and password are
457-
used.
458-
459-
*`-i | -index <index_pattern>`*::
460-
The Kibana index pattern where you want to save the Beats dashboards,
461-
visualizations, and index patterns. You can use this option to upload the Beats
462-
dashboards into multiple Kibana installations. For example:
436+
===== Other Dashboard Load Options
437+
When you load the dashboards, you can also specify:
438+
439+
* The Kibana index pattern where you want to load the dashboards in Elasticsearch. For example:
463440
+
464441
["source","sh",subs="attributes,callouts"]
465442
----------------------------------------------------------------------
466-
./load.sh -url http://localhost:9200 -index .kibana_env1
467-
./load.sh -url http://localhost:9200 -index .kibana_env2
468-
./load.sh -url http://localhost:9200 -index .kibana_env3
443+
./load.sh -url http://test.com:9200 -index .kibana_env
444+
----------------------------------------------------------------------
445+
446+
* The username and password to use for authentication. There are a few ways to pass in the username and password. For example:
447+
+
448+
["source","sh",subs="attributes,callouts"]
469449
----------------------------------------------------------------------
450+
./load.sh -url https://xyz.found.io -u user:password <1>
451+
452+
./load.sh -url https://xyz.found.io -u admin:$(cat ~/pass-file) <2>
453+
454+
./load.sh -url https://user:password@xyz.found.io <3>
455+
----------------------------------------------------------------------
456+
+
457+
<1> Specify the username and password separated by a colon.
458+
<2> Use a file to avoid polluting the bash history with the password.
459+
<3> Put the username and password in the URL.
460+
461+
These options are also available when you run `.\load.ps` on Windows.
470462

471463
[[view-kibana-dashboards]]
472464
==== Opening the Beats Dashboards in Kibana

libbeat/docs/shared-logstash-config.asciidoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ output:
2222
logstash:
2323
hosts: ["127.0.0.1:5044"]
2424
25-
# configure logstash plugin to loadbalance events between
26-
# configured logstash hosts
27-
#loadbalance: false
25+
# Optional load balance the events between the Logstash hosts
26+
#loadbalance: true
2827
------------------------------------------------------------------------------
2928

3029
In this configuration, `hosts` specifies the Logstash server and the port (`5044`)

packetbeat/docs/command-line.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
== Command Line Options
22

3-
The following command line options are available for Packetbeat.
3+
The following command line options are available for Packetbeat. To use these options,
4+
you need to start Packetbeat in the foreground.
45

56
[source,shell]
67
------------------------------------------------------------------------

0 commit comments

Comments
 (0)