kintyre / sa-cim_vladiator Goto Github PK
View Code? Open in Web Editor NEWThis project forked from hire-vladimir/sa-cim_vladiator
Data validator agains Splunk Common Information Model (CIM)
License: Apache License 2.0
This project forked from hire-vladimir/sa-cim_vladiator
Data validator agains Splunk Common Information Model (CIM)
License: Apache License 2.0
Build a new lookup table based on a new CIM:
Don't have time to complete this right now....
| datamodel
| spath
| table _raw modelName
| search [ rest /servicesNS/nobody/Splunk_SA_CIM/data/models | search eai:appName=Splunk_SA_CIM | rename title as modelName | fields modelName ]
| search modelName!="Splunk_CIM_Validation"
| spath output=objects "objects{}"
| fields - _raw
| mvexpand objects
| spath input=objects output=outfields "calculations{}.outputFields{}"
| spath input=objects output=fields "fields{}"
| eval fields=mvappend(fields, outfields)
| fields - objects outfields
| mvexpand fields
| spath input=fields
| table modelName owner fieldName fieldSearch displayName comment.expected_values{} comment.recommended comment.description type hidden
| rename fieldName as field comment.description as description, type as data_type, comment.recommended as recommended
| eval possible_values=mvjoin('comment.expected_values{}', ", ")
| eval object = owner
| appendcols [ rest splunk_server=local /servicesNS/-/-/apps/local/Splunk_SA_CIM | rename version as cim_version | table cim_version ]
| eventstats values(cim_version) as cim_version
| rename modelName as datamodel
| rex field=object mode=sed "s/^.*?\.([^.]+)$/\1/"
| search data_type!=objectCount NOT data_type=childCount NOT field=_time NOT field=host NOT field=source NOT field=sourcetype
| table cim_version, datamodel, object, field, data_type, description, possible_values, recommended
| sort datamodel object field
| dedup datamodel object field
| outputlookup cim_dictionary_new.csv
Compare the results:
| inputlookup cim_dictionary_new.csv | inputlookup append=t cim_validation_dictionary | sort - cim_version | search datamodel=* | fields - recommended | stats list(*) as * dc(*) as dc_* by datamodel object field | fields - dc_cim_version | eval diffs=0 | foreach dc_* [ eval diffs=if('<<FIELD>>'>1,1,0) ] | where diffs>=1 | fields - dc_*
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.