Skip to content

Commit

Permalink
Added debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Nov 22, 2024
1 parent e7ccc0e commit 71f38df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dashboards/scripts/shared-object-creation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ if [[ "${CREATE_OS_ARKIME_SESSION_INDEX:-true}" = "true" ]] ; then
[[ "${TEMPLATES_IMPORTED}" == "true" ]] && SHOW_IMPORT_ERROR="--show-error" || SHOW_IMPORT_ERROR=

# Create index pattern
echo "Creating index pattern \"$INDEX_PATTERN\"..."
curl "${CURL_CONFIG_PARAMS[@]}" -w "\n" --location --fail --silent --output /dev/null ${SHOW_IMPORT_ERROR} -XPOST -H "Content-Type: application/json" -H "$XSRF_HEADER: anything" \
"$DASHB_URL/api/saved_objects/index-pattern/${INDEX_PATTERN}?overwrite=${TEMPLATES_IMPORTED}" \
-d"{\"attributes\":{\"title\":\"$INDEX_PATTERN\",\"timeFieldName\":\"$INDEX_TIME_FIELD\"}}" 2>&1 || true
Expand Down

0 comments on commit 71f38df

Please sign in to comment.