Skip to content

Commit

Permalink
Added docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tudor Golubenco committed Jul 4, 2017
1 parent 65eec21 commit 8ab7461
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 21 deletions.
1 change: 1 addition & 0 deletions auditbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ include::../../libbeat/docs/version.asciidoc[]
:version: {stack-version}
:beatname_lc: auditbeat
:beatname_uc: Auditbeat
:beatname_pkg: {beatname_lc}
:security: X-Pack Security
:dockerimage: docker.elastic.co/beats/{beatname_lc}:{version}

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::../../libbeat/docs/version.asciidoc[]
:version: {stack-version}
:beatname_lc: filebeat
:beatname_uc: Filebeat
:beatname_pkg: {beatname_lc}
:security: X-Pack Security
:dockerimage: docker.elastic.co/beats/{beatname_lc}:{version}

Expand Down
4 changes: 2 additions & 2 deletions heartbeat/docs/getting-started.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,14 @@ start Heartbeat in the foreground.

["source","sh",subs="attributes"]
----------------------------------------------------------------------
sudo /etc/init.d/heartbeat start
sudo /etc/init.d/heartbeat-elastic start
----------------------------------------------------------------------

*rpm:*

["source","sh",subs="attributes"]
----------------------------------------------------------------------
sudo /etc/init.d/heartbeat start
sudo /etc/init.d/heartbeat-elastic start
----------------------------------------------------------------------

*mac:*
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::../../libbeat/docs/version.asciidoc[]
:version: {stack-version}
:beatname_lc: heartbeat
:beatname_uc: Heartbeat
:beatname_pkg: heartbeat-elastic
:security: X-Pack Security
:dockerimage: docker.elastic.co/beats/{beatname_lc}:{version}

Expand Down
23 changes: 4 additions & 19 deletions libbeat/docs/repositories.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -70,34 +70,19 @@ the following:
Simply delete the `deb-src` entry from the `/etc/apt/sources.list` file, and the installation should work as expected.
==================================================

ifeval::["{beatname_uc}"=="Heartbeat"]

. On Debian or Ubuntu, pin the repository before installing to ensure that the
correct Elastic Heartbeat package is installed. To do this, edit
`/etc/apt/preferences` (or `/etc/apt/preferences.d/heartbeat`) as follows:
+
[source,shell]
--------------------------------------------------
Package: heartbeat
Pin: origin artifacts.elastic.co
Pin-Priority: 700
--------------------------------------------------

endif::[]

. Run `apt-get update`, and the repository is ready for use. For example, you can
install {beatname_uc} by running:
+
["source","sh",subs="attributes"]
--------------------------------------------------
sudo apt-get update && sudo apt-get install {beatname_lc}
sudo apt-get update && sudo apt-get install {beatname_pkg}
--------------------------------------------------

. To configure the Beat to start automatically during boot, run:
+
["source","sh",subs="attributes"]
--------------------------------------------------
sudo update-rc.d {beatname_lc} defaults 95 10
sudo update-rc.d {beatname_pkg} defaults 95 10
--------------------------------------------------

endif::[]
Expand Down Expand Up @@ -142,14 +127,14 @@ running:
+
["source","sh",subs="attributes"]
--------------------------------------------------
sudo yum install {beatname_lc}
sudo yum install {beatname_pkg}
--------------------------------------------------

. To configure the Beat to start automatically during boot, run:
+
["source","sh",subs="attributes"]
--------------------------------------------------
sudo chkconfig --add {beatname_lc}
sudo chkconfig --add {beatname_pkg}
--------------------------------------------------

endif::[]
Expand Down
1 change: 1 addition & 0 deletions metricbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ include::../../libbeat/docs/version.asciidoc[]
:version: {stack-version}
:beatname_lc: metricbeat
:beatname_uc: Metricbeat
:beatname_pkg: {beatname_lc}
:security: X-Pack Security
:monitoringdoc: https://www.elastic.co/guide/en/x-pack/current
:dockerimage: docker.elastic.co/beats/{beatname_lc}:{version}
Expand Down
1 change: 1 addition & 0 deletions packetbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ include::../../libbeat/docs/version.asciidoc[]
:version: {stack-version}
:beatname_lc: packetbeat
:beatname_uc: Packetbeat
:beatname_pkg: {beatname_lc}
:security: X-Pack Security
:dockerimage: docker.elastic.co/beats/{beatname_lc}:{version}

Expand Down
1 change: 1 addition & 0 deletions winlogbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ include::../../libbeat/docs/version.asciidoc[]
:version: {stack-version}
:beatname_lc: winlogbeat
:beatname_uc: Winlogbeat
:beatname_pkg: {beatname_lc}
:security: X-Pack Security

include::./overview.asciidoc[]
Expand Down

0 comments on commit 8ab7461

Please sign in to comment.