#!/bin/env bash
mkdir -p data/{timescaledb,suricata,pcap,mosquitto,grafana-storage}
mkdir -p data/suricata/log
mkdir -p data/mosquitto/{data,log}
# Extract initial index. This allows us to use a predefined kibana dashboard
tar xzf elk_base.tar.gz -C ./data
# Extract initial data. This allows us to use a predefined grafana dashboard
tar xf grafana-storage.tar.xz -C ./data
# The lazy way, the most appropriate is to change the UID
chmod -R 777 data