# qradar-multitenant-app **Repository Path**: mirrors_ibm/qradar-multitenant-app ## Basic Information - **Project Name**: qradar-multitenant-app - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-08 - **Last Updated**: 2025-09-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # qradar-multitenant-app The solution involves developing a chat assistant inside QRadar application that provides an administrative interface. This interface will allow administrators to input key elements such as tenants, associated domains, log sources, networks, security profiles, roles, and users. The goal is to streamline the creation of new tenants with a one-click process, ensuring an integrated and efficient approach. This repo contains two main folder. 1. multiTenantQRadarApp contains the zip file for QRadar App that we can deploy on the QRadar instance. 2. multitenantConf-via-watsonxAssistant which has all the files that has been used in assistant for configuring the complete flow ## Importing Custom Extensions in Watsonx Assistant 1. Log in to your Watsonx Assistant instance.** 2. Navigate to the Integration section located at the bottom left corner. ![img](./static/1.png) 3. Select "Build custom extension" from the Extensions section. ![img](./static/2.png) 4. Click "Next" to proceed. ![img](./static/3.png) 5. Enter a name for your extension and provide a description if desired. ![img](./static/4.png) 6. Click "Next" to continue. 7. In the Import OpenAPI section, click on "Drag and drop file here" or "Click to upload." ![img](./static/5.png) 8. Upload the CreatingTenant&Domain.json file you downloaded from GitHub. 9. Click "Next" 10. On the Review page, verify your extension details and click "Finish." ![img](./static/6.png) 11. Find your uploaded extension under the "Build Custom Extension" section. 12. Click "Add", then click "Next ![img](./static/7.png) 13. Keep the Authentication information as is and Click Next again. ![img](./static/8.png) 14. Click "Finish" to complete the import process. ![img](./static/9.png) 15. Repeat steps 1 through 12 for the second custom extension. 16. Under Step 12 for the second extension’s Authentication settings, choose "API Key Auth" and enter the token generated from the Authorized Service in the QRadar Console. ![img](./static/10.png) ## Importing Action Steps in Watsonx Assistant 1. Go to the Action section within Watsonx Assistant. 2. Click the Settings button located at the top right corner. ![img](./static/11.png) 3. Select "Upload/Download". 4. Click on "Drag and drop file here" or "Click to select a file". ![img](./static/12.png) 5. Upload the QRadarMTConf-watonxAssistant-action.json file. 6. Click "Save" to complete the upload. After configuring the assistant. Update the script tag in QRadar app. QRadar SDK documentation https://www.ibm.com/support/pages/qradar-whats-new-app-framework-sdk-v200 how to install QRadar SDK https://www.ibm.com/support/pages/qradar-whats-new-app-framework-sdk-v200#i ## To install the app on QRadar using the SDK, follow these simple steps: Step1: Identify Default Server and User Values (Optional) 1. qapp server -q -u Step2: Package the App 1. qapp package -p com.mycompany.myapp.zip Step3: Deploy the App to QRadar 1. qapp deploy -q -u -p com.mycompany.myapp.zip Note: “Replace with the IP or hostname of your QRadar console and with the username of a user with the necessary permissions to deploy apps. The app will be uploaded to QRadar and installed for use." ## Steps to deploy code on IBM Code Engine Step1: Login to ibm cloud from your terminal Step2: Select the target group 1. ibmcloud target -g `${target_group_name}` Step3: Select the project created where you want to deploy the function 1. ibmcloud ce project select -n `${project_name}` Step4: Deploy the code-engine plugin in the terminal with the following command 1. ibmcloud plugin install code-engine Step5: To create the nodejs function in code engine 1. ibmcloud ce fn create --name `${function_name}` --runtime nodejs-18 --build-source . Step6: To update the same function 1. ibmcloud ce fn update --name `${function_name}` --runtime nodejs-18 --build-source . ## Adding Environment Variables in IBM Code Engine 1. Log in to IBM Cloud and access IBM Code Engine by clicking on the hamburger menu on the top left corner. ![img](./static/C1.png) 2. In the left pane, click on the "Projects" option. ![img](./static/C2.png) 3. Select your project from the list. 4. Navigate to "Secrets and Configmaps." 5. Click "Create" and choose "Configmap." ![img](./static/C3.png) 6. Click "Next." ![img](./static/C4.png) 7. Provide a Configmap name and click "Add key-value pair." 8. Create two key-value pairs: one for API_IP and another for SEC_TOKEN. 9. Click Create ![img](./static/C5.png) ## Mapping Credentials to Your Function 1. In the left pane, click on the "Function" section. 2. Access the function you created. ![img](./static/C6.png) 3. Go to the "Environment Variables" tab. 4. Click "Add Environment Variables." ![img](./static/C7.png) 5. To map the entire Configmap, select "Reference to full Configmap." 6. To map only a specific key, choose "Reference to key in Secret." 7. Click "Add." ![img](./static/C8.png) ## List of Environment Variables in IBM Code Engine 1. SEC_TOKEN 2. API_IP 3. HOST 4. SSH_USERNAME 5. SSH_PASSWORD ## Update in hello.html file in QRAdar APP app/template folder after your watsonx assistant is ready 1. integrationID 2. region 3. serviceInstanceID