Cybersecurity
DevOps Cloud
IT Operations Cloud
Summary
This article describes the steps on how to setup a cronjob to do graceful restart of Apache for Logger Searh Heads and Peers
Products
ArcSight Logger
Environment
Any version of Logger for Software and Appliance Form Factors
Situation
Slow response time for the searches that are done across a group of Logger peers on a Logger Search Head.
Resolution
A workaround for this issue is to create a cronjob to gracefully restart the apache service on each Logger.
The steps are as follows for either Appliance or Software Form Factor:
mkdir -p /opt/arcsight/scripts touch /opt/arcsight/scripts/graceful-restart.sh
chmod 744 /opt/arcsight/scripts/graceful-restart.sh
#! /usr/bin/env sh if [ -f "/etc/arcsight_model" ]; then # For Appliance Form Factor /opt/local/apache/bin/httpd -k graceful else # For Software Form Factor export LIP=$(find /opt/ -name loggerd | grep -oP ".+(?=/current/arcsight/logger/bin/loggerd)") export LD_LIBRARY_PATH="$LIP/current/local/apache/lib/:$LIP/current/local/openssl/lib/:$LIP/current/local/pcre/lib/" $LIP/current/local/apache/bin/httpd -k graceful -d $LIP/current/local/apache/ fi
crontab -e # Add the following 0 */24 * * * /opt/arcsight/scripts/graceful-restart.sh # Save the file on the text editor
URL Name
KM000015765