123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- [role="xpack"]
- [[list-analytics-collection]]
- === List Analytics Collections
- beta::[]
- ++++
- <titleabbrev>List Analytics Collections</titleabbrev>
- ++++
- .New API reference
- [sidebar]
- --
- For the most up-to-date API details, refer to {api-es}/group/endpoint-analytics[Behavioral analytics APIs].
- --
- ////
- [source,console]
- ----
- PUT _application/analytics/my_analytics_collection
- PUT _application/analytics/my_analytics_collection2
- ----
- // TESTSETUP
- [source,console]
- ----
- DELETE _application/analytics/my_analytics_collection
- DELETE _application/analytics/my_analytics_collection2
- ----
- // TEARDOWN
- ////
- Returns information about <<behavioral-analytics-overview,Behavioral Analytics>> Collections.
- [[list-analytics-collection-request]]
- ==== {api-request-title}
- `GET _application/analytics/<criteria>`
- [[list-analytics-collection-prereq]]
- ==== {api-prereq-title}
- Requires the `manage_behavioral_analytics` cluster privilege.
- [[list-analytics-collection-path-params]]
- ==== {api-path-parms-title}
- `<criteria>`::
- (optional, string)
- Criteria is used to find a matching analytics collection. This could be the name of the collection or a pattern to match multiple. If not specified, will return all analytics collections.
- [[list-analytics-collection-response-codes]]
- ==== {api-response-codes-title}
- `404`::
- Criteria does not match any Analytics Collections.
- ==== {api-response-codes-title}
- [[list-analytics-collection-example]]
- ==== {api-examples-title}
- The following example lists all configured Analytics Collections:
- [source,console]
- ----
- GET _application/analytics/
- ----
- A sample response:
- [source,console-result]
- ----
- {
- "my_analytics_collection": {
- "event_data_stream": {
- "name": "behavioral_analytics-events-my_analytics_collection"
- }
- },
- "my_analytics_collection2": {
- "event_data_stream": {
- "name": "behavioral_analytics-events-my_analytics_collection2"
- }
- }
- }
- ----
- The following example returns the Analytics Collection that matches `my_analytics_collection`:
- [source,console]
- ----
- GET _application/analytics/my_analytics_collection
- ----
- A sample response:
- [source,console-result]
- ----
- {
- "my_analytics_collection": {
- "event_data_stream": {
- "name": "behavioral_analytics-events-my_analytics_collection"
- }
- }
- }
- ----
- The following example returns all Analytics Collections prefixed with `my`:
- [source,console]
- ----
- GET _application/analytics/my*
- ----
- A sample response:
- [source,console-result]
- ----
- {
- "my_analytics_collection": {
- "event_data_stream": {
- "name": "behavioral_analytics-events-my_analytics_collection"
- }
- },
- "my_analytics_collection2": {
- "event_data_stream": {
- "name": "behavioral_analytics-events-my_analytics_collection2"
- }
- }
- }
- ----
|