Skip to content

Commit

Permalink
Merge pull request #4 from piercema/create_initial_index
Browse files Browse the repository at this point in the history
Add OpenSearch API call to create indices
  • Loading branch information
piercema authored Sep 17, 2024
2 parents 1b5e003 + 36ef9d7 commit 00f7db7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dashboards/scripts/shared-object-creation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,17 @@ if [[ "${CREATE_OS_ARKIME_SESSION_INDEX:-true}" = "true" ]] ; then
# end OpenSearch Tweaks
#############################################################################################################################


# OpenSearch Create Initial Indices

curl "${CURL_CONFIG_PARAMS[@]}" -w "\n" --location --silent --output /dev/null --show-error \
-XPUT "$OPENSEARCH_URL_TO_USE/${MALCOLM_NETWORK_INDEX_PATTERN%?}initial" \
-H "$XSRF_HEADER:true" -H 'Content-type:application/json'

curl "${CURL_CONFIG_PARAMS[@]}" -w "\n" --location --silent --output /dev/null --show-error \
-XPUT "$OPENSEARCH_URL_TO_USE/${MALCOLM_OTHER_INDEX_PATTERN%?}initial" \
-H "$XSRF_HEADER:true" -H 'Content-type:application/json'

# before we go on to create the anomaly detectors, we need to wait for actual network log documents
/data/opensearch_status.sh -w >/dev/null 2>&1
sleep 60
Expand Down

0 comments on commit 00f7db7

Please sign in to comment.