Osquery helper tool for Elasticsearch
python tools/codegen/genwebsitejson.py --specs=./specs > schema.json
./osqgen --schema "./schema/osquery/osquery_schema_5.4.0.json" fields > osquery.yml
./osqgen --schema "./schema/osquery/osquery_schema_5.4.0.json" readme > readme.txt
./osqgen --schema "./schema/ecs/fields.ecs_8.10.0.yml" ecs > ecs.yml
Currently this extracts out all the date
, ip
, long
, float
, boolean
fields and writes them out in the integration package fields format.
The file schema/ecs/keep_fields.txt
contains the list of fields that needs to be explicitly kept for ECS mapping file, without this the fields can be automapped incorrectly.
Add more fields there as needed.
For example:
- external: ecs
name: client.ip
- external: ecs
name: client.nat.ip
- external: ecs
name: code_signature.timestamp
- external: ecs
name: destination.ip
# ........