osqgen

command module
v0.0.0-...-8282ed2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

README

osqgen

Osquery helper tool for Elasticsearch

Generate schema file from osquery repository
python tools/codegen/genwebsitejson.py --specs=./specs > schema.json
Generate fields for integration package
./osqgen --schema "./schema/osquery/osquery_schema_5.4.0.json" fields > osquery.yml
Generate fields for readme for integration package
./osqgen --schema "./schema/osquery/osquery_schema_5.4.0.json" readme > readme.txt
Generate ECS fields for integration package
./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
# ........

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL