From b2ca178fb14a9ef8db5d58181902891faddece1e Mon Sep 17 00:00:00 2001 From: jzonthemtn Date: Thu, 2 Jan 2025 10:51:44 -0500 Subject: [PATCH] Moving scripts. Signed-off-by: jzonthemtn --- queryset.json => cli-runner/queryset.json | 0 run.sh => cli-runner/run.sh | 0 sampling.json => cli-runner/sampling.json | 0 create-index.sh | 7 ---- events-mapping.json | 45 ----------------------- 5 files changed, 52 deletions(-) rename queryset.json => cli-runner/queryset.json (100%) rename run.sh => cli-runner/run.sh (100%) rename sampling.json => cli-runner/sampling.json (100%) delete mode 100755 create-index.sh delete mode 100644 events-mapping.json diff --git a/queryset.json b/cli-runner/queryset.json similarity index 100% rename from queryset.json rename to cli-runner/queryset.json diff --git a/run.sh b/cli-runner/run.sh similarity index 100% rename from run.sh rename to cli-runner/run.sh diff --git a/sampling.json b/cli-runner/sampling.json similarity index 100% rename from sampling.json rename to cli-runner/sampling.json diff --git a/create-index.sh b/create-index.sh deleted file mode 100755 index 2566073..0000000 --- a/create-index.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -e - -echo "Creating ubi_events index" - -curl -X DELETE http://localhost:9200/ubi_events -curl -X PUT http://localhost:9200/ubi_events -H "Content-Type: application/json" -curl -X PUT http://localhost:9200/ubi_events/_mapping -H "Content-Type: application/json" -d @./events-mapping.json diff --git a/events-mapping.json b/events-mapping.json deleted file mode 100644 index cdb1393..0000000 --- a/events-mapping.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "properties": { - "application": { "type": "keyword", "ignore_above": 256 }, - "action_name": { "type": "keyword", "ignore_above": 100 }, - "client_id": { "type": "keyword", "ignore_above": 100 }, - "message": { "type": "keyword", "ignore_above": 1024 }, - "message_type": { "type": "keyword", "ignore_above": 100 }, - "timestamp": { - "type": "date", - "format":"strict_date_time", - "ignore_malformed": true, - "doc_values": true - }, - "event_attributes": { - "dynamic": true, - "properties": { - "position": { - "properties": { - "ordinal": { "type": "integer" }, - "x": { "type": "integer" }, - "y": { "type": "integer" }, - "page_depth": { "type": "integer" }, - "scroll_depth": { "type": "integer" }, - "trail": { "type": "text", - "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } - } - } - } - }, - "object": { - "properties": { - "internal_id": { "type": "keyword" }, - "object_id": { "type": "keyword", "ignore_above": 256 }, - "object_id_field": { "type": "keyword", "ignore_above": 100 }, - "name": { "type": "keyword", "ignore_above": 256 }, - "description": { "type": "text", - "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } - }, - "object_detail": { "type": "object" } - } - } - } - } - } -} \ No newline at end of file