How To
Summary
In a QRadar environment, it is observed that when you add new log sources, the events per second (EPS) that a
QRadar Event Processor or Event Collector need to handle increases.
To match the increased EPS, sometimes you need do increase CPU cores particularly if the Event Processor, Event Collector, or both are VM installations.
To understand the supported minimum and suggested CPU cores needed to handle a particular amount of EPS, review the Event Processor requirements section in System requirements for virtual appliances
https://www.ibm.com/docs/en/qsip/7.4?topic=installations-system-requirements-virtual-appliances
Environment
Since, it is an EP, it also needs to respond to search queries, perform rule match, and so on.
Aug 4 00:43:28 ::ffff:N.N.N.N [hostcontext.hostcontext] [Thread-242] com.q1labs.hostcontext.sar.SarSentinel: [WARN] [NOT:0150124100][N.N.N.N/- -] [-/- -]System load over 1 minute has an average of 17.4 over the past 5 intervals, and has exceeded the configured threshold of 10.8. To resolve: If your system continues to exhibit this behavior, please contact Customer Support.
Aug 4 00:34:24 ::ffff:N.N.N.N [hostcontext.hostcontext] [Thread-242] com.q1labs.hostcontext.sar.SarSentinel: [WARN] [NOT:0150124100][N.N.N.N/- -] [-/- -]System load over 5 minutes has an average of 15.6 over the past 5 intervals, and has exceeded the configured threshold of 9. To resolve: If your system continues to exhibit this behavior, please contact Customer Support.
Aug 4 00:42:16 ::ffff:N.N.N.N [hostcontext.hostcontext] [Thread-242] com.q1labs.hostcontext.sar.SarSentinel: [WARN] [NOT:0150124100][N.N.N.N/- -] [-/- -]System load over 15 minutes has an average of 13.5 over the past 5 intervals, and has exceeded the configured threshold of 7.8. To resolve: If your system continues to exhibit this behavior, please contact Customer Support.
[root@<hostname> ~]# head -3 /opt/qradar/conf/hostcontext.sar_thresholds.conf
LOADAVERAGE1 System load over 1 minute GT 10.8 If your system continues to exhibit this behavior, please contact Customer Support. 1 1 1
LOADAVERAGE5 System load over 5 minutes GT 9 If your system continues to exhibit this behavior, please contact Customer Support. 1 2 1
LOADAVERAGE15 System load over 15 minutes GT 7.8 If your system continues to exhibit this behavior, please contact Customer Support. 1 3 1
[root@<hostname> ~]# nproc
8
[root@<hostname> ~]# nproc
24
Steps
1) If the following files exist on the system in question, move them by using the following command:
mkdir -p /store/temp_backup
mv /store/configservices/deployed/globalconfig/hostcontext.sar_thresholds.conf /store/temp_backup
mv /store/configservices/staging/globalconfig/hostcontext.sar_thresholds.conf /store/temp_backup
cat /opt/qradar/conf/hostcontext.sar_thresholds.conf | awk -v CPUS=$(cat /proc/cpuinfo | grep -c processor) -F '\t' 'BEGIN{OFS="\t"} $1 == "LOADAVERAGE1" {$4=CPUS*1.35 ; print} $1 == "LOADAVERAGE5" {$4=CPUS*1.125 ; print} $1 == "LOADAVERAGE15" {$4=CPUS*0.975 ; print} $1 !~ /LOADAVERAGE15$|LOADAVERAGE[15]$/ { print }' > /tmp/hostcontext.sar_thresholds.conf
install -o nobody -g nobody -m 644 /tmp/hostcontext.sar_thresholds.conf /opt/qradar/conf/hostcontext.sar_thresholds.conf
systemctl restart hostcontext
[root@<hostname> ~]# head -3 /opt/qradar/conf/hostcontext.sar_thresholds.conf
LOADAVERAGE1 System load over 1 minute GT 32.4 If your system continues to exhibit this behavior, please contact Customer Support. 1 1 1
LOADAVERAGE5 System load over 5 minutes GT 27 If your system continues to exhibit this behavior, please contact Customer Support. 1 2 1
LOADAVERAGE15 System load over 15 minutes GT 23.4 If your system continues to exhibit this behavior, please contact Customer Support. 1 3 1
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
02 November 2022
UID
ibm16619595