Git Product home page Git Product logo

ecs-schema-validator's Introduction

ECS-Schema-Validator

Proof of concept for a ECS schema based field searcher, potentially a validator in the future

Quick Start

  1. run sh setup.sh to setup the POC
  2. hit the api endpoint to get the results curl http://127.0.0.1:8000/field-query?field=geo
  3. results should be like
[{"score":4.373568,"Field":"threat.indicator.geo.country_iso_code","Description":"Country ISO code.","Field_Set":"threat","Level":"core"},{"score":4.373568,"Field":"threat.indicator.geo.country_name","Description":"Country name.","Field_Set":"threat","Level":"core"},{"score":4.373568,"Field":"threat.indicator.geo.location","Description":"Longitude and latitude.","Field_Set":"threat","Level":"core"},{"score":4.373568,"Field":"threat.indicator.geo.name","Description":"User-defined description of a location.","Field_Set":"threat","Level":"extended"},{"score":4.373568,"Field":"threat.indicator.geo.postal_code","Description":"Postal code.","Field_Set":"threat","Level":"core"},{"score":4.373568,"Field":"threat.indicator.geo.region_iso_code","Description":"Region ISO code.","Field_Set":"threat","Level":"core"},{"score":4.373568,"Field":"threat.indicator.geo.region_name","Description":"Region name.","Field_Set":"threat","Level":"core"},{"score":4.373568,"Field":"threat.indicator.geo.timezone","Description":"Time zone.","Field_Set":"threat","Level":"core"},{"score":4.373568,"Field":"threat.indicator.geo.city_name","Description":"City name.","Field_Set":"threat","Level":"core"},{"score":4.373568,"Field":"threat.indicator.geo.continent_code","Description":"Continent code.","Field_Set":"threat","Level":"core"}]

Disclaimer

This script is provided for educational and illustrative purposes only. It is not intended for use in a production environment without thorough review and testing. The author make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability, or availability of the script. Any reliance you place on the script is strictly at your own risk.

ECS Disclaimer:

The term "ECS" (Elastic Common Schema) used in this script refers to a data schema developed by Elasticsearch. Elasticsearch and ECS are trademarks of Elasticsearch BV. This script is not endorsed, sponsored, or affiliated with Elasticsearch BV. Any use of the "ECS" term in this script is solely for illustrative purposes and does not imply any endorsement or association. the ECS data used is versioned 8.9 as of 29 July 2023 and is avaliable at https://github.com/elastic/ecs/blob/8.9/generated/csv/fields.csv

ecs-schema-validator's People

Contributors

zhengyangtean avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.