Commit caffc298 authored by Radek Ošlejšek's avatar Radek Ošlejšek
Browse files

Rename script to tools

parent b6baba48
Loading
Loading
Loading
Loading

scripts/insertDevelDataToELK.sh

deleted100755 → 0
+0 −18
Original line number Diff line number Diff line
#!/bin/bash
#
# The elk-portal-commands-events has to be running.
#
# This scipt removes all data from the running ELK and inserts
# the development data inside.
#
# Run this scrip fro mwithin the data/scripts/ directory!
# Data upload takes long time.
#

sudo docker ps -as
curl -X DELETE 'http://localhost:9200/_all'

pushd ../../elk-portal-commands-events
./insert-events.sh --skip-invalid-json ../data/2022-05-04\ PA197\ seminar/
popd
+0 −17
Original line number Diff line number Diff line
#!/bin/bash
#
# The elk-portal-commands-events has to be running.
#
# This scipt removes all data from the running ELK and inserts
# the Insider attack data!
#
# Run this scrip fro mwithin the data/scripts/ directory!
# Data upload takes long time.
#

sudo docker ps -as
curl -X DELETE 'http://localhost:9200/_all'

pushd ../../elk-portal-commands-events
./insert-events.sh --skip-invalid-json ../data/2022-11-00\ Insider-attack/results-ok/
popd

scripts/players2csv.sh

deleted100755 → 0
+0 −23
Original line number Diff line number Diff line
#!/bin/bash
#
# INOUT: Cut&paste data from the summary page of KYPO platform (instance -> Linear -> training name), i.e. lines like:
#
# Zdeněk Ondra
# 19 Nov 2022 20:54
# 19 Nov 2022 22:08
# finished
# 1 hour
# 203
# Petr Babič
# 17 Nov 2022 15:45
# 17 Nov 2022 20:33
# finished
# 4 hours
# 166
#
# OUTPUT: # CSV records like
#
# Zdeněk Ondra;19 Nov 2022 20:54;19 Nov 2022 22:08;finished;1 hour;203;
# Petr Babič;17 Nov 2022 15:45;17 Nov 2022 20:33;finished;4 hours;166;

sed -e 's/$/;/' | paste -d ";" - - - - - - | sed -e 's/;;/;/g'