Skip to content

Commit

Permalink
Changed descriptions and timespan
Browse files Browse the repository at this point in the history
  • Loading branch information
kra-ts committed Feb 20, 2022
1 parent 8c3174b commit 12fe197
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions queries/AuditKeyValues.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: AuditKeyValues
description: "Parses the field AuditKeyValues array to key=value fields"
visualization:
options:
columns: '[{"type":"field","fieldName":"@timestamp","width":210},{"type":"field","fieldName":"@rawstring"}]'
newestAtBottom: 'true'
showOnlyFirstLine: 'false'
newestAtBottom: "true"
showOnlyFirstLine: "false"
type: list-view
$schema: https://schemas.humio.com/query/v0.1.0
timeInterval:
isLive: false
start: 1y
start: 1d
queryString: |-
writeJson(AuditKeyValues, as=_json)
| replace(field=_json, as=_json, regex="(^\\{\"AuditKeyValues\":\\[)|(\\]\\}$)|(\\\"Key\\\":)|(,\\\"ValueString\\\")", with="")
Expand Down
7 changes: 4 additions & 3 deletions queries/DetectionURL.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: DetectionURL
description: "Create link to detection based on detection id"
visualization:
options:
columns: '[{"type":"field","fieldName":"@timestamp","width":210},{"type":"field","fieldName":"@rawstring"}]'
newestAtBottom: 'true'
showOnlyFirstLine: 'false'
newestAtBottom: "true"
showOnlyFirstLine: "false"
type: list-view
$schema: https://schemas.humio.com/query/v0.1.0
timeInterval:
isLive: false
start: 24h
start: 1d
queryString: |-
"falcon.detection" := replace("^ldt:([0-9a-f]{32}):(.*)", with="$1/$2", field="detection_id")
| "falcon.detection_url" := format("%s/activity/detections/detail/%s?_cid=%s", field=[falcon.url, falcon.detection, #cid])

0 comments on commit 12fe197

Please sign in to comment.