Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
bd95272
Convert tag cloud tests to jest (#70066)
DianaDerevyankina Jul 6, 2020
4492531
Fix kbn/optimizer tests (#70827)
Jul 6, 2020
da602fc
fix nav link to be hidden and update access tag (#70607)
XavierM Jul 6, 2020
321fb87
[EPM][Security Solution] Implementing dataset component templates (#7…
jonathan-buttner Jul 6, 2020
a4340f0
[ML] DF Analytics: add ability to edit job for fields supported by AP…
alvarezmelissa87 Jul 6, 2020
7b0e9df
[SIEM] Unskips and fixes 'Detection rules, custom' test (#70693)
MadameSheema Jul 6, 2020
cd50899
fixes and unskips 'export rule' test (#70699)
MadameSheema Jul 6, 2020
b8591bc
change user facing text Data streams to datasets (#70840)
neptunian Jul 6, 2020
984ea07
[Ingest Manager ] prepend kibana asset ids with package name (#70502)
neptunian Jul 6, 2020
ee06536
Remove the legacy Ingest Manager plugin. (#65534)
Jul 6, 2020
eb84503
upgrade caniuse-lite database (#70833)
Jul 6, 2020
11cfe80
[Metrics UI] Fix a bug in Metric Threshold query filter construction …
Zacqary Jul 6, 2020
ad20a17
skip flaky suite (#70880)
mistic Jul 6, 2020
c5dd942
Merge remote-tracking branch 'upstream/master'
mistic Jul 6, 2020
7debf4d
[Ingest Manager] Support limiting integrations on an agent config (#7…
jen-huang Jul 6, 2020
b0e64fc
Loads the attribution and display-name of the layer dynamically inste…
thomasneirynck Jul 6, 2020
94a18fd
Adding test user to maps functional tests - PR 1 (#70649)
bhavyarm Jul 6, 2020
2eb0896
[Ingest Manager] Copy changes (#70828)
neptunian Jul 6, 2020
e35a42a
[Component templates] Form wizard (#69732)
alisonelizabeth Jul 6, 2020
a9b543d
reenable regression and classification functional tests (#70661)
alvarezmelissa87 Jul 6, 2020
5992424
add button link to ingest (#70142)
parkiino Jul 6, 2020
57915e1
ServiceNow push to Incident generic implementation (supporting both C…
YulNaumenko Jul 6, 2020
610bff1
[Security Solution] Change default index pattern (#70797)
Jul 6, 2020
438e905
Added UI validation when creating a Webhook connector with invalid UR…
YulNaumenko Jul 7, 2020
c5eab10
Revert "reenable regression and classification functional tests (#706…
alvarezmelissa87 Jul 7, 2020
79e5a07
skip flaky suite (#70906)
mistic Jul 7, 2020
468201a
skip flaky suite (#67814)
mistic Jul 7, 2020
f62f3e3
skip flaky suite (#70885)
mistic Jul 7, 2020
4257afa
Adapt expected response of advanced settings feature control for clou…
kertal Jul 7, 2020
dfeb60b
moving indexPattern.delete() to indexPatterns.delete(indexPattern) (#…
ppisljar Jul 7, 2020
77e4019
[Uptime] Ping list body scroll (#70781)
shahzad31 Jul 7, 2020
053b922
[Composable template] Details panel + delete functionality (#70814)
sebelga Jul 7, 2020
f18002c
[ML] Adding peak_model_bytes to model size stats type (#70825)
jgowdyelastic Jul 7, 2020
aa99a70
Forbid timezones not working in Elasticsearch (#70780)
Jul 7, 2020
7d44d02
[APM] Adds 'Anomaly detection' settings page to create ML jobs per en…
ogupte Jul 7, 2020
648468d
Rename legacy ES mock accessors (#70432)
pgayvallet Jul 7, 2020
e58cc17
Fix Data Streams and Rollups Jobs deep-link bugs (#70903)
cjcenizal Jul 7, 2020
3219075
skip flaky suite (#70757)
mistic Jul 7, 2020
f304176
fix flaky test on tsvb switch index patterns (#70811)
stratoula Jul 7, 2020
7026a50
Update dependency @elastic/charts to v19.8.0 (#70803)
renovate[bot] Jul 7, 2020
8ee4945
fix: 🐛 remove inspector plugin dependency on share plugin (#70783)
streamich Jul 7, 2020
1c59658
fix: 🐛 revert back optimistic changes if IP update failed (#70794)
streamich Jul 7, 2020
0bae5d6
[Discover] Doc Table functional tests (#70776)
dej611 Jul 7, 2020
21fc56e
[Logs UI] Actions menu in log entry categorization page (#69567)
Jul 7, 2020
2f905e7
CI Reporter for saved objects field count (#70580)
rudolf Jul 7, 2020
e7c54d3
Rename HttpServerInfo.host to hostname (#70792)
pgayvallet Jul 7, 2020
5e869b0
[Metrics UI] Display Too Many Buckets error when previewing Inventory…
Zacqary Jul 7, 2020
d49c405
retain fallback for older saved objects
thomasneirynck Jul 7, 2020
23abe9d
[APM] docs: Custom APM index pattern with Kib API (#70897)
bmorelli25 Jul 7, 2020
49da11f
[APM] Quote trace id to ensure a word is searched (#69500) (#69504)
Sayrus Jul 7, 2020
e41692e
[Logs UI] Process long running requests in logs overview (#70791)
Jul 7, 2020
735d3ba
[APM] Improvements to data telemetry (#70524)
smith Jul 7, 2020
f946e8e
[Metrics UI] Set includeTimeseries on Observability fetchData request…
simianhacker Jul 7, 2020
50a2991
[Ingest Pipeline] Processor Editor Item Styling tweak (#70786)
jloleysens Jul 7, 2020
f0ef700
migrate service_settings test to jest
thomasneirynck Jul 7, 2020
530f10e
update test stub name
thomasneirynck Jul 7, 2020
b2fbc56
Merge branch 'master' into maps/load_config_dynamically
elasticmachine Jul 7, 2020
b1ec391
[Ingest Manager] Rate limit agent config update (#70871)
nchaulet Jul 7, 2020
6e35798
[Metrics UI] Performance improvements for Observability Homepage (#70…
simianhacker Jul 7, 2020
465ed21
[CI] Add pipeline task queue framework and merge workers into one (#6…
brianseeders Jul 7, 2020
06bc389
[Security Solution] [Timeline] Bugfix for timeline row actions disapp…
stephmilovic Jul 7, 2020
3884a3c
[Usage Collection] Ensure no type duplicates (#70946)
afharo Jul 7, 2020
aeff8c1
[Audit Logging] Add AuditTrail service (#69278)
mshustov Jul 7, 2020
de4bee5
Merge branch 'migrate_service_settings' into maps/load_config_dynamic…
thomasneirynck Jul 7, 2020
37c2c92
[Security Solution][Exceptions] - Tie server and client code together…
yctercero Jul 7, 2020
cb6fbc0
[APM] Add API tests (#70740)
sorenlouv Jul 7, 2020
0484b70
construct anchor kibana-side
thomasneirynck Jul 7, 2020
8b2b00c
Merge branch 'maps/load_config_dynamically' of github.com:thomasneiry…
thomasneirynck Jul 7, 2020
2ec2e2d
feedback
thomasneirynck Jul 7, 2020
e99974d
[Endpoint] Support redirect from Policy Details to Ingest when user i…
paul-tavares Jul 7, 2020
3f5ebdd
[Security Solution] [Timeline] Timeline manager tweaks (#69988)
stephmilovic Jul 7, 2020
53ee7a7
[savedObjects field count] run in baseline job (#70999)
Jul 7, 2020
f290c68
Improve search typescript (#69333)
lizozom Jul 7, 2020
d1f45b8
Fix breadcrumb on panels for visibility / round corners (#71010)
bkimmel Jul 7, 2020
2190f2a
[APM] Add cloud attributes to data telemetry (#71008)
smith Jul 7, 2020
7bded17
Migrate service settings test to jest (#70992)
thomasneirynck Jul 8, 2020
030daf8
[APM] Show license callout in ML settings (#70959)
sorenlouv Jul 8, 2020
7553720
Merge branch 'master' of github.com:elastic/kibana into maps/load_con…
thomasneirynck Jul 8, 2020
544de85
feedback
thomasneirynck Jul 8, 2020
c03ad5f
update test to match removal of _.escape
thomasneirynck Jul 8, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
35 changes: 35 additions & 0 deletions .ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
ARG NODE_VERSION=10.21.0

FROM node:${NODE_VERSION} AS base

RUN apt-get update && \
apt-get -y install xvfb gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 \
libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 \
libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 \
libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 \
libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget openjdk-8-jre && \
rm -rf /var/lib/apt/lists/*

RUN curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y rsync jq bsdtar google-chrome-stable \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN LATEST_VAULT_RELEASE=$(curl -s https://api.github.com/repos/hashicorp/vault/tags | jq --raw-output .[0].name[1:]) \
&& curl -L https://releases.hashicorp.com/vault/${LATEST_VAULT_RELEASE}/vault_${LATEST_VAULT_RELEASE}_linux_amd64.zip -o vault.zip \
&& unzip vault.zip \
&& rm vault.zip \
&& chmod +x vault \
&& mv vault /usr/local/bin/vault

RUN groupadd -r kibana && useradd -r -g kibana kibana && mkdir /home/kibana && chown kibana:kibana /home/kibana

COPY ./bash_standard_lib.sh /usr/local/bin/bash_standard_lib.sh
RUN chmod +x /usr/local/bin/bash_standard_lib.sh

COPY ./runbld /usr/local/bin/runbld
RUN chmod +x /usr/local/bin/runbld

USER kibana
2 changes: 1 addition & 1 deletion .ci/runbld_no_junit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
profiles:
- ".*": # Match any job
tests:
junit-filename-pattern: "8d8bd494-d909-4e67-a052-7e8b5aaeb5e4" # A bogus path that should never exist
junit-filename-pattern: false
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
/x-pack/plugins/licensing/ @elastic/kibana-platform
/x-pack/plugins/global_search/ @elastic/kibana-platform
/x-pack/plugins/cloud/ @elastic/kibana-platform
/x-pack/test/saved_objects_field_count/ @elastic/kibana-platform
/packages/kbn-config-schema/ @elastic/kibana-platform
/src/legacy/server/config/ @elastic/kibana-platform
/src/legacy/server/http/ @elastic/kibana-platform
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ npm-debug.log*
.tern-project
.nyc_output
.ci/pipeline-library/build/
.ci/runbld
.ci/bash_standard_lib.sh
.gradle

# apm plugin
Expand Down
44 changes: 1 addition & 43 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,49 +8,7 @@ kibanaPipeline(timeoutMinutes: 155, checkPrChanges: true, setCommitStatus: true)
ciStats.trackBuild {
catchError {
retryable.enable()
parallel([
'kibana-intake-agent': workers.intake('kibana-intake', './test/scripts/jenkins_unit.sh'),
'x-pack-intake-agent': workers.intake('x-pack-intake', './test/scripts/jenkins_xpack.sh'),
'kibana-oss-agent': workers.functional('kibana-oss-tests', { kibanaPipeline.buildOss() }, [
'oss-firefoxSmoke': kibanaPipeline.functionalTestProcess('kibana-firefoxSmoke', './test/scripts/jenkins_firefox_smoke.sh'),
'oss-ciGroup1': kibanaPipeline.ossCiGroupProcess(1),
'oss-ciGroup2': kibanaPipeline.ossCiGroupProcess(2),
'oss-ciGroup3': kibanaPipeline.ossCiGroupProcess(3),
'oss-ciGroup4': kibanaPipeline.ossCiGroupProcess(4),
'oss-ciGroup5': kibanaPipeline.ossCiGroupProcess(5),
'oss-ciGroup6': kibanaPipeline.ossCiGroupProcess(6),
'oss-ciGroup7': kibanaPipeline.ossCiGroupProcess(7),
'oss-ciGroup8': kibanaPipeline.ossCiGroupProcess(8),
'oss-ciGroup9': kibanaPipeline.ossCiGroupProcess(9),
'oss-ciGroup10': kibanaPipeline.ossCiGroupProcess(10),
'oss-ciGroup11': kibanaPipeline.ossCiGroupProcess(11),
'oss-ciGroup12': kibanaPipeline.ossCiGroupProcess(12),
'oss-accessibility': kibanaPipeline.functionalTestProcess('kibana-accessibility', './test/scripts/jenkins_accessibility.sh'),
// 'oss-visualRegression': kibanaPipeline.functionalTestProcess('visualRegression', './test/scripts/jenkins_visual_regression.sh'),
]),
'kibana-xpack-agent': workers.functional('kibana-xpack-tests', { kibanaPipeline.buildXpack() }, [
'xpack-firefoxSmoke': kibanaPipeline.functionalTestProcess('xpack-firefoxSmoke', './test/scripts/jenkins_xpack_firefox_smoke.sh'),
'xpack-ciGroup1': kibanaPipeline.xpackCiGroupProcess(1),
'xpack-ciGroup2': kibanaPipeline.xpackCiGroupProcess(2),
'xpack-ciGroup3': kibanaPipeline.xpackCiGroupProcess(3),
'xpack-ciGroup4': kibanaPipeline.xpackCiGroupProcess(4),
'xpack-ciGroup5': kibanaPipeline.xpackCiGroupProcess(5),
'xpack-ciGroup6': kibanaPipeline.xpackCiGroupProcess(6),
'xpack-ciGroup7': kibanaPipeline.xpackCiGroupProcess(7),
'xpack-ciGroup8': kibanaPipeline.xpackCiGroupProcess(8),
'xpack-ciGroup9': kibanaPipeline.xpackCiGroupProcess(9),
'xpack-ciGroup10': kibanaPipeline.xpackCiGroupProcess(10),
'xpack-accessibility': kibanaPipeline.functionalTestProcess('xpack-accessibility', './test/scripts/jenkins_xpack_accessibility.sh'),
// 'xpack-pageLoadMetrics': kibanaPipeline.functionalTestProcess('xpack-pageLoadMetrics', './test/scripts/jenkins_xpack_page_load_metrics.sh'),
'xpack-securitySolutionCypress': { processNumber ->
whenChanged(['x-pack/plugins/security_solution/', 'x-pack/test/security_solution_cypress/']) {
kibanaPipeline.functionalTestProcess('xpack-securitySolutionCypress', './test/scripts/jenkins_security_solution_cypress.sh')(processNumber)
}
},

// 'xpack-visualRegression': kibanaPipeline.functionalTestProcess('xpack-visualRegression', './test/scripts/jenkins_xpack_visual_regression.sh'),
]),
])
kibanaPipeline.allCiTasks()
}
}
}
Expand Down
85 changes: 85 additions & 0 deletions docs/apm/api.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Some APM app features are provided via a REST API:

* <<agent-config-api>>
* <<apm-annotation-api>>
* <<kibana-api,Kibana API>>

[float]
[[apm-api-example]]
Expand Down Expand Up @@ -468,3 +469,87 @@ curl -X POST \
}
}
--------------------------------------------------

////
*******************************************************
////

[[kibana-api]]
=== Kibana API

In addition to the APM specific API endpoints, Kibana provides its own <<api,REST API>>
which you can use to automate certain aspects of configuring and deploying Kibana.
An example is below.

[[api-create-apm-index-pattern]]
==== Customize the APM index pattern

As an alternative to updating <<apm-settings-in-kibana,`apm_oss.indexPattern`>> in your `kibana.yml` configuration file,
you can use Kibana's <<saved-objects-api-update,update object API>> to update the default APM index pattern on the fly.

The following example sets the default APM app index pattern to `some-other-pattern-*`:

[source,sh]
----
curl -X PUT "localhost:5601/api/saved_objects/index-pattern/apm_static_index_pattern_id" \ <1>
-H 'Content-Type: application/json' \
-H 'kbn-xsrf: true' \
-H 'Authorization: Basic ${YOUR_AUTH_TOKEN}' \
-d' {
"attributes": {
"title": "some-other-pattern-*", <2>
}
}'
----
<1> `apm_static_index_pattern_id` is the internal, hard-coded ID of the APM index pattern.
This value should not be changed
<2> Your custom index pattern matcher.

The API returns the following:

[source,json]
----
{
"id":"apm_static_index_pattern_id",
"type":"index-pattern",
"updated_at":"2020-07-06T22:55:59.555Z",
"version":"WzYsMV0=",
"attributes":{
"title":"some-other-pattern-*"
}
}
----

To view the new APM app index pattern, use the <<saved-objects-api-get,GET object API>>:

[source,sh]
----
curl -X GET "localhost:5601/api/saved_objects/index-pattern/apm_static_index_pattern_id" \ <1>
-H 'kbn-xsrf: true' \
-H 'Authorization: Basic ${YOUR_AUTH_TOKEN}'
----
<1> `apm_static_index_pattern_id` is the internal, hard-coded ID of the APM index pattern.

The API returns the following:

[source,json]
----
{
"id":"apm_static_index_pattern_id",
"type":"index-pattern",
"updated_at":"2020-07-06T22:55:59.555Z",
"version":"WzYsMV0=",
"attributes":{...}
"fieldFormatMap":"{...}
"fields":"[{...},{...},...]
"sourceFilters":"[{\"value\":\"sourcemap.sourcemap\"}]",
"timeFieldName":"@timestamp",
"title":"some-other-pattern-*"
},
...
}
----

// More examples will go here

More information on Kibana's API is available in <<api,REST API>>.
3 changes: 2 additions & 1 deletion docs/apm/set-up.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ simply click *Load Kibana objects* at the bottom of the Setup Instructions.
[role="screenshot"]
image::apm/images/apm-index-pattern.png[Setup index pattern for APM in Kibana]

To use a custom index pattern, see <<apm-settings-in-kibana>>.
TIP: To use a custom index pattern,
adjust Kibana's <<apm-settings-in-kibana,settings>> or use the <<api-create-apm-index-pattern,Kibana API>>.

[float]
[[apm-getting-started-next]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-server](./kibana-plugin-core-server.md) &gt; [AuditableEvent](./kibana-plugin-core-server.auditableevent.md)

## AuditableEvent interface

Event to audit.

<b>Signature:</b>

```typescript
export interface AuditableEvent
```

## Remarks

Not a complete interface.

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [message](./kibana-plugin-core-server.auditableevent.message.md) | <code>string</code> | |
| [type](./kibana-plugin-core-server.auditableevent.type.md) | <code>string</code> | |

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-server](./kibana-plugin-core-server.md) &gt; [AuditableEvent](./kibana-plugin-core-server.auditableevent.md) &gt; [message](./kibana-plugin-core-server.auditableevent.message.md)

## AuditableEvent.message property

<b>Signature:</b>

```typescript
message: string;
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-server](./kibana-plugin-core-server.md) &gt; [AuditableEvent](./kibana-plugin-core-server.auditableevent.md) &gt; [type](./kibana-plugin-core-server.auditableevent.type.md)

## AuditableEvent.type property

<b>Signature:</b>

```typescript
type: string;
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-server](./kibana-plugin-core-server.md) &gt; [Auditor](./kibana-plugin-core-server.auditor.md) &gt; [add](./kibana-plugin-core-server.auditor.add.md)

## Auditor.add() method

Add a record to audit log. Service attaches to a log record: - metadata about an end-user initiating an operation - scope name, if presents

<b>Signature:</b>

```typescript
add(event: AuditableEvent): void;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| event | <code>AuditableEvent</code> | |

<b>Returns:</b>

`void`

## Example

How to add a record in audit log:

```typescript
router.get({ path: '/my_endpoint', validate: false }, async (context, request, response) => {
context.core.auditor.withAuditScope('my_plugin_operation');
const value = await context.core.elasticsearch.legacy.client.callAsCurrentUser('...');
context.core.add({ type: 'operation.type', message: 'perform an operation in ... endpoint' });

```

21 changes: 21 additions & 0 deletions docs/development/core/server/kibana-plugin-core-server.auditor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-server](./kibana-plugin-core-server.md) &gt; [Auditor](./kibana-plugin-core-server.auditor.md)

## Auditor interface

Provides methods to log user actions and access events.

<b>Signature:</b>

```typescript
export interface Auditor
```

## Methods

| Method | Description |
| --- | --- |
| [add(event)](./kibana-plugin-core-server.auditor.add.md) | Add a record to audit log. Service attaches to a log record: - metadata about an end-user initiating an operation - scope name, if presents |
| [withAuditScope(name)](./kibana-plugin-core-server.auditor.withauditscope.md) | Add a high-level scope name for logged events. It helps to identify the root cause of low-level events. |

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-server](./kibana-plugin-core-server.md) &gt; [Auditor](./kibana-plugin-core-server.auditor.md) &gt; [withAuditScope](./kibana-plugin-core-server.auditor.withauditscope.md)

## Auditor.withAuditScope() method

Add a high-level scope name for logged events. It helps to identify the root cause of low-level events.

<b>Signature:</b>

```typescript
withAuditScope(name: string): void;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| name | <code>string</code> | |

<b>Returns:</b>

`void`

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-server](./kibana-plugin-core-server.md) &gt; [AuditorFactory](./kibana-plugin-core-server.auditorfactory.md) &gt; [asScoped](./kibana-plugin-core-server.auditorfactory.asscoped.md)

## AuditorFactory.asScoped() method

<b>Signature:</b>

```typescript
asScoped(request: KibanaRequest): Auditor;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| request | <code>KibanaRequest</code> | |

<b>Returns:</b>

`Auditor`

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-server](./kibana-plugin-core-server.md) &gt; [AuditorFactory](./kibana-plugin-core-server.auditorfactory.md)

## AuditorFactory interface

Creates [Auditor](./kibana-plugin-core-server.auditor.md) instance bound to the current user credentials.

<b>Signature:</b>

```typescript
export interface AuditorFactory
```

## Methods

| Method | Description |
| --- | --- |
| [asScoped(request)](./kibana-plugin-core-server.auditorfactory.asscoped.md) | |

Loading