Siren Platform User Guide

Data set

To illustrate the logic and elements involved with Siren Alert we will generate some random data and insert it to Elasticsearch. Our sample JSON object will report a UTC @timestamp and mos value per each interval:

The following BASH script will produce our entries for a realistic example:

INDEX=`date +"%Y.%m.%d"`

echo "Press [CTRL+C] to stop.."
while :
    header="Content-Type: application/json"
    timestamp=`TZ=UTC date +"%Y-%m-%dT%T.%3N"`
    mos=$(( ( RANDOM % 5 )  + 1 ))
    echo $mystring;
    curl -sS -i -XPOST -H "$header" -d "$mystring" "$SERVER"
    sleep 5
  • Save the file as and execute it for a few minutes

Search results

    No results found