Configure ELK
In this section you will create the integration with ELK.
π TASK: Create the ELK Integration
π Documentation for the Task: Creating ELK connectionsCreate the ELK Integration with the following parameters:
ELK service URL: from MY_CONFIGURATION.txtKibana URL: from MY_CONFIGURATION.txtAuthentication type: TokenToken: from MY_CONFIGURATION.txtFilter:{"query": {"bool": {
In the
CP4AIOPS
βHamburgerβ Menu selectDefine
/Data and tool connections
Click
Add connection
Under
ELK
, click onAdd connection
Click
Connect
Name it
ELK
π Get the data from your configuration file
MY_CONFIGURATION.txt
- section2.2 Configure ELK
./tools/11_practicum/get_configuration_info.sh > MY_CONFIGURATION.txtFill out the fields on the first page:
ELK service URL: from MY_CONFIGURATION.txtKibana URL: from MY_CONFIGURATION.txtAuthentication type: TokenToken: from MY_CONFIGURATION.txtFilter:{"query": {"bool": {Click
Test connection
. You should getConnection successful!
Click
Next
Fill out the
Field mapping
:{"codec": "elk","message_field": "message","log_entity_types": "kubernetes.container_image_id, kubernetes.host, kubernetes.pod_name, kubernetes.namespace_name","instance_id_field": "kubernetes.container_name","rolling_time": 10,"timestamp_field": "@timestamp"}Click
Next
Turn On
Data collection
Select
Live data for continuous AI training and anomaly detection
Click
Done
Make sure that the Data Collection and Connection Status turn green after a few minutes
Page last updated: 03 November 2022