Skip to content

Commit

Permalink
Add step to change file ownership on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
dedemorton authored and ruflin committed Apr 4, 2017
1 parent 40109e9 commit e92ad8f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
17 changes: 14 additions & 3 deletions filebeat/docs/getting-started.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,14 @@ modules) that you want to enable. The `-e` flag is optional and sends output
to standard error instead of syslog. The `-setup` flag is a one-time setup step.
For subsequent runs of Filebeat, do not specify this flag.

For example, to start Filebeat with the `system` module enabled and load the
sample Kibana dashboards, run:
NOTE: Depending on how you've installed Filebeat, you might see errors
related to file ownership or permissions when you try to run Filebeat modules.
See {libbeat}config-file-permissions.html[Config File Ownership and Permissions]
in the _Beats Platform Reference_ if you encounter errors related to file
ownership or permissions.

The following example starts Filebeat with the `system` module enabled and
loads the sample Kibana dashboards:

[source,shell]
----------------------------------------------------------------------
Expand Down Expand Up @@ -332,7 +338,7 @@ include::../../libbeat/docs/shared-template-load.asciidoc[]
[[filebeat-starting]]
=== Step 5: Starting Filebeat

Start Filebeat by issuing the appropriate command for your platform.
Start Filebeat by issuing the appropriate command for your platform.

NOTE: If you use an init.d script to start Filebeat on deb or rpm, you can't
specify command line flags (see <<filebeat-command-line>>). To specify flags,
Expand All @@ -356,8 +362,13 @@ sudo /etc/init.d/filebeat start

[source,shell]
----------------------------------------------------------------------
sudo chown root filebeat.yml <1>
sudo ./filebeat -e -c filebeat.yml -d "publish"
----------------------------------------------------------------------
<1> You'll be running Filebeat as root, so you need to change ownership
of the configuration file (see
{libbeat}config-file-permissions.html[Config File Ownership and Permissions]
in the _Beats Platform Reference_).

*win:*

Expand Down
5 changes: 5 additions & 0 deletions heartbeat/docs/getting-started.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,13 @@ sudo /etc/init.d/heartbeat start

["source","sh",subs="attributes"]
----------------------------------------------------------------------
sudo chown root heartbeat.yml <1>
sudo ./heartbeat -e -c heartbeat.yml -d "publish"
----------------------------------------------------------------------
<1> You'll be running Heartbeat as root, so you need to change ownership
of the configuration file (see
{libbeat}config-file-permissions.html[Config File Ownership and Permissions]
in the _Beats Platform Reference_).

*win:*

Expand Down
5 changes: 5 additions & 0 deletions metricbeat/docs/gettingstarted.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,13 @@ sudo /etc/init.d/metricbeat start

[source,shell]
----------------------------------------------------------------------
sudo chown root metricbeat.yml <1>
sudo ./metricbeat -e -c metricbeat.yml -d "publish"
----------------------------------------------------------------------
<1> You'll be running Metricbeat as root, so you need to change ownership
of the configuration file (see
{libbeat}config-file-permissions.html[Config File Ownership and Permissions]
in the _Beats Platform Reference_).

*win:*

Expand Down
5 changes: 5 additions & 0 deletions packetbeat/docs/gettingstarted.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,13 @@ sudo /etc/init.d/packetbeat start

[source,shell]
----------------------------------------------------------------------
sudo chown root packetbeat.yml <1>
sudo ./packetbeat -e -c packetbeat.yml -d "publish"
----------------------------------------------------------------------
<1> You'll be running Packetbeat as root, so you need to change ownership
of the configuration file (see
{libbeat}config-file-permissions.html[Config File Ownership and Permissions]
in the _Beats Platform Reference_).

*win:*

Expand Down

0 comments on commit e92ad8f

Please sign in to comment.