Skip to content

Latest commit

 

History

History
87 lines (75 loc) · 2.12 KB

parser_setup.md

File metadata and controls

87 lines (75 loc) · 2.12 KB

Parser Setup

We implement the audit log parser using C++. The setup has been tested using g++ 8.4.0. The required packages are as follow:

  1. Installation Path: "LIB_INSTALL_PATH"
cd lib
LIB_INSTALL_PATH=$PWD
  1. g++ (optional)
wget https://ftp.gnu.org/gnu/gcc/gcc-8.4.0/gcc-8.4.0.tar.gz
tar xzvf gcc-8.4.0.tar.gz
cd gcc-8.4.0
contrib/download_prerequisites
./configure -v --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --prefix=$LIB_INSTALL_PATH/lib -enable-checking=release --enable-languages=c,c++,fortran --disable-multilib
make -j8
make install
cd ..
  1. neo4j
sudo add-apt-repository ppa:cleishm/neo4j
sudo apt-get update
sudo apt-get install libssl-dev neo4j-client libneo4j-client-dev
  1. libpqxx (c++ postgresql)
sudo apt install libpq-dev
git clone https://github.com/jtv/libpqxx.git
cd libpqxx
git checkout master
./configure --disable-documentation --prefix=$LIB_INSTALL_PATH
make -j8
make install
cd ..
  1. libconfig
wget https://hyperrealm.github.io/libconfig/dist/libconfig-1.7.2.tar.gz
tar xzvf libconfig-1.7.2.tar.gz
cd libconfig-1.7.2/
./configure --prefix=$LIB_INSTALL_PATH
make -j8
make install
cd ../
  1. jsoncpp
sudo apt-get install libjsoncpp-dev
  1. nlohmann json
cd $LIB_INSTALL_PATH/include
wget https://raw.githubusercontent.com/nlohmann/json/develop/single_include/nlohmann/json.hpp
cd ../
  1. librdkafka
git clone https://github.com/edenhill/librdkafka.git
cd librdkafka/
# Install disabled lib (e.g., zlib) in ./configure.
./configure --prefix=$LIB_INSTALL_PATH
make -j8
make install
cd ../

Setup system system library path (Optional)

echo export CPLUS_INCLUDE_PATH=$LIB_INSTALL_PATH/include:$CPLUS_INCLUDE_PATH >> ~/.bashrc
echo export PATH=$LIB_INSTALL_PATH/bin:$PATH >> ~/.bashrc
echo export LD_LIBRARY_PATH=$LIB_INSTALL_PATH/lib:$LIB_INSTALL_PATH/lib64:$LD_LIBRARY_PATH >> ~/.bashrc
source ~/.bashrc

Kafka setup (optional)

Postgresql setup (optional)

Neo4j setup (optional)