File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -82,12 +82,13 @@ user API.
8282** <<configuring-kerberos-realm,Configure a Kerberos realm>>.
8383
8484. Set up roles and users to control access to {es}.
85+ +
86+ --
8587For example, to grant _John Doe_ full access to all indices that match
8688the pattern `events*` and enable him to create visualizations and dashboards
8789for those indices in {kib}, you could create an `events_admin` role
8890and assign the role to a new `johndoe` user.
89- +
90- --
91+
9192[source,shell]
9293----------------------------------------------------------
9394curl -XPOST -u elastic 'localhost:9200/_security/role/events_admin' -H "Content-Type: application/json" -d '{
@@ -113,8 +114,7 @@ curl -XPOST -u elastic 'localhost:9200/_security/user/johndoe' -H "Content-Type:
113114// NOTCONSOLE
114115--
115116
116- [[enable-auditing]]
117- . Enable auditing to keep track of attempted and successful interactions with
117+ . [[enable-auditing]]Enable auditing to keep track of attempted and successful interactions with
118118 your {es} cluster:
119119+
120120--
You can’t perform that action at this time.
0 commit comments