Skip to content

Commit

Permalink
Add Arkime live WISE connections
Browse files Browse the repository at this point in the history
  • Loading branch information
piercema committed Feb 13, 2025
1 parent 0882d24 commit eee23bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions arkime/scripts/live_capture.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ CERT_FILE="${ARKIME_DIR}"/etc/viewer.crt
KEY_FILE="${ARKIME_DIR}"/etc/viewer.key
PUSER=${PUSER:-"arkime"}
PGROUP=${PGROUP:-"arkime"}
WISE=${WISE:-"false"}
WISE_URL=${ARKIME_WISE_SERVICE_URL:-"https://user@passwordarkime:8081"}

OPENSEARCH_PRIMARY=${OPENSEARCH_PRIMARY:-"opensearch-local"}
OPENSEARCH_URL=${OPENSEARCH_URL:-"http://opensearch:9200"}
Expand Down Expand Up @@ -55,6 +57,9 @@ if [[ -n "${EXTRA_TAGS}" ]]; then
done < <(echo "${EXTRA_TAGS}" | tr ',' '\n') # loop over ',' separated EXTRA_TAGS values
fi

if [[ ${WISE} == "true" ]]; then
sed -i "s|^\(wiseURL=\).*|\1""${WISE_URL}"|" "${ARKIME_WISE_CONFIG_FILE}"
fi
# we haven't dropUser/dropGroup'ed yet, so make sure the regular user owns the files we just touched
[[ -n ${PUID} ]] && [[ -n ${PGID} ]] && chown -f -R ${PUID}:${PGID} "${ARKIME_DIR}"/etc/ || true
Expand Down
4 changes: 3 additions & 1 deletion config/arkime-live.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ ARKIME_LIVE_NODE_HOST=

ARKIME_PCAP_PROCESSOR=false
VIEWER=on
WISE=off
WISE=off
# If using the Arkime WISE plugin, set the URL for the WISE service
ARKIME_WISE_SERVICE_URL=https://user:password@arkime:8081

0 comments on commit eee23bc

Please sign in to comment.