mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #7020 from Security-Onion-Solutions/feature/dash_updates
EG and HL Dashboard Updates
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
{%- set MANAGER = salt['pillar.get']('global:url_base', '') %}
|
{%- set MANAGER = salt['pillar.get']('global:url_base', '') %}
|
||||||
|
{%- set ENDGAMEHOST = salt['pillar.get']('soc:endgamehost', 'ENDGAMEHOST') %}
|
||||||
. /usr/sbin/so-common
|
. /usr/sbin/so-common
|
||||||
|
|
||||||
check_file() {
|
check_file() {
|
||||||
@@ -24,6 +25,11 @@ import() {
|
|||||||
sed -i "s/PLACEHOLDER/{{ MANAGER }}/g" "$ndjson_file"
|
sed -i "s/PLACEHOLDER/{{ MANAGER }}/g" "$ndjson_file"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Endgame
|
||||||
|
if grep -lq 'ENDGAMEHOST' "$ndjson_file"; then
|
||||||
|
sed -i "s/ENDGAMEHOST/{{ ENDGAMEHOST }}/g" "$ndjson_file"
|
||||||
|
fi
|
||||||
|
|
||||||
wait_for_web_response "http://localhost:5601/app/kibana" "Elastic" 300 "{{ ELASTICCURL }}"
|
wait_for_web_response "http://localhost:5601/app/kibana" "Elastic" 300 "{{ ELASTICCURL }}"
|
||||||
|
|
||||||
SESSIONCOOKIE=$({{ ELASTICCURL }} -c - -X GET http://localhost:5601/ | grep sid | awk '{print $7}')
|
SESSIONCOOKIE=$({{ ELASTICCURL }} -c - -X GET http://localhost:5601/ | grep sid | awk '{print $7}')
|
||||||
|
|||||||
169
salt/kibana/files/hl.ndjson
Normal file
169
salt/kibana/files/hl.ndjson
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,3 +1,4 @@
|
|||||||
|
{% set HIGHLANDER = salt['pillar.get']('global:highlander', False) %}
|
||||||
include:
|
include:
|
||||||
- kibana
|
- kibana
|
||||||
|
|
||||||
@@ -16,3 +17,20 @@ so-kibana-dashboard-load:
|
|||||||
- require:
|
- require:
|
||||||
- sls: kibana
|
- sls: kibana
|
||||||
- file: dashboard_saved_objects_template
|
- file: dashboard_saved_objects_template
|
||||||
|
{%- if HIGHLANDER %}
|
||||||
|
dashboard_saved_objects_template_hl:
|
||||||
|
file.managed:
|
||||||
|
- name: /opt/so/conf/kibana/hl.ndjson
|
||||||
|
- source: salt://kibana/files/hl.ndjson
|
||||||
|
- user: 932
|
||||||
|
- group: 939
|
||||||
|
- show_changes: False
|
||||||
|
|
||||||
|
so-kibana-dashboard-load_hl:
|
||||||
|
cmd.run:
|
||||||
|
- name: /usr/sbin/so-kibana-config-load -i /opt/so/conf/kibana/hl.ndjson
|
||||||
|
- cwd: /opt/so
|
||||||
|
- require:
|
||||||
|
- sls: kibana
|
||||||
|
- file: dashboard_saved_objects_template_hl
|
||||||
|
{%- endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user