Skip to content

Commit dd42827

Browse files
committed
Fix issue with Sankey
1 parent 1a82e24 commit dd42827

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

default/data/ui/views/attack_range_main_dashboard.xml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -272,15 +272,16 @@
272272
</progress>
273273
<query>`get_attack_data`
274274
| lookup enterprise-attack-lookup Technique
275-
| eval Label = Tactic + " - " + mitre_tactic_display
276-
| eval Label2 = Technique + " - " + mitre_technique_display
275+
| eval Label = mvindex(Tactic,0) + " - " + mvindex(mitre_tactic_display, 0)
276+
| eval Label2 = Technique + " - " + mvindex(mitre_technique_display, 0)
277277
| stats count by Label2, Label
278278
| table Label, Label2, count
279279
| rename Label as step1, Label2 as step2
280280
| append [
281281
search `get_attack_data`
282282
| lookup enterprise-attack-lookup Technique
283-
| eval Label = Technique + " - " + mitre_technique_display
283+
| eval Label = Technique + " - " + mvindex(mitre_technique_display, 0)
284+
| eval Tactic = mvindex(Tactic, 0)
284285
| eventstats dc("Test Name") as count by Label, Tactic, "Test Name"
285286
| table Label, "Test Name", count
286287
| rename Label as step1, "Test Name" as step2
@@ -289,11 +290,13 @@
289290
<latest>$time_token.latest$</latest>
290291
</search>
291292
<option name="drilldown">none</option>
293+
<option name="refresh.display">progressbar</option>
292294
</viz>
293295
</panel>
294296
<panel depends="$SanskeyNotInstalled$">
295297
<html>
296-
<p>In order for this panel to show properly, please install the SanKey visualization available <a href="https://splunkbase.splunk.com/app/3112/">here</a></p>
298+
<p>In order for this panel to show properly, please install the SanKey visualization available <a href="https://splunkbase.splunk.com/app/3112/">here</a>
299+
</p>
297300
</html>
298301
</panel>
299302
</row>
@@ -402,9 +405,9 @@
402405
| search mitre_id!="None"
403406
| mvexpand mitre_id
404407
| rename mitre_id as mitre_technique]
405-
| stats dc(name) by name, mitre_technique, displayapp
406-
| table name, mitre_technique, displayapp
407-
| rename name as "Detection", mitre_technique as "Att&amp;ck Technique", displayapp as "Source"
408+
| stats dc(name) by name, mitre_technique, analytic_story, displayapp
409+
| table analytic_story, name, mitre_technique, displayapp
410+
| rename analytic_story as "Analytic Story", name as "Detection", mitre_technique as "Att&amp;ck Technique", displayapp as "Source"
408411
</query>
409412
<earliest>$time_token.earliest$</earliest>
410413
<latest>$time_token.latest$</latest>

0 commit comments

Comments
 (0)