i'm trying to use drop_fields on part of a document:
"signatures": [
{
"markcount": 2,
"families": [],
"description": "The binary likely contains encrypted or compressed data indicative of a packer",
"severity": 2,
"marks": [
{
"entropy": 7.90446336568116,
"section": {
"size_of_data": "0x00083400",
"virtual_address": "0x0036d000",
"entropy": 7.90446336568116,
"name": "UPX1",
"virtual_size": "0x00084000"
},
"type": "generic",
"description": "A section with a high entropy has been found"
},
{
"entropy": 0.9980988593155894,
"type": "generic",
"description": "Overall entropy of this PE file is high"
}
],'
specifically, on signatures.marks.section, however my drop_fields configuration does not work:
- drop_fields:
fields: ["signatures.marks"]
i have tried signatures.marks.section, signatures.marks, signatures.marks etc to no avail. any ideas?
can you check the structure of whole reported event?
is the message you mentioned already json decoded or is it as a string in a source.message field of the event.
unfortunately yes. it depends on how many signatures you have in an array, and how many marks are inside a signature
you need to go through [0,0],[0,1]...[0, marks], [1,0]... and so on
unfortunately there's no nice way of doing it in a beat. for more advanced processing using logstash is advised
hey @brain
I played with this a bit and I found out that beats does not support index pointers (something.0.somethinelse) this is supported only in LogStash
you can specify path up to the point where you hit an array. having array as the first thing in your object is a bit unfortunate.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.