Enable debug level logging if you encounter an error when you import assets from an
IBM® QRadar data source or if you need more
detailed information about how the connector is operating. To enable debug level logging for the
QRadar
Connected Assets and Risk connector, you can use Red Hat® OpenShift® Console, kubectl, or oc.
About this task
Debug level logging occurs only during a connector import from a QRadar data source, when the connector's cron job creates
a connector pod.
To enable debug level logging by using Red Hat OpenShift Console, you must have a Red Hat OpenShift login. To enable debug level logging by using
kubectl or oc, you must have an oc login.
Procedure
- To enable debug level logging by using Red Hat OpenShift Console, complete the following steps.
- From the Red Hat OpenShift Container Platform menu, under
Workloads, click Deployments.
- In your car-connector-config deployment, on the
YAML tab, change the
replicas
scale from
1 to 0, and click Save.
- From the Red Hat OpenShift Container Platform menu, under
Workloads, click CronJobs.
- In your cp4s-car-<unique_ID> cron job, click the YAML tab.
- Edit the connector cron job YAML file to include the following variables in the
section of the file, and click Save.
- name: DEBUG
value: 'true'
- To enable debug level logging by using kubectl, complete the following steps.
- From the command line, run the following command to change the scale from
1 to 0 in your
car-connector-config deployment.
kubectl scale deploy car-connector-config --replicas=0 -n cp4s
- To view the connector cron job YAML file, run the following command.
kubectl edit cronjob cp4s-car-<unique_ID> -o yaml -n cp4s
- To edit the connector cron job YAML file, type
i.
- Edit the connector cron job YAML file to include the following variables in the
section of the file.
- name: DEBUG
value: 'true'
- To save your changes, type :wq, and press
Enter.
- To enable debug level logging by using oc, complete the following steps.
- From the command line, run the following command to change the scale from
1 to 0 in your
car-connector-config deployment.
oc scale dc car-connector-config --replicas=0 -n cp4s
- To view the connector cron job YAML file, run the following command.
oc edit cronjob cp4s-car-<unique_ID> -o yaml -n cp4s
- To edit the connector cron job YAML file, type
i.
- Edit the connector cron job YAML file to include the following variables in the
section of the file.
- name: DEBUG
value: 'true'
- To save your changes, type :wq, and press
Enter.
- Change the
replicas
scale in your
car-connector-config deployment to its original value of
1 when you finish the debugging process.