#!/bin/bash

export PATH=/bin:/usr/bin
cur_dir=`pwd`
./process_logs.py $1
sed -i "s/ES_INDEX/$2/" joblog.conf
sed -i "s/CUR_DIR/$cur_dir/" joblog.conf
/opt/logstash/bin/logstash -f joblog.conf

#!/bin/bash

export PATH=/bin:/usr/bin
cur_dir=`pwd`
./process_logs.py $1
sed -i "s/ES_INDEX/$2/" joblog.conf
sed -i "s|CUR_DIR|$cur_dir|" joblog.conf
/opt/logstash/bin/logstash -f joblog.conf

Use | as a delimiter in sed since we're using paths
Use | as a delimiter in sed since we're using paths
