Skip to content

Commit

Permalink
[Docs] Backport to 6.5: multiple doc changes (#9317)
Browse files Browse the repository at this point in the history
* Add linux command examples (#9189)

* Update command reference with more info about Functionbeat (#9203)

* [Docs] Add info about accessing logs in serverless environments (#9241)
  • Loading branch information
dedemorton authored Dec 6, 2018
1 parent 6da316e commit e6a88c0
Show file tree
Hide file tree
Showing 21 changed files with 403 additions and 108 deletions.
23 changes: 21 additions & 2 deletions auditbeat/docs/getting-started.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,25 @@ tar xzvf {beatname_lc}-{version}-darwin-x86_64.tar.gz

endif::[]

[[linux]]
*linux:*

ifeval::["{release-state}"=="unreleased"]

Version {stack-version} of {beatname_uc} has not yet been released.

endif::[]

ifeval::["{release-state}"!="unreleased"]

["source","sh",subs="attributes"]
------------------------------------------------
curl -L -O https://artifacts.elastic.co/downloads/beats/{beatname_lc}/{beatname_lc}-{version}-linux-x86_64.tar.gz
tar xzvf {beatname_lc}-{version}-linux-x86_64.tar.gz
------------------------------------------------

endif::[]

[[docker]]
*docker:*

Expand Down Expand Up @@ -206,12 +225,12 @@ start {beatname_uc} in the foreground.
sudo service {beatname_lc} start
----------------------------------------------------------------------

*mac:*
*mac and linux:*

["source","sh",subs="attributes"]
----------------------------------------------------------------------
sudo chown root {beatname_lc}.yml <1>
sudo ./{beatname_lc} -e -c {beatname_lc}.yml -d "publish"
sudo ./{beatname_lc} -e
----------------------------------------------------------------------
<1> To monitor system files, you'll be running {beatname_uc} as root, so you
need to change ownership of the configuration file, or run {beatname_uc} with
Expand Down
1 change: 1 addition & 0 deletions auditbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ include::{asciidoc-dir}/../../shared/attributes.asciidoc[]
:mac_os:
:docker_platform:
:win_os:
:linux_os:

include::../../libbeat/docs/shared-beats-attributes.asciidoc[]

Expand Down
23 changes: 21 additions & 2 deletions filebeat/docs/getting-started.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,25 @@ tar xzvf filebeat-{version}-darwin-x86_64.tar.gz

endif::[]

[[linux]]
*linux:*

ifeval::["{release-state}"=="unreleased"]

Version {version} of {beatname_uc} has not yet been released.

endif::[]

ifeval::["{release-state}"!="unreleased"]

["source","sh",subs="attributes,callouts"]
------------------------------------------------
curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-{version}-linux-x86_64.tar.gz
tar xzvf filebeat-{version}-linux-x86_64.tar.gz
------------------------------------------------

endif::[]

[[docker]]
*docker:*

Expand Down Expand Up @@ -223,12 +242,12 @@ sudo service {beatname_lc} start
docker run {dockerimage}
----------------------------------------------------------------------

*mac:*
*mac and linux:*

[source,shell]
----------------------------------------------------------------------
sudo chown root filebeat.yml <1>
sudo ./filebeat -e -c filebeat.yml -d "publish"
sudo ./filebeat -e
----------------------------------------------------------------------
<1> You'll be running Filebeat as root, so you need to change ownership
of the configuration file, or run Filebeat with `--strict.perms=false`
Expand Down
7 changes: 7 additions & 0 deletions filebeat/docs/include/enable-modules-command.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
./{beatname_lc} modules enable {modulename}
----
*linux:*
["source","sh",subs="attributes"]
----
./{beatname_lc} modules enable {modulename}
----
*win:*
["source","sh",subs="attributes"]
Expand Down
7 changes: 7 additions & 0 deletions filebeat/docs/include/list-modules-command.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
./{beatname_lc} modules list
----
*linux:*
["source","sh",subs="attributes"]
----
./{beatname_lc} modules list
----
*win:*
["source","sh",subs="attributes"]
Expand Down
7 changes: 7 additions & 0 deletions filebeat/docs/include/run-command.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ service {beatname_lc} start
./{beatname_lc} -e
----
*linux:*
["source","sh",subs="attributes"]
----
./{beatname_lc} -e
----
*win:*
["source","sh",subs="attributes"]
Expand Down
7 changes: 7 additions & 0 deletions filebeat/docs/include/set-paths.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ must include the module and fileset name. For example:
./{beatname_lc} -e -M "nginx.access.var.paths=[/usr/local/var/log/nginx/access.log*]"
----
*linux:*
["source","sh",subs="attributes"]
----
./{beatname_lc} -e -M "nginx.access.var.paths=[/usr/local/var/log/nginx/access.log*]"
----
*win:*
["source","sh",subs="attributes"]
Expand Down
7 changes: 7 additions & 0 deletions filebeat/docs/include/setup-command.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
./{beatname_lc} setup -e
----
*linux:*
["source","sh",subs="attributes"]
----
./{beatname_lc} setup -e
----
*win:*
["source","sh",subs="attributes"]
Expand Down
1 change: 1 addition & 0 deletions filebeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ include::{asciidoc-dir}/../../shared/attributes.asciidoc[]
:deb_os:
:rpm_os:
:mac_os:
:linux_os:
:docker_platform:
:win_os:

Expand Down
21 changes: 19 additions & 2 deletions heartbeat/docs/getting-started.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,23 @@ tar xzvf heartbeat-{version}-darwin-x86_64.tar.gz

endif::[]

[[linux]]
*linux:*

ifeval::["{release-state}"=="unreleased"]

Version {version} of {beatname_uc} has not yet been released.

endif::[]

ifeval::["{release-state}"!="unreleased"]

["source","sh",subs="attributes"]
------------------------------------------------
curl -L -O {downloads}/heartbeat/heartbeat-{version}-linux-x86_64.tar.gz
tar xzvf heartbeat-{version}-linux-x86_64.tar.gz
------------------------------------------------
endif::[]

[[docker]]
*docker:*
Expand Down Expand Up @@ -230,12 +247,12 @@ start Heartbeat in the foreground.
sudo service {beatname_lc}-elastic start
----------------------------------------------------------------------

*mac:*
*mac and linux:*

["source","sh",subs="attributes"]
----------------------------------------------------------------------
sudo chown root heartbeat.yml <1>
sudo ./heartbeat -e -c heartbeat.yml -d "publish"
sudo ./heartbeat -e
----------------------------------------------------------------------
<1> You'll be running Heartbeat as root, so you need to change ownership of the
configuration file, or run Heartbeat with `--strict.perms=false` specified. See
Expand Down
1 change: 1 addition & 0 deletions heartbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ include::{asciidoc-dir}/../../shared/attributes.asciidoc[]
:deb_os:
:rpm_os:
:mac_os:
:linux_os:
:docker_platform:
:win_os:

Expand Down
1 change: 1 addition & 0 deletions journalbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ include::{asciidoc-dir}/../../shared/attributes.asciidoc[]
:libbeat-docs: Beats Platform Reference
:deb_os:
:rpm_os:
:linux_os:
:no_dashboards:

include::../../libbeat/docs/shared-beats-attributes.asciidoc[]
Expand Down
Loading

0 comments on commit e6a88c0

Please sign in to comment.