Skip to content

Commit 985d814

Browse files
authored
Do not require sudo to run filebeat in Java tutorial (elastic#22366) (elastic#22402)
1 parent 3ad3c1b commit 985d814

File tree

2 files changed

+81
-6
lines changed

2 files changed

+81
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
// tag::deb[]
2+
3+
:beatname_url: {beats-ref-root}/{beatname_lc}/{branch}
4+
5+
["source","sh",subs="attributes"]
6+
----
7+
sudo service {beatname_pkg} start
8+
----
9+
10+
// tag::initd-note[]
11+
NOTE: If you use an `init.d` script to start {beatname_uc}, you can't specify command
12+
line flags (see {beatname_url}/command-line-options.html[Command reference]). To specify flags, start {beatname_uc} in
13+
the foreground.
14+
15+
// end::initd-note[]
16+
17+
Also see {beatname_url}/running-with-systemd.html[{beatname_uc} and systemd].
18+
// end::deb[]
19+
20+
// tag::rpm[]
21+
["source","sh",subs="attributes"]
22+
----
23+
sudo service {beatname_pkg} start
24+
----
25+
26+
include::start.asciidoc[tag=initd-note]
27+
28+
Also see {beatname_url}/running-with-systemd.html[{beatname_uc} and systemd].
29+
30+
// end::rpm[]
31+
32+
// tag::mac[]
33+
["source","sh",subs="attributes,callouts"]
34+
----
35+
./{beatname_lc} -e
36+
----
37+
// end::mac[]
38+
39+
// tag::brew[]
40+
To have launchd start +elastic/tap/{beatname_lc}+ and then restart it at login,
41+
run:
42+
43+
["source","sh",subs="attributes"]
44+
-----
45+
brew services start elastic/tap/{beatname_lc}-full
46+
-----
47+
48+
To run {beatname_uc} in the foreground instead of running it as a background
49+
service, run:
50+
51+
["source","sh",subs="attributes"]
52+
-----
53+
{beatname_lc} -e
54+
-----
55+
56+
// end::brew[]
57+
58+
// tag::linux[]
59+
60+
["source","sh",subs="attributes,callouts"]
61+
----
62+
./{beatname_lc} -e
63+
----
64+
65+
// end::linux[]
66+
67+
// tag::win[]
68+
["source","sh",subs="attributes"]
69+
----
70+
PS C:{backslash}Program Files{backslash}{beatname_lc}> Start-Service {beatname_lc}
71+
----
72+
73+
By default, Windows log files are stored in +C:{backslash}ProgramData{backslash}{beatname_lc}\Logs+.
74+
75+
// end::win[]

libbeat/docs/tab-widgets/start-widget-filebeat.asciidoc

+6-6
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
aria-labelledby="deb-start-filebeat">
5353
++++
5454

55-
include::start.asciidoc[tag=deb]
55+
include::start-filebeat.asciidoc[tag=deb]
5656

5757
++++
5858
</div>
@@ -63,7 +63,7 @@ include::start.asciidoc[tag=deb]
6363
hidden="">
6464
++++
6565

66-
include::start.asciidoc[tag=rpm]
66+
include::start-filebeat.asciidoc[tag=rpm]
6767

6868
++++
6969
</div>
@@ -74,7 +74,7 @@ include::start.asciidoc[tag=rpm]
7474
hidden="">
7575
++++
7676

77-
include::start.asciidoc[tag=mac]
77+
include::start-filebeat.asciidoc[tag=mac]
7878

7979
++++
8080
</div>
@@ -85,7 +85,7 @@ include::start.asciidoc[tag=mac]
8585
hidden="">
8686
++++
8787

88-
include::start.asciidoc[tag=brew]
88+
include::start-filebeat.asciidoc[tag=brew]
8989

9090
++++
9191
</div>
@@ -96,7 +96,7 @@ include::start.asciidoc[tag=brew]
9696
hidden="">
9797
++++
9898

99-
include::start.asciidoc[tag=linux]
99+
include::start-filebeat.asciidoc[tag=linux]
100100

101101
++++
102102
</div>
@@ -107,7 +107,7 @@ include::start.asciidoc[tag=linux]
107107
hidden="">
108108
++++
109109

110-
include::start.asciidoc[tag=win]
110+
include::start-filebeat.asciidoc[tag=win]
111111

112112
++++
113113
</div>

0 commit comments

Comments
 (0)