search cancel

Unable to run SIEM agent as a Cron job


Article ID: 202973


Updated On:


CASB Audit CASB Gateway Advanced


Running the SIEM agent from crontab results in the following error:

Log_Exporter_Client-ERROR-Config.json does not exist or it is not present in the same directory in which is present. Exiting!



The config.json needs to be in the location the Python command is running from, not the location of the SIEM agent .py file.

The cron command looks like the following

python /home/admin/SIEM agent/ --severity all


Place the config.json file in the location where the python command is running from.  The default for cron is the home directory of the use running the job.  If it is root, then place the config.json in /root.  For other users it will be /home/<username>