Installing CORTEX

PorMateo Martinez

Installing CORTEX

cd /opt
wget https://dl.bintray.com/thehive-project/binary/cortex-latest.zip
unzip cortex-latest.zip
ln -s cortex-3.0.1-1/ cortex

cd /opt/cortex/conf
mv application.sample application.conf

sudo chgrp cortex /opt/cortex/conf/application.conf
sudo chmod 640 /opt/cortex/conf/application.conf

Edit application.conf and uncomment and create secret

Edit /usr/lib/systemd/system/cortex.service and update with correct paths to /opt

ExecStart=/opt/cortex/bin/cortex \
        -Dconfig.file=/opt/cortex/config/application.conf \
        -Dlogger.file=/opt/cortex/config/logback.xml \
        -Dpidfile.path=/dev/null

Edit /opt/cortex/package/cortex.service

ExecStart=/opt/cortex/bin/cortex \
        -Dconfig.file=/opt/cortex/conf/application.conf \
        -Dlogger.file=/opt/cortex/conf/logback.xml \
        -Dpidfile.path=/dev/null

Edit /opt/cortex/package/cortex.conf

script
  DAEMON_USER="cortex"
  DAEMON_ARGS="-Dconfig.file=/opt/cortex/conf/application.conf -Dlogger.file=/opt/cortex/conf/logback.xml -Dpidfile.path=/dev/null"

systemctl daemon-reload

sudo systemctl enable cortex
sudo service cortex start


Acerca del autor

Mateo Martinez administrator