create_volumes.sh 454 Bytes
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
#!/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