Skip to content

Commit

Permalink
Change results to nested field
Browse files Browse the repository at this point in the history
  • Loading branch information
dcode committed Oct 16, 2020
1 parent 422240f commit 74f346f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions x-pack/filebeat/module/virustotal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,7 @@ kafkacat -b 127.0.0.1:9093 -C -t virustotal.raw | head | jq
```

Configure filebeat to use the kafka input as show above, and run it until all events are replayed. After which, you can switch back to `httpjson` as the input type and stream new data.

```shell
./filebeat -c filebeat.dev.yml -e
```
2 changes: 1 addition & 1 deletion x-pack/filebeat/module/virustotal/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
- name: results
description: >
Contains each engine's resulting data about sample
type: group
type: nested
fields:
- name: method
description: >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ processors:
formats:
- UNIX

- date:
field: virustotal.analysis.results.engine_update
ignore_failure: True
formats:
- yyyyMMdd

on_failure:
- set:
field: error.message
Expand Down

0 comments on commit 74f346f

Please sign in to comment.