[role="xpack"] [[list-analytics-collection]] === List Analytics Collections ++++ List Analytics Collections ++++ Returns information about Analytics Collections. [[list-analytics-collection-request]] ==== {api-request-title} `GET _application/analytics/` [[list-analytics-collection-prereq]] ==== {api-prereq-title} Requires the `manage_behavioral_analytics` cluster privilege. [[list-analytics-collection-path-params]] ==== {api-path-parms-title} ``:: (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/ ---- // TEST[skip:TBD] 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 ---- // TEST[skip:TBD] 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* ---- // TEST[skip:TBD] 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" } } } ---- // TEST[skip:TBD]